Package: gdb Version: 7.7.1+dfsg-5 Severity: important gdb segfaults when I try to debug HHVM:
daniel@debian:/var/www/hhvm-bugs$ gdb --quiet hhvm Reading symbols from hhvm...Segmentation fault HHVM was installed from its hhvm-dbg Debian package, using the instructions at https://github.com/facebook/hhvm/wiki/Prebuilt-Packages-on-Debian-8. This is the backtrace from gdb, if it helps: #0 _int_malloc (av=av@entry=0x7ffff622c620 <main_arena>, bytes=bytes@entry=640) at malloc.c:3700 #1 0x00007ffff5f05a2c in __libc_calloc (n=<optimized out>, elem_size=<optimized out>) at malloc.c:3219 #2 0x0000000000681911 in xcalloc (number=160, size=size@entry=4) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/common/common-utils.c:91 #3 0x00000000004f93ef in elf_symfile_segments (abfd=0xd60850) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/elfread.c:120 #4 0x000000000056e53f in symfile_find_segment_sections (objfile=0xd88490) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:3796 #5 init_objfile_sect_indices (objfile=0xd88490) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:345 #6 default_symfile_offsets (objfile=0xd88490, addrs=<optimized out>) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:765 #7 0x000000000056c2d4 in syms_from_objfile_1 (add_flags=6, addrs=0xd4e040, objfile=0xd88490) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:1011 #8 syms_from_objfile (add_flags=6, addrs=0xd4e040, objfile=0xd88490) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:1029 #9 symbol_file_add_with_addrs (abfd=abfd@entry=0xd60850, name=name@entry=0x7fffffffe8ef "hhvm", add_flags=add_flags@entry=6, addrs=addrs@entry=0x0, flags=flags@entry=0, parent=parent@entry=0x0) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:1126 #10 0x000000000056c824 in symbol_file_add_from_bfd (parent=0x0, flags=0, addrs=0x0, add_flags=6, name=0x7fffffffe8ef "hhvm", abfd=0xd60850) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:1215 #11 symbol_file_add (name=name@entry=0x7fffffffe8ef "hhvm", add_flags=6, addrs=addrs@entry=0x0, flags=flags@entry=0) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:1230 #12 0x000000000056c888 in symbol_file_add_main_1 (args=0x7fffffffe8ef "hhvm", from_tty=1, flags=0) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/symfile.c:1255 #13 0x0000000000592f2e in catch_command_errors_const (command=0x56c8b0 <symbol_file_add_main>, arg=arg@entry=0x7fffffffe8ef "hhvm", from_tty=1, mask=mask@entry=RETURN_MASK_ALL) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/exceptions.c:567 #14 0x0000000000595a45 in captured_main (data=data@entry=0x7fffffffe5d0) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/main.c:969 #15 0x0000000000592d8a in catch_errors (func=func@entry=0x595080 <captured_main>, func_args=func_args@entry=0x7fffffffe5d0, errstring=errstring@entry=0x740755 "", mask=mask@entry=RETURN_MASK_ALL) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/exceptions.c:524 #16 0x0000000000596084 in gdb_main (args=args@entry=0x7fffffffe5d0) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/main.c:1076 #17 0x000000000045484e in main (argc=<optimized out>, argv=<optimized out>) at /build/gdb-2hEJVN/gdb-7.7.1+dfsg/gdb/gdb.c:34 -- System Information: Debian Release: 8.2 APT prefers stable-updates APT policy: (500, 'stable-updates'), (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages gdb depends on: ii libc6 2.19-18+deb8u1 ii libexpat1 2.1.0-6+deb8u1 ii liblzma5 5.1.1alpha+20120614-2+b3 ii libncurses5 5.9+20140913-1+b1 ii libpython2.7 2.7.9-2 ii libreadline6 6.3-8+b3 ii libtinfo5 5.9+20140913-1+b1 ii zlib1g 1:1.2.8.dfsg-2+b1 Versions of packages gdb recommends: ii gdbserver 7.7.1+dfsg-5 ii libc6-dbg [libc-dbg] 2.19-18+deb8u1 Versions of packages gdb suggests: pn gdb-doc <none> -- no debconf information