This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Build issues on HP-UX
- From: Andi Hellmund <andi at mail dot lxgcc dot net>
- To: Neeraj Jakhar <neeraj dot jakhar at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 11 Nov 2011 17:07:05 +0100 (CET)
- Subject: Re: Build issues on HP-UX
Hi,
> On executing gdb I am getting the following call stack:
>
> (gdb) run
> Starting program:
> /home/njakhar/workspace/ovaldi/ovaldi-5.9.1-src/project/unix/Release/HP-UX/bl-ovaldi
>
> Program received signal SIGSEGV, Segmentation fault.
> 0x77f3da2c in free+0x12c () from /usr/lib/libc.2
> (gdb) where
> #0 0x77f3da2c in free+0x12c () from /usr/lib/libc.2
> #1 0x77fbe5a4 in __thread_mutex_free+0x8c () from /usr/lib/libc.2
> #2 0x77d303cc in _HPMutexWrapper::~_HPMutexWrapper+0x34 () from
> /usr/lib/libstd_v2.2
> #3 0x18aaa8 in Version::GetBuild (#aggretxform#426=@0x77ff0794) at
> ../../src/Version.cpp:74
> #4 0x139224 in main (argc=1, argv=0x77ff060c) at ../../src/Main.cpp:70
This looks like a corruption on the heap. Usually there are tools on HP-UX to check for heap corruption, but your OS version is just tooooo old. 11.00 is out of support for quite some time.
> As far as I can see, there is nothing that should dump core here.
> Further, this code is working on Linux, Solaris and AIX.
This doesn't necessarily mean that HP-UX is broken. Well, it might be because your version is fairly old.
Have you tried to compile your code on a newer version, maybe even Itanium?
> PS: Please let me know, if this is not the right platform to ask this question.
As Jonathan said, probably not. There is an HP-UX specific forum (http://h30499.www3.hp.com/t5/Languages-and-Scripting/bd-p/itrc-150) where you might get an answer to your question, but the most probable answer is: upgrade your operating system and tool chain :-)
BR,
Andi