diff mbox series

[1/2] vma05.sh: Add workaround for gdb debuginfod question

Message ID 20230926124647.152972-2-pvorel@suse.cz
State Accepted
Headers show
Series Fix vma05.sh on $DEBUGINFOD_URLS | expand

Commit Message

Petr Vorel Sept. 26, 2023, 12:46 p.m. UTC
gdb asks if $DEBUGINFOD_URLS is set and there is no 'set debuginfod enabled on|off'
config in ~/.gdbinit:

    # echo $DEBUGINFOD_URLS
    https://debuginfod.opensuse.org/

    # grep 'set debuginfod enabled' ~/.gdbinit
    grep: /root/.gdbinit: No such file or directory

    # gdb -silent -ex="thread apply all backtrace" -ex="quit" vma05_vdso ./core*
    Segmentation fault (core dumped)
    Reading symbols from vma05_vdso...
    [New LWP 6070]

    This GDB supports auto-downloading debuginfo from the following URLs:
      <https://debuginfod.opensuse.org/>
    Enable debuginfod for this session? (y or [n])

Therefore disable this question with unsetting $DEBUGINFOD_URLS.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
A candidate for pre-release fix.

Kind regards,
Petr

 testcases/kernel/mem/vma/vma05.sh | 1 +
 1 file changed, 1 insertion(+)

Comments

Cyril Hrubis Sept. 26, 2023, 2:12 p.m. UTC | #1
Hi!
> A candidate for pre-release fix.

Looks simple enough for the release.

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>
Petr Vorel Sept. 27, 2023, 5:37 a.m. UTC | #2
Hi Cyril,

> Hi!
> > A candidate for pre-release fix.

> Looks simple enough for the release.
Thanks, this first patch merged to get Tumbleweed fixed.

Kind regards,
Petr
diff mbox series

Patch

diff --git a/testcases/kernel/mem/vma/vma05.sh b/testcases/kernel/mem/vma/vma05.sh
index 9ef6f0a23..c9e4becdb 100755
--- a/testcases/kernel/mem/vma/vma05.sh
+++ b/testcases/kernel/mem/vma/vma05.sh
@@ -30,6 +30,7 @@  setup()
 {
 	ulimit -c unlimited
 	echo "core" > /proc/sys/kernel/core_pattern
+	unset DEBUGINFOD_URLS
 }
 
 cleanup()