You are not logged in.
Hello,
I take a guess that a core dump for an application that is giving me constantly Segmentation fault (core dumped) error during shutdown process is missing debug symbols and for that the dump output is only partial with a text No symbol table info available.
$ gdb ./arma3server core.3056
GNU gdb (GDB) 7.12
Copyright (C) 2016 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 "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
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"...
Reading symbols from ./arma3server...(no debugging symbols found)...done.
[New LWP 3074]
[New LWP 3056]
[New LWP 3075]
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
Core was generated by `/home/[username]/steamcmd/arma3/arma3server'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0 0x3dd3eab3 in ?? ()
[Current thread is 1 (Thread 0xf7718b40 (LWP 3074))]
(gdb) bt full
#0 0x3dd3eab3 in ?? ()
No symbol table info available.
#1 0x09c9af19 in ?? ()
No symbol table info available.
#2 0xf785246e in clone () from /usr/lib32/libc.so.6
No symbol table info available.I've read about Improved gdb output that by using it I'd probably get additional information which currently is perhaps missing because of the absence of debug symbols.
The thing is that I can't wrap my head around how am I supposed to "recompile the application" (in this case Steamcmd) with the flags -g, -O0, -fbuiltin as the guide is telling the reader to do. One can't use those flags with makepkg and the Arch Build System guide leaves me somewhat baffled how to "recompile applications".
I thank for the possible help in advance.
Last edited by Ashmedai (2017-01-09 21:16:26)
Offline
One can't use those flags with makepkg
Yes you can the issue is the package you are attempting to add debug symbols to does not build anything.
Offline
Ashmedai wrote:One can't use those flags with makepkg
Yes you can the issue is the package you are attempting to add debug symbols to does not build anything.
Oh, good to hear I was wrong. Can I though ask you to put in layman's terms what it means when that "package does not build anything"? Or is what you're saying just the nice way to say that I am out of luck and have to make do without the improved core dump information?
Offline
If you examine the PKGBUILD for Steamcmd there is no build function and no calls to make or gcc or other tools that would compile source code into a binary.
That is the step at which the debug symbols are generated. All that the Steamcmd PKGBUILD does is provide a package function that moves around files unpacked from the source archive.
So you are reliant on the binary from upstream containing the debug symbols.
Compare that to the PKGBUILD from https://aur.archlinux.org/packages/gcc-git/ which does have a build function and also demonstrates the use of options and CFLAGS.
Offline
If you examine the PKGBUILD for Steamcmd there is no build function and no calls to make or gcc or other tools that would compile source code into a binary.
That is the step at which the debug symbols are generated. All that the Steamcmd PKGBUILD does is provide a package function that moves around files unpacked from the source archive.
So you are reliant on the binary from upstream containing the debug symbols.
Compare that to the PKGBUILD from https://aur.archlinux.org/packages/gcc-git/ which does have a build function and also demonstrates the use of options and CFLAGS.
Indeed, that it is then. I was wondering if I maybe could declare those missing pieces myself but never went down that road, probably better so.
Thank you loqs for providing some insight to what I was dealing with here!
Case closed then. Verdict: end-user can not recompile the application in question leaving possible core dump without improved information.
Offline