On 2010-11-24 14:46 +0100, Friedrich Delgado wrote:

> Package: emacs
> Version: 23.2+1-4
> Severity: important
>
> emacs infrequently crashes for me. Unfortunately I'm not able to get a
> meaningful backtrace, despite at least trying to follow
> http://wiki.debian.org/HowToGetABacktrace
>
> Since the crashes happen only about once every 2 days, and I have no
> idea under which circumstances they occur, I'm a bit reluctant to run
> emacs in gdb all the time.

Still, that would be your best bet.  And run it from the build directory
because that contains a .gdbinit file that makes gdb understand Lisp
backtraces via the `xbacktrace' command.  See
/usr/share/emacs/23.2/etc/DEBUG for details.

> I installed the debugging packages I *could* find, however there seem
> to be quite a lot of symbols missing.
>
> However I already did
>
> DEB_BUILD_OPTIONS="nostrip noopt" fakeroot apt-get -b source emacs

Building without optimization could very well mean that you're not able
to reproduce the crashes anymore.

> and installed the resulting packages, so the next backtrace hopefully
> should contain more interesting information.
>
> ,----[ start of backtrace ]
>   Core was generated by `emacs'.
>   Program terminated with signal 11, Segmentation fault.
>   #0  0x00007fa5a2497447 in kill () at ../sysdeps/unix/syscall-template.S:82
>   82    ../sysdeps/unix/syscall-template.S: Datei oder Verzeichnis nicht 
> gefunden.
>     in ../sysdeps/unix/syscall-template.S
>   (gdb) thread apply all bt full
>   
>   Thread 1 (Thread 2858):
>   #0  0x00007fa5a2497447 in kill () at ../sysdeps/unix/syscall-template.S:82
>   No locals.
>   #1  0x00000000004e4651 in ?? ()
>   No symbol table info available.
>   #2  <signal handler called>
>   No symbol table info available.
>   #3  0x00007fa5a5f82030 in g_type_check_instance_cast () from 
> /usr/lib/libgobject-2.0.so.0
>   No symbol table info available.
>   #4  0x00007fa59dc03bf5 in ca_gtk_context_get_for_screen () from 
> /usr/lib/libcanberra-gtk.so.0
>   No symbol table info available.
>   #5  0x00007fa59dc0419d in ca_gtk_play_for_widget () from 
> /usr/lib/libcanberra-gtk.so.0
>   No symbol table info available.
>   #6  0x00007fa59de2c20a in ?? () from 
> /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
>   No symbol table info available.
>   #7  0x00007fa59de2d3b3 in ?? () from 
> /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
>   No symbol table info available.
>   #8  0x00007fa5a78e8d26 in ?? () from /usr/lib/libgdk-x11-2.0.so.0
>   No symbol table info available.
>   #9  0x00007fa5a56a96f2 in g_main_context_dispatch () from 
> /lib/libglib-2.0.so.0
>   No symbol table info available.
>   #10 0x00007fa5a56ad568 in ?? () from /lib/libglib-2.0.so.0
>   No symbol table info available.
>   #11 0x00007fa5a56ad71c in g_main_context_iteration () from 
> /lib/libglib-2.0.so.0
>   No symbol table info available.
>   #12 0x00007fa5a7cb2561 in gtk_main_iteration () from 
> /usr/lib/libgtk-x11-2.0.so.0
>   No symbol table info available.
>   #13 0x00000000004a907c in ?? ()
> `----

You want to install the libgtk2.0-0-dbg and libglib2.0-0-dbg packages.

Cheers,
       Sven



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to