Hi, I have a server app called statManager which was built with MICO 2.3.11 on HPUX 11.00. Clients on HP, Solaris, AIX and Windows connect to it. Some of the clients were built with MICO 2.3.11, and some were built with Borland VisiBroker 6.5. Everything works great until I kill one of the AIX clients that I built with VB. Nine times out of ten this causes the statManager to core dump. Here is a stack trace:
cuhpsv33:tperkins:SPIAT:PAC_SWNET:/work/vkononen/core> gdb statManager core
Wildebeest is free software and you are welcome to distribute copies of
it under certain conditions; type "show copying" to see the conditions.
There is absolutely no warranty for Wildebeest; type "show warranty"
for details.
Hewlett-Packard Wildebeest 1.0 (based on GDB 4.16)
(built for PA-RISC 1.1 or 2.0 (narrow), HP-UX 11.00)
Copyright 1996, 1997 Free Software Foundation, Inc...
(no debugging symbols found)...
Core was generated by `statManager'.
Program terminated with signal 6, Aborted.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
(no debugging symbols found)...(no debugging symbols found)...
(no debugging symbols found)...(no debugging symbols found)...
#0 0xc01f45a0 in _kill () from /usr/lib/libc.2
#0 0xc01f45a0 in _kill () from /usr/lib/libc.2
(gdb) bt
#0 0xc01f45a0 in _kill () from /usr/lib/libc.2
#1 0xc0191948 in _raise () from /usr/lib/libc.2
#2 0xc01d1f7c in abort_C () from /usr/lib/libc.2
#3 0xc01d1fd4 in _abort () from /usr/lib/libc.2
#4 0xc28b6d0c in __PureVirtualCalled () from /usr/lib/libCsup_v2.2
#5 0xc9ec4a54 in CORBA::Transport::read ()
from /work/vkononen/core/lib/libmico2.3.11.sl
#6 0xc9ef766c in MICO::GIOPConn::do_read ()
from /work/vkononen/core/lib/libmico2.3.11.sl
#7 0xc9ee9b54 in MICO::GIOPConnReader::_run ()
from /work/vkononen/core/lib/libmico2.3.11.sl
#8 0xca1544dc in MICO::WorkerThread::_run ()
from /work/vkononen/core/lib/libmico2.3.11.sl
#9 0xca13b1ec in ThreadWrapper__Q2_6MICOMT6ThreadSFPv ()
from /work/vkononen/core/lib/libmico2.3.11.sl
#10 0xc27e9df0 in __pthread_create_system () from /usr/lib/libpthread.1
(gdb) info threads
* 9 system thread 6516 0xc01f45a0 in _kill () from /usr/lib/libc.2
8 system thread 6519 0xc032e768 in __lwp_sema_wait () from /usr/lib/librt.2
7 system thread 6518 0xc032e768 in __lwp_sema_wait () from /usr/lib/librt.2
6 system thread 6517 0xc01f4c40 in _read_sys () from /usr/lib/libc.2
5 system thread 6514 0xc01f4c40 in _read_sys () from /usr/lib/libc.2
4 system thread 6513 0xc01f4c40 in _read_sys () from /usr/lib/libc.2
3 system thread 6512 0xc01f2e70 in __ksleep () from /usr/lib/libc.2
2 system thread 6506 0xc01f4b90 in _poll_sys () from /usr/lib/libc.2
1 system thread 6505 0xc01f4e50 in _select_sys () from /usr/lib/libc.2
(gdb)
Here is the disconnect code in my Borland VB client:
while( !stopped ) hman.work();
log.entry( Log::debug1 ) << "stopped = true. About to destroy rootPoa..."
<< log;
rootPoa->destroy( true, true );
log.entry( Log::debug1 ) << "rootPoa destroyed" << log;
hmanPoa = 0;
rootPoa = 0;
CORBA::release( theOrb );
log.entry( Log::debug1 ) << "CORBA orb released" << log;
mainStopped = true;
}
catch( const Stat::Failure &f ) {
log.entry( Log::high ) << "Stat::Failure Exception: " << f.where << "/"
<< f.what << log;
cerr << "hostManager - Stat::Failure Exception: " << f.where << "/" <<
f.what << endl;
}
catch( const CORBA::Exception &e ) {
log.entry( Log::high ) << "CORBA Exception: " << e << log;
cerr << "hostManager - CORBA Exception: " << e << endl;
}
catch( ... ){
log.entry( Log::high ) << "Error: unhandled exception" << log;
cerr << "Error: unhandled exception" << endl;
}
log.entry( Log::high ) << "hostManager stopped" << log;
}
I use the same code to disconnect a MICO client. This works perfectly on all
platforms except AIX 5.3. Can anyone tell from the
stack trace why my server is dying? Thanks.
Tyler PERKINS
Test Engineer, SwiftNet PAC TCG
Tel: 540-829-1384
S.W.I.F.T., Inc.
This e-mail and any attachments thereto may contain information which is
confidential and/or proprietary and intended for the sole
use of the recipient(s) named above. If you have received this e-mail in error,
please immediately notify the sender and delete the
mail. Thank you for your co-operation.
SWIFT reserves the right to retain e-mail messages on its systems and, under
circumstances permitted by applicable law, to monitor
and intercept e-mail messages to and from its systems.
Please visit http://www.swift.com for more information about SWIFT.
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Mico-devel mailing list [email protected] http://www.mico.org/mailman/listinfo/mico-devel
