Threading - oracle - pro*c - libthread.so problem

From: Andy Crichton (andy.crichton@abibuildingdata.com)
Date: Tue May 20 2003 - 06:31:35 EDT


Hello,
        I have an oracle pro*c program which has an issue with threading/signals.
It is running on an E450 - 5.7 Generic_106541-18 sun4u sparc SUNW,Ultra-4
and is linked with libclntsh.so.8.0 (oracle client library) and
libthread.so.1

It outputs the following:

libthread panic: _deliversigs: _lwp_kill : dumping core (PID: 6860 LWP
1229148)
stacktrace:
        febd0dfc
        febd96c8
        fe98fe54
        14b08
        12bf4
        120a0
        11ffc
        11d68
        0

Program received signal SIGABRT, Aborted.
0xfebd9d88 in __sigprocmask () from /usr/lib/libthread.so.1

Oracle's libclntsh.so uses threads to manage the oracle connections. A
backtrace indicates that this happens during a system() call in the code:

#0 0xfebd9d88 in __sigprocmask () from /usr/lib/libthread.so.1
#1 0xfebcecb0 in _deliversigs () from /usr/lib/libthread.so.1
#2 0xfebd0e04 in thr_sigsetmask () from /usr/lib/libthread.so.1
#3 0xfebd96d0 in sigprocmask () from /usr/lib/libthread.so.1
#4 0xfe98fe5c in system () from /usr/lib/libc.so.1

        Oracle says that unless I create threads in my code then I do not need to
worry about threading issues but it looks to me like there is something
happening during the system() call (which is not thread safe). I have
replicated this problem on a solaris 8 machine with a different version of
the oracle shared client library and with the sun compiler but to exactly
the same effect.

My question is:
Q.) Is this a problem which will be solved by patches for the thread library
or is it not possible to safely call system() in a program with libcltnsh.so
and libthread.so without some kind of locking.

Many thanks in advance for any information you may have. I will summarize.

Andy Crichton

__________________________
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. The contents are confidential and may be privileged.
Any views or opinions expressed are those of the sender and may not reflect the views or opinions of the company and the company accepts no liability in respect thereof.
If you have received this email in error please notify postmaster@abibuildingdata.com immediately.

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:26 EDT