Package: valgrind
Version: 1:3.16.1-1
Severity: normal
Hello,
I don't seem to be able to use vgcore files in gdb any more:
(gdb version 10.1-2)
$ cat test.c
int main(void) {
*(int*)0 = 0;
}
$ gcc test.c -o test -g
$ valgrind ./test
[...]
$ gdb ./test vgcore*
[...]
Reading symbols from ./test...
[New LWP 1051166]
Core was generated by `'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x000000000010912e in ?? ()
(gdb)
While without valgrind:
$ ./test
zsh: segmentation fault (core dumped) ./test
$ gdb ./test core
[...]
Reading symbols from test...
[New LWP 1051373]]
Core was generated by `./test'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 main () at test.c:2
2 *(int*)0 = 0;
(gdb) p/x $pc
$2 = 0x55a04b9f812e
(gdb)
Samuel
-- System Information:
Debian Release: 11.0
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable-debug'), (500,
'testing-debug'), (500, 'stable-debug'), (500, 'proposed-updates-debug'), (500,
'proposed-updates'), (500, 'oldstable-proposed-updates-debug'), (500,
'oldstable-proposed-updates'), (500, 'oldoldstable'), (500, 'buildd-unstable'),
(500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (1,
'experimental-debug'), (1, 'buildd-experimental'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.13.0 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages valgrind depends on:
ii libc6 2.31-13
ii libc6-dbg 2.31-13
Versions of packages valgrind recommends:
ii gdb 10.1-2
ii valgrind-dbg 1:3.16.1-1
Versions of packages valgrind suggests:
pn alleyoop <none>
pn kcachegrind <none>
ii valgrind-mpi 1:3.16.1-1
pn valkyrie <none>
-- no debconf information