Operating System - Linux
1826387 Members
4330 Online
109692 Solutions
New Discussion

Re: GDB crash while processing GCC executable on HPUX 11.23

 
SOLVED
Go to solution
Vadim Yezhakov
Advisor

GDB crash while processing GCC executable on HPUX 11.23

Hi.
I have some trouble:
My executable was compiled by GCC. And I try run it under GDB, but GDB is core dumped.

GDB version:
HP gdb 5.0 for PA-RISC 2.0 (wide), HP-UX 11.00
GCC version:
4.0.3
HPUX version:
HP-UX B.11.23 U 9000/800
3 REPLIES 3
Mithun R N
Advisor
Solution

Re: GDB crash while processing GCC executable on HPUX 11.23

Hi Vadim,

Do you get a SIGSEGV while running your debugee a.out in HP-wdb without placing any breakpoints ?
Was the gcc downloaded from http://www.hp.com/go/gcc ?

This is a known issue with HP-WDB for PA64 binaries and some gcc versions. This issue is proposed to be fixed in the upcoming wdb releases.

Are you using gcc from /opt/hp-gcc64/bin/gcc ?

Is it possible for you to re-compile your program with HP C compiler and leverage the full debugging facility with HP-gdb?

regards,
Mithun
Vadim Yezhakov
Advisor

Re: GDB crash while processing GCC executable on HPUX 11.23

Hi Mithun,

Do you get a SIGSEGV while running your debugee a.out in HP-wdb without placing any breakpoints ?
On "HP-UX B.11.23 U 9000/800" I receive SIGSEGV without any breakpoint.
On "HP-UX B.11.23 U ia64" error occuring only when breakpoints are used.

Was the gcc downloaded from http://www.hp.com/go/gcc ?
Yes.

This is a known issue with HP-WDB for PA64 binaries and some gcc versions. This issue is proposed to be fixed in the upcoming wdb releases.
Ok. I wait for new release.

Are you using gcc from /opt/hp-gcc64/bin/gcc ?
Yes.

Is it possible for you to re-compile your program with HP C compiler and leverage the full debugging facility with HP-gdb?
Unfortunately, it's not possible.

regards,
Vadim
Steve Ellcey
Valued Contributor

Re: GDB crash while processing GCC executable on HPUX 11.23

It looks like this is not the latest gdb. There is a gdb 5.4 available from http://www.hp.com/go/gdb. You might want to try that and see if it works better.