help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getting source line numbers from printed exit backtrace


From: Basile Starynkevitch
Subject: Re: getting source line numbers from printed exit backtrace
Date: Fri, 26 May 2023 11:45:35 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0


On 5/26/23 11:11, Eli Zaretskii wrote:
Date: Fri, 26 May 2023 14:23:40 +0530 (IST)
From: Madhu <enometh@meer.net>

When emacs (compiled with -g3 -O2) crashes, it prints out stuff
```
Backtrace:
/14/build/emacs/build-gtk/src/emacs[0x574a3b]
/14/build/emacs/build-gtk/src/emacs[0x426475]
/14/build/emacs/build-gtk/src/emacs[0x426967]
/14/build/emacs/build-gtk/src/emacs[0x572fa8]
/14/build/emacs/build-gtk/src/emacs[0x573019]
/lib64/libc.so.6(+0x3d240)[0x7f78855c2240]
/usr/lib64/libgtk-3.so.0(gtk_widget_get_window+0x19)[0x7f7887b125b9]
```

Can I get the source information corresponding to these printed
frames?
Yes, see the node "Crashing" in the Emacs manual.



BTW, on Linux systems, GNU emacs could use Ian Lance Taylor's libbacktrace library for that purpose. (readability of backtrace)

That library is included in recent GNU GCC compiler, and is downloadable from https://github.com/ianlancetaylor/libbacktrace

(and that library is also used in the RefPerSys open source inference engine on https://github.com/RefPerSys/RefPerSys described on http://refpersys.org/ for which contributors are welcome).


Regards.


--
Basile Starynkevitch                  <basile@starynkevitch.net>
(only mine opinions / les opinions sont miennes uniquement)
92340 Bourg-la-Reine, France
web page: starynkevitch.net/Basile/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]