This widget could not be displayed.
Operating System - HP-UX
1845516 Members
2850 Online
110244 Solutions
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
This widget could not be displayed.
New Discussion
This widget could not be displayed.
This widget could not be displayed.

application core dumps with HPUX ia64

 
AK_1_1
New Member

application core dumps with HPUX ia64

Hello All,

I am trying to run an application that uses Pthread. It core dumps with the a segmentation fault. After loading the the core file in gdb it showed that the "__pthread_cancel_stack()" did a Segmentation fault. I understand this is a Pthread function but I am not sure how to rectify this. Any help in this matter will be greatly appreciated.

The platform is: HP-UX B.11.31 U ia64 3435274391

Thanks and Regards,
Atul.
3 REPLIES 3
Dennis Handly
Acclaimed Contributor

Re: application core dumps with HPUX ia64

It helps if you show us the stack trace.
Do you have a thread stack overflow?
Have you done a pthread_cancel recently? I.e. is it reasonable to be in your stack trace state?
AK_1_1
New Member

Re: application core dumps with HPUX ia64

Thanks for the reply. Below is the trace that I get from loading the core file in gdb.

HP gdb 5.9 for HP Itanium (32 or 64 bit) and target HP-UX 11.2x.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 5.9 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `eventsystemtest'.
Program terminated with signal 11, Segmentation fault.
SEGV_ACCERR - Invalid Permissions for object
#0 0xc0000000000e4980:1 in __pthread_cancel_stack ()
at /ux/core/libs/threadslibs/src/common/pthreads/pthread.c:5290
5290 /ux/core/libs/threadslibs/src/common/pthreads/pthread.c: No such file or directory.
in /ux/core/libs/threadslibs/src/common/pthreads/pthread.c

I am running a unittest program that runs well on several other Unix platforms with PThread. That made me wonder if this has something to do with HP-UX and Pthreads.

Thanks and Regards,
Atul.
Dennis Handly
Acclaimed Contributor

Re: application core dumps with HPUX ia64

>Below is the trace that I get

I only see the top, not a trace. Where is the rest of the "bt" stack trace?