[opensuse] Re: gdb/corefile question
- From: Jim Henderson <hendersj@xxxxxxxxx>
- Date: Wed, 3 Jun 2009 17:25:45 +0000 (UTC)
On Wed, 03 Jun 2009 00:40:57 +0200, Philipp Thomas wrote:
On Tue, 2 Jun 2009 20:45:40 +0000 (UTC), you wrote:
What other options do I have to get a core from this program?
One option would be to run the program under catchsegv (i.e. catchsegv
<your_prog>). For catchsegv to give meaningfull backtraces, you should
have the -debuginfo packages of that program (if it comes from a SUSE
package) installed or have a non-stripped binary with debugging info. To
really help, you should also install the -debuginfo packages for all
involved libraries (i.e. glibc at the very least).
Your problem could stem from the fact that the memory layout when
running under gdb is sufficiently different to not cause a segfault. In
that case, I'd try running the program under valgrind.
If you have the sources for the program, I'd try adding
-D_FORTIFY_SOURCE=2 and -fstack-protector to the compiler flags (if
they've been written in C and/or C++).
You might also get better help on the opensuse-programming mailing list.
Thanks for this information, Phillipp - this helps a lot. I don't have
access to the code (it's part of the Novell Client for Linux), but I do
have access to the developer, so will pass this information along to him
as well for building the debug builds that I'm testing with.
The weird thing is that I do actually get the segfault under gdb, but the
program vanishes immediately after the segfault happens so I can't get
any debug information. I'll give the other tools you suggested a shot.
If I have further questions, I'll look into the programming list.
Please keep on-topic replies on the list so everyone benefits
To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse+help@xxxxxxxxxxxx
- Prev by Date: Re: [opensuse] 1-click install of kde4 factory on 11.0 breaks Yast (qt45 issue)
- Next by Date: Re: [opensuse] Nokia Nseries and gnokii
- Previous by thread: Re: [opensuse] gdb/corefile question
- Next by thread: [opensuse] Intel 945 Chipset, powered by NVIDIA: Should I install NVIDIA driver?