Operating System - HP-UX
1832994 Members
2613 Online
110048 Solutions
New Discussion

Pthread internal error: message: __libc_reinit() failed,

 
Carme Torca
Super Advisor

Pthread internal error: message: __libc_reinit() failed,

I have this error in one server with 11.11

Pthread internal error: message: __libc_reinit() failed, file: /ux/core/libs/threadslibs/src/common/pthreads/pthread.c, line: 1155
Return Pointer is 0xc004a603
./uxstartup[14]: 6014 Quit(coredump)

Pthread internal error: message: __libc_reinit() failed, file: /ux/core/libs/threadslibs/src/common/pthreads/pthread.c, line: 1155
Return Pointer is 0xc004a603
./uxstartup[26]: 6026 Quit(coredump)

I have this patches in this servers about libc
#swlist -l patch |grep -i libc

# PHCO_24915 1.0 libc manpage cumulative patch
# PHCO_25569 1.0 libc cumulative header file patch
# PHCO_25898 1.0 cumulative 10.20 libc compatibility support
# PHCO_31903 1.0 libc cumulative patch
# PHSS_25719 1.0 LIBCL patch

and
# ls -l libpth*
-r-xr-xr-x 1 bin bin 159744 Dec 9 2003 libpthread.1
-r-xr-xr-x 1 bin bin 229206 Dec 9 2003 libpthread.a
lrwxr-xr-x 1 root root 21 Nov 7 2003 libpthread.sl -> /usr/lib/libpthread.1
-r-xr-xr-x 1 bin bin 184320 Dec 9 2003 libpthread_tr.1
-r-xr-xr-x 1 bin bin 258866 Dec 9 2003 libpthread_tr.a
lrwxr-xr-x 1 root root 24 Nov 7 2003 libpthread_tr.sl -> /usr/lib/libpthread_tr.1

Does anyone knows if there is any patch about this error? or maybe is it something diferent??

Thanks very much!
Carmen.
Users are not too bad ;-)
9 REPLIES 9
Stephen Keane
Honored Contributor

Re: Pthread internal error: message: __libc_reinit() failed,

What is your environment variable SHLIB_PATH set to?
Carme Torca
Super Advisor

Re: Pthread internal error: message: __libc_reinit() failed,

Hi,

I haven't got this variable.
# echo $SHLIB_PATH
sh: SHLIB_PATH: Parameter not set.
#
Users are not too bad ;-)
Carme Torca
Super Advisor

Re: Pthread internal error: message: __libc_reinit() failed,

I have put this valor, but the error is the same...

# echo $SHLIB_PATH
/usr/lib

Pthread internal error: message: __libc_reinit() failed, file: /ux/core/libs/threadslibs/src/common/pthreads/pthread.c, line: 1155
Return Pointer is 0xc004a603
./uxstartup[14]: 18114 Quit(coredump)

Pthread internal error: message: __libc_reinit() failed, file: /ux/core/libs/threadslibs/src/common/pthreads/pthread.c, line: 1155
Return Pointer is 0xc004a603
./uxstartup[26]: 18126 Quit(coredump)

Users are not too bad ;-)
Stephen Keane
Honored Contributor

Re: Pthread internal error: message: __libc_reinit() failed,

Is uxstartup an executable, or a script? If it is an executable, can you run chatr on it

# chatr uxstartup

and post the result.
Carme Torca
Super Advisor

Re: Pthread internal error: message: __libc_reinit() failed,

Hi,

uxstartup is an script that calls this executable:


# chatr uxcmdsrv
uxcmdsrv:
shared executable
shared library dynamic path search:
SHLIB_PATH enabled first
embedded path enabled second /usr/lib/libux_v500
shared library list:
dynamic /etud_objp/m_v500/HP-UX1100/libstatique/librairie_dynamique_de_reference/libuxos.sl
dynamic /etud_objp/m_v500/HP-UX1100/libstatique/librairie_dynamique_de_reference/libuxspv.sl
dynamic /usr/lib/libm.2
dynamic /usr/lib/libpthread.1
dynamic /usr/lib/libd4r.1
dynamic /usr/lib/libc.2
shared library binding:
deferred
global hash table disabled
plabel caching disabled
global hash array size:1103
global hash array nbuckets:3
shared vtable support disabled
explicit unloading enabled
static branch prediction disabled
executable from stack: D (default)
kernel assisted branch prediction enabled
lazy swap allocation disabled
text segment locking disabled
data segment locking disabled
third quadrant private data space disabled
fourth quadrant private data space disabled
third quadrant global data space disabled
data page size: D (default)
instruction page size: D (default)
nulptr references disabled
shared library private mapping disabled
shared library text merging disabled
Users are not too bad ;-)
Stephen Keane
Honored Contributor

Re: Pthread internal error: message: __libc_reinit() failed,

Your executable has SHLIB_PATH enabled,

SHLIB_PATH enabled first

but none of you libraries have a relative path, so it doesn't need it enabled.

Do all of the following files exist in their stated directories?

/etud_objp/m_v500/HP-UX1100/libstatique/librairie_dynamique_de_reference/libuxos.sl

/etud_objp/m_v500/HP-UX1100/libstatique/librairie_dynamique_de_reference/libuxspv.sl

/usr/lib/libm.2

/usr/lib/libpthread.1

/usr/lib/libd4r.1

/usr/lib/libc.2
Carme Torca
Super Advisor

Re: Pthread internal error: message: __libc_reinit() failed,

Hi,

Only exists

/usr/lib/libm.2
/usr/lib/libpthread.1
/usr/lib/libd4r.1
/usr/lib/libc.2

but the error is abot thread, and the library exists.

Users are not too bad ;-)
Stephen Keane
Honored Contributor

Re: Pthread internal error: message: __libc_reinit() failed,

Do you have libuxos.sl and libuxspv.sl anywhere on your system? If so, you need to set SHLIB_PATH to point to the directory/directories they are in.
Carme Torca
Super Advisor

Re: Pthread internal error: message: __libc_reinit() failed,

Hi,

I put this but the error is the same... don't worry I am going to ask for another version of this executable..

Thanks very much!!
Users are not too bad ;-)