[Bug 905082] New: gdb improper stacktrace
http://bugzilla.opensuse.org/show_bug.cgi?id=905082 Bug ID: 905082 Summary: gdb improper stacktrace Classification: openSUSE Product: openSUSE Distribution Version: 13.2 Hardware: i586 OS: openSUSE 13.2 Status: NEW Severity: Normal Priority: P5 - None Component: Development Assignee: bnc-team-screening@forge.provo.novell.com Reporter: noll@m2p.net QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- Created attachment 613340 --> http://bugzilla.opensuse.org/attachment.cgi?id=613340&action=edit demo program When debugging a running application, I get no stack at all, when debugging a crashed application the stack pointers are invalid. gdb-test> gdb ./hello_world GNU gdb (GDB; openSUSE 13.2) 7.8 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-suse-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://bugs.opensuse.org/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory Reading symbols from ./hello_world...done. (gdb) run Starting program: /home/m2puser/gdb-test/hello_world Got object file from memory but can't read symbols: File truncated. Missing separate debuginfos, use: zypper install glibc-debuginfo-2.19-16.2.5.i686 [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". ^C Program received signal SIGINT, Interrupt. 0xb7fdbe4c in ?? () Missing separate debuginfos, use: zypper install fontconfig-debuginfo-2.11.1-2.1.2.i586 glibc-locale-debuginfo-2.19-16.2.5.i586 kdebase4-workspace-liboxygenstyle-debuginfo-4.11.12-2.2.i586 kdebase4-workspace-libs-debuginfo-4.11.12-2.2.i586 libICE6-debuginfo-1.0.9-2.1.3.i586 libSM6-debuginfo-1.2.2-4.1.2.i586 libX11-6-debuginfo-1.6.2-5.1.2.i586 libXau6-debuginfo-1.0.8-5.1.2.i586 libXcursor1-debuginfo-1.1.14-5.1.2.i586 libXext6-debuginfo-1.3.3-2.1.2.i586 libXfixes3-debuginfo-5.0.1-4.1.2.i586 libXi6-debuginfo-1.7.4-2.1.2.i586 libXinerama1-debuginfo-1.1.3-4.1.2.i586 libXrandr2-debuginfo-1.4.2-4.1.2.i586 libXrender1-debuginfo-0.9.8-4.1.2.i586 libXtst6-debuginfo-1.2.2-4.1.2.i586 libacl1-debuginfo-2.2.52-5.1.2.i586 libattica0_4-debuginfo-0.4.2-4.1.3.i586 libattr1-debuginfo-2.4.47-4.1.2.i586 libbz2-1-debuginfo-1.0.6-29.2.7.i586 libdbus-1-3-debuginfo-1.8.8-1.1.i586 libdbusmenu-qt2-debuginfo-0.9.2+14.04.20131209-2.1.10.i586 libexpat1-debuginfo-2.1.0-14.1.2.i586 libffi4-debuginfo-4.8.3+r212056-2.2.4.i586 libfreetype6-debuginfo-2.5.3-2.1.3.i586 libgcc_s1-debuginfo-4.8.3+r212056-2.2.4.i586 libglib-2_0-0-debuginfo-2.42.0-2.1.i586 libgobject-2_0-0-debuginfo-2.42.0-2.1.i586 libicu53_1-debuginfo-53.1-2.3.2.i586 libkde4-debuginfo-4.14.2-1.1.i586 libkdecore4-debuginfo-4.14.2-1.1.i586 libksuseinstall1-debuginfo-4.14.2-1.1.i586 liblzma5-debuginfo-5.0.7-1.1.i586 libopenssl1_0_0-debuginfo-1.0.1i-2.1.4.i586 libpcre1-debuginfo-8.35-3.2.3.i586 libpng16-16-debuginfo-1.6.13-2.1.2.i586 libqt4-debuginfo-4.8.6-4.4.1.i586 libqt4-x11-debuginfo-4.8.6-4.4.1.i586 libsoprano4-debuginfo-2.9.4-2.1.10.i586 libstdc++6-debuginfo-4.8.3+r212056-2.2.4.i586 libstreamanalyzer0-debuginfo-0.7.8-8.1.10.i586 libudev1-debuginfo-210-25.5.4.i586 libuuid1-debuginfo-2.25.1-2.4.i586 libxcb1-debuginfo-1.11-2.1.2.i586 libxml2-2-debuginfo-2.9.1-7.2.1.i586 libz1-debuginfo-1.2.8-5.1.2.i586 (gdb) bt #0 0xffffffff in () (gdb) quit A debugging session is active. Inferior 1 [process 2937] will be killed. Quit anyway? (y or n) y gdb-test> ./hello_world & [1] 2991 gdb-test> kill -11 %1 gdb-test> [1]+ Segmentation fault (core dumped) ./hello_world gdb-test> gdb hello_world core GNU gdb (GDB; openSUSE 13.2) 7.8 Copyright (C) 2014 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "i586-suse-linux". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://bugs.opensuse.org/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory Reading symbols from hello_world...done. [New LWP 2991] [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/libthread_db.so.1". Core was generated by `./hello_world'. Program terminated with signal SIGSEGV, Segmentation fault. #0 0xb7781e4c in __kernel_vsyscall () Missing separate debuginfos, use: zypper install fontconfig-debuginfo-2.11.1-2.1.2.i586 glibc-debuginfo-2.19-16.2.5.i686 glibc-locale-debuginfo-2.19-16.2.5.i586 kdebase4-workspace-liboxygenstyle-debuginfo-4.11.12-2.2.i586 kdebase4-workspace-libs-debuginfo-4.11.12-2.2.i586 libICE6-debuginfo-1.0.9-2.1.3.i586 libSM6-debuginfo-1.2.2-4.1.2.i586 libX11-6-debuginfo-1.6.2-5.1.2.i586 libXau6-debuginfo-1.0.8-5.1.2.i586 libXcursor1-debuginfo-1.1.14-5.1.2.i586 libXext6-debuginfo-1.3.3-2.1.2.i586 libXfixes3-debuginfo-5.0.1-4.1.2.i586 libXi6-debuginfo-1.7.4-2.1.2.i586 libXinerama1-debuginfo-1.1.3-4.1.2.i586 libXrandr2-debuginfo-1.4.2-4.1.2.i586 libXrender1-debuginfo-0.9.8-4.1.2.i586 libXtst6-debuginfo-1.2.2-4.1.2.i586 libacl1-debuginfo-2.2.52-5.1.2.i586 libattica0_4-debuginfo-0.4.2-4.1.3.i586 libattr1-debuginfo-2.4.47-4.1.2.i586 libbz2-1-debuginfo-1.0.6-29.2.7.i586 libdbus-1-3-debuginfo-1.8.8-1.1.i586 libdbusmenu-qt2-debuginfo-0.9.2+14.04.20131209-2.1.10.i586 libexpat1-debuginfo-2.1.0-14.1.2.i586 libffi4-debuginfo-4.8.3+r212056-2.2.4.i586 libfreetype6-debuginfo-2.5.3-2.1.3.i586 libgcc_s1-debuginfo-4.8.3+r212056-2.2.4.i586 libglib-2_0-0-debuginfo-2.42.0-2.1.i586 libgobject-2_0-0-debuginfo-2.42.0-2.1.i586 libicu53_1-debuginfo-53.1-2.3.2.i586 libkde4-debuginfo-4.14.2-1.1.i586 libkdecore4-debuginfo-4.14.2-1.1.i586 libksuseinstall1-debuginfo-4.14.2-1.1.i586 liblzma5-debuginfo-5.0.7-1.1.i586 libopenssl1_0_0-debuginfo-1.0.1i-2.1.4.i586 libpcre1-debuginfo-8.35-3.2.3.i586 libpng16-16-debuginfo-1.6.13-2.1.2.i586 libqt4-debuginfo-4.8.6-4.4.1.i586 libqt4-x11-debuginfo-4.8.6-4.4.1.i586 libsoprano4-debuginfo-2.9.4-2.1.10.i586 libstdc++6-debuginfo-4.8.3+r212056-2.2.4.i586 libstreamanalyzer0-debuginfo-0.7.8-8.1.10.i586 libudev1-debuginfo-210-25.5.4.i586 libuuid1-debuginfo-2.25.1-2.4.i586 libxcb1-debuginfo-1.11-2.1.2.i586 libxml2-2-debuginfo-2.9.1-7.2.1.i586 libz1-debuginfo-1.2.8-5.1.2.i586 (gdb) bt #0 0xffffffff in __kernel_vsyscall () #1 0xffffffff in __poll_nocancel () at /lib/libc.so.6 #2 0xffffffff in g_poll () at /usr/lib/libglib-2.0.so.0 #3 0xffffffff in () at /usr/lib/libglib-2.0.so.0 #4 0xffffffff in g_main_context_iteration () at /usr/lib/libglib-2.0.so.0 #5 0xffffffff in QEventDispatcherGlib::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/libQtCore.so.4 #6 0xffffffff in () at /usr/lib/libQtGui.so.4 #7 0xffffffff in QEventLoop::processEvents(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/libQtCore.so.4 #8 0xffffffff in QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) () at /usr/lib/libQtCore.so.4 #9 0xffffffff in QCoreApplication::exec() () at /usr/lib/libQtCore.so.4 #10 0xffffffff in QApplication::exec() () at /usr/lib/libQtGui.so.4 #11 0x08048881 in main () (gdb) quit -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905082
Bernd Noll
warning: /etc/gdbinit.d/gdb-heap.py: No such file or directory
and (in case of running the process with gdb)
Got object file from memory but can't read symbols: File truncated.
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905082
Bernhard Wiedemann
http://bugzilla.opensuse.org/show_bug.cgi?id=905082
--- Comment #3 from Bernd Noll
http://bugzilla.opensuse.org/show_bug.cgi?id=905082
--- Comment #6 from Bernd Noll
#0 0xb7fdbe4c in __kernel_vsyscall () #1 0xb7ede2ad in ___newselect_nocancel () at ../sysdeps/unix/syscall-template.S:81 #2 0x08048482 in main () at test.c:9 (gdb)
-- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=905082
http://bugzilla.opensuse.org/show_bug.cgi?id=905082#c7
S J
http://bugzilla.opensuse.org/show_bug.cgi?id=905082
http://bugzilla.opensuse.org/show_bug.cgi?id=905082#c9
--- Comment #9 from S J
participants (1)
-
bugzilla_noreply@novell.com