Operating System - HP-UX
1753543 Members
5413 Online
108795 Solutions
New Discussion юеВ

Re: shared library core dump

 
satyach
Advisor

shared library core dump

I created the executable following option

-Wl,-a,shared

and created on HP 11.0 and using ANSI C++ B3910B A.03.25 compiler

while executing, core dump and following is the trace
#0 0x7a9c4ab8 in () from /usr/lib/Motif2.1/libXm.4
#1 0x7aaefe2c in _XmAddHashEntry () from /usr/lib/Motif2.1/libXm.4
#2 0x7aae8250 in XmeTraitSet () from /usr/lib/Motif2.1/libXm.4
#3 0x7aabb6e4 in ClassPartInitialize () from /usr/lib/Motif2.1/libXm.4
#4 0x7abdefe4 in CallClassPartInit () from /usr/lib/X11R6/libXt.3
#5 0x7abdf1ec in XtInitializeWidgetClass () from /usr/lib/X11R6/libXt.3
#6 0x7abdf1c8 in XtInitializeWidgetClass () from /usr/lib/X11R6/libXt.3
#7 0x7abdf1c8 in XtInitializeWidgetClass () from /usr/lib/X11R6/libXt.3
#8 0x7abdff88 in _XtCreateWidget () from /usr/lib/X11R6/libXt.3
#9 0x7ac163ec in _XtVaCreateWidget () from /usr/lib/X11R6/libXt.3
#10 0x7ac1668c in XtVaCreateManagedWidget () from /usr/lib/X11R6/libXt.3

please give me the solution. do we need any patch. I tried with static options. i could't succeded.

I will appreciate your help
10 REPLIES 10
Sanjay_6
Honored Contributor

Re: shared library core dump

Hi,

Here is the list of patches you should have.

s700_800 11.00 HP aC++ (A.03.05) to fix numerous defects(PHSS_13391)
s700_800 11.00 Standard Component header file fixes(PHSS_13498)
s700_800 11.x HP aC++ runtime libraries (aCC A.03.13)(PHSS_16587)
s700_800 11.00 HP aC++ (A.03.15)(PHSS_20975)
s700_800 11.00 ANSI C compiler cumulative patch(PHSS_22272)
s700_800 11.X HP aC++ -AA header files (aCC A.03.30)(PHSS_22868)
s700_800 11.00 ld(1) and linker tools cumulative patch(PHSS_23440)
s700_800 11.X ANSI C compiler B.11.11.02 cumulative patch(PHSS_24830)
s700_800 11.X HP aC++ Compiler (aCC A.03.31)(PHSS_25170)

some of these may not be applicable to you. Some more may be required. Do a patch analysis and hopefullt you will be able to find if you need any patch.

Hope this helps.

thanks
Shahul
Esteemed Contributor

Re: shared library core dump

Hi

I think this is because of pacthes are not loaded/not loaded in order. Please load all supeceded patches with pre requisite. I hope ur problem will get solved.

With rgds, Shahul
Mike Stroyan
Honored Contributor

Re: shared library core dump

That stack trace looks reasonable up to the moment that it dumped core. The code would be manipulating malloc allocated hash table data structures. You could look at the program with wdb and the Tools->Memory Check feature to watch for corruption of malloc memory. You could use Purify if you have it licensed.
satyach
Advisor

Re: shared library core dump

Updated listed paches, even it crashes once again at the same level

do we need PHSS_23823 patch?.



satyach
Advisor

Re: shared library core dump

According to Mike, i debugged the problem. no memory leak or corrept before calling XtVaCreateManagedWidget motif function.

It crashes at this point and it gave above traced path.

Even If i use same functionality at the begining of the main application.
same core is happening.

Satya
satyach
Advisor

Re: shared library core dump

any comments from you. waiting for your valuable suggestions
Sanjay_6
Honored Contributor

Re: shared library core dump

Hi,

Seems like you can try patch PHSS_23823. It does says it solves some of the problems.

http://us-support.external.hp.com/wpsl/bin/doc.pl/screen=wpslDisplayPatch/sid=14d2c9aa141c09d4fd

I'll say give it a try. Hope it helps.

thanks
Mike Stroyan
Honored Contributor

Re: shared library core dump

Can you create and post a small example that demonstrates the crash?
satyach
Advisor

Re: shared library core dump

Regarding to Mike,

for small exmple, it is working. This example does not use xaw library and Xmu library.


My application is using tree widgets and it uses library Xaw and Xmu.

this applcation tested in motif 1.1 version.

Also tested on 10.20. no changes from application point of view. only change in HP OS.

if i am creating the version with following option

-Wl,-a,-archive

it gives display can set error. this message already posted.

even this problem is happening to a small program..

thanks