1832490 Members
3125 Online
110043 Solutions
New Discussion

libc errors

 
Sachin Patel
Honored Contributor

libc errors

One of our program is not working on V-class. It works on other V-class systems.

Here's the traceback.

Program received signal SIGSEGV, Segmentation fault.
0x7f727aec in mallinfo () from /usr/lib/libc.2
(gdb) where
#0 0x7f727aec in mallinfo () from /usr/lib/libc.2
#1 0x7f725330 in __thread_callback_np () from /usr/lib/libc.2
#2 0x7f72ae7c in malloc () from /usr/lib/libc.2
#3 0x7f54ac58 in _XlcResolveLocaleName () from /usr/lib/X11R6/libX11.3
#4 0x7f5456a8 in _XhpEucTWLoader () from /usr/lib/X11R6/libX11.3
#5 0x7f519900 in _XOpenLC () from /usr/lib/X11R6/libX11.3
#6 0x7f519b30 in _XrmInitParseInfo () from /usr/lib/X11R6/libX11.3
#7 0x7f4fe74c in NewDatabase () from /usr/lib/X11R6/libX11.3
#8 0x7f500958 in XrmCombineFileDatabase () from /usr/lib/X11R6/libX11.3
#9 0x7f43eb44 in CombineUserDefaults () from /usr/lib/X11R6/libXt.3
#10 0x7f43f944 in GetLanguage () from /usr/lib/X11R6/libXt.3
#11 0x7f43fc5c in _XtDisplayInitialize () from /usr/lib/X11R6/libXt.3
#12 0x7f432e1c in XtOpenDisplay () from /usr/lib/X11R6/libXt.3
#13 0x23c98c in main ()


Thanks
Sachin
Is photography a hobby or another way to spend $
12 REPLIES 12
Cheryl Griffin
Honored Contributor

Re: libc errors

If it works on one and not the other, compare your libc patches on both machines:
# swlist -l fileset -a state |grep libc

PHCO_28425 s700_800 11.00 libc cumulative patch

"Downtime is a Crime."
Sachin Patel
Honored Contributor

Re: libc errors

All the libc patchs are identical.

# swlist -l product |grep libc
PHCO_16306 1.0 cumulative 10.20 libc compatibility support
PHCO_16629 1.0 libc cumulative patch
PHCO_17078 1.0 libc cumulative header file patch
PHCO_23963 1.0 libc cumulative header file patch
PHCO_26111 1.0 libc cumulative header file patch
PHCO_27731 1.0 libc cumulative patch
# remsh sagan /usr/sbin/swlist -l product |grep libc
PHCO_16306 1.0 cumulative 10.20 libc compatibility support
PHCO_16629 1.0 libc cumulative patch
PHCO_17078 1.0 libc cumulative header file patch
PHCO_23963 1.0 libc cumulative header file patch
PHCO_26111 1.0 libc cumulative header file patch
PHCO_27731 1.0 libc cumulative patch

Is photography a hobby or another way to spend $
Umapathy S
Honored Contributor

Re: libc errors

Just a thought, please correct me if I am wrong.

The prg is getting a SIGSEGV in malloc. Is the swap correct?

cheers
Umapathy
Arise Awake and Stop NOT till the goal is Reached!
Cheryl Griffin
Honored Contributor

Re: libc errors

_XlcResolveLocaleName looks to refer to Locale, so what is LANG set to on both machines?

And the messages refer o /usr/lib/X11R6/libX11.3 which is:
s700-s800 11.00:
PHSS_28369 X/Motif 64bit DevKit Periodic
PHSS_28367 X/Motif 32bit DevKit Periodic
PHSS_28368 X/Motif 64bit Runtime Periodic
PHSS_28366 X/Motif 32bit Runtime Periodic
"Downtime is a Crime."
Sachin Patel
Honored Contributor

Re: libc errors

Hi Uma,
swap is good. no problem

Hi cheryl,
they are same patch as well.
hawking# swlist -l product |grep -i motif
PHSS_16901 1.0 X/Motif2.1 UNICODE Dec 98 Cumulative Patch
PHSS_25879 1.0 X/Motif 64bit Runtime JAN2002 Periodic Patch
X11MotifDevKit B.11.00.01 HP-UX Developer's Toolkit - X11, Motif, and Imake
hawking# remsh sagan /usr/sbin/swlist -l product |grep -i motif
PHSS_16901 1.0 X/Motif2.1 UNICODE Dec 98 Cumulative Patch
PHSS_25879 1.0 X/Motif 64bit Runtime JAN2002 Periodic Patch
X11MotifDevKit B.11.00.01 HP-UX Developer's Toolkit - X11, Motif, and Imake

Sachin
Is photography a hobby or another way to spend $
Cheryl Griffin
Honored Contributor

Re: libc errors

Memory is the same between the machines as well?
# swapinfo -tam
# echo "selclass qualifier memory;info;wait;infolog"|cstm
# dmesg (Memory Information section)

I'd double check patch state is configured
# swlist -l fileset -a state

If this fails to find anything, I am stumped given what we know.
"Downtime is a Crime."
Bill Douglass
Esteemed Contributor

Re: libc errors

Can you run the application under tusc

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/

and attach.
Tim Sanko
Trusted Contributor

Re: libc errors

Sachin,

Please run swverify. If you find a patch marked corrupt, or complete, reapply please.


Tim
Sachin Patel
Honored Contributor

Re: libc errors

hawking# swlist -l fileset -a state | grep -v configure |grep -v #

PHKL_18295.C-INC transient
PHKL_18295.CORE-KRN transient
PHKL_18295.CORE2-KRN transient
PHKL_18295.KERN2-RUN transient
PHKL_18295.VXFS-BASE-KRN transient
PHKL_18295.VXFS-PRG transient
PHNE_18554.CORE2-KRN installed
PHNE_18554.NET2-KRN installed
PHNE_18554.NMS2-KRN installed

Can this be a problem?
Is photography a hobby or another way to spend $
Sachin Patel
Honored Contributor

Re: libc errors

Bill
Here is the tail of file when I use tusc

stat("/TANGO/3/rel/lib/libXhp11.3", 0x7f7f4910) ............... ERR#2 ENOENT
stat("/vega/1/rel/TAO/ace/libXhp11.3", 0x7f7f4910) ............ ERR#2 ENOENT
stat("/vega/1/rel/Oracle/lib/libXhp11.3", 0x7f7f4910) ......... ERR#2 ENOENT
stat("/usr/lib/Motif2.1/libXhp11.3", 0x7f7f4910) .............. ERR#2 ENOENT
stat("/opt/graphics/OpenGL/lib//libXhp11.3", 0x7f7f4910) ...... ERR#2 ENOENT
mmap(NULL, 8192, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 4, 0x2000) ERR#12 ENOMEM
mmap(NULL, 90112, PROT_READ|PROT_EXEC, MAP_SHARED|MAP_SHLIB, 4, 0xa000) ERR#12 ENOMEM
access("/home/sachin/.Xauthority", R_OK) ...................... ERR#2 ENOENT
read(4, 0x7f7f21cc, 8) ........................................ ERR#246 EWOULDBLOCK
read(4, 0x7f7f2284, 32) ....................................... ERR#246 EWOULDBLOCK
read(4, 0x7f7f22ac, 32) ....................................... ERR#246 EWOULDBLOCK
read(4, 0x7f7f2480, 32) ....................................... ERR#246 EWOULDBLOCK
Received signal 11, SIGSEGV, in user mode, [SIG_DFL], partial siginfo
Siginfo: si_code: I_NONEXIST, faulting address: 0x6e380000, si_errno: 0
PC: 0xc0184aef, instruction: 0x488a0000
exit(11) [implicit] ........................................... WIFSIGNALED(SIGSEGV)|WCOR
EDUMP

Sachin
Is photography a hobby or another way to spend $
Cheryl Griffin
Honored Contributor

Re: libc errors

This will fix the installed patches:
# swconfig \*

Transient patches are not installed. Transient is similar to corrupt in that there was a failure during the install.

This is a problem because the patches include PHKL which means kernel regen/reboot and most likely dependencies.

Try running check_patches which will check for these transient patches as well as identify what might else need to be installed to correct the situation (ie dependencies). The latest check_patches should be used PHCO_27779.

It will place a report in /tmp and update the swagent.log. Let's have a look at those.
"Downtime is a Crime."
Sachin Patel
Honored Contributor

Re: libc errors

Hi Cheryl
I have errors in swconfig. I need to reboot the system to fix this error. one or more fileset has been remove from /var/adm/sw... I will have to reapply that patch.
I do not have check_patch patch so I will do it that at same time.
I might have to wait until system crash or have to schedule downtime. I will get back to this task once I will be finished with this.

Thanks
Sachin
Is photography a hobby or another way to spend $