* C++ w/ Shared Libs Coredumps on OSF1
@ 2000-05-05 4:00 rboehne
2000-05-08 4:00 ` Ken Block USG
0 siblings, 1 reply; 2+ messages in thread
From: rboehne @ 2000-05-05 4:00 UTC (permalink / raw)
In the following link line, there are several shared objects
written in C++ that I have compiled. If any two of these library
files are linked into the executalbe (dynamically) the program
dumps core before it reaches main(). I have gotten this
same program to work on three other (UNIX) platforms.
Since the core dump is occurring before main() I can't debug
it (maybe I don't know how?). Is this a bug in cxx or am
I linking the shared libs incorrectly?
If I only link in (and only use) the first (TKernel) everything
works just fine.
cxx -msg_display_tag -std ansi -call_shared -rpath
/boreas/CAS3.0/`uname`/lib -L/sw5/rdg/lib/Debug/`platname`
-L/boreas/CAS3.0/`uname`/lib -o example main.o example.o -lOpenGl
-lTKV3d -lTKV2d -lTKService -lTKFeat -lTKOffset -lTKFillet -lTKHLR
-lTKBool -lTKPrim -lTKTopAlgo -lTKGeomAlgo -lTKBRep -lTKGeomBase -lTKG3d
-lTKG2d -lTKMath -lTKernel -lrp -lrg -lr3d -lrz -lru -lXtras -lXbae
-lXpm -lGLU -lGLw -lGL -lXm -lXt -lXext -lX11 -lm
anubis::/boreas/rbo/examp (142)% example /boreas/rbo/Config/
Segmentation fault (core dumped)
anubis::/boreas/rbo/examp (143)% rm core
anubis::/boreas/rbo/examp (144)% ladebug example
Welcome to the Ladebug Debugger Version 4.0-43
------------------
object file name: example
Reading symbolic information ...done
(ladebug) stop in
main
[#1: stop in void main(int, char**) ]
(ladebug) run
/boreas/rbo/Config
Thread received signal SEGV
stopped at [UnknownProcedure23FromFile11 0x3ff8019e4e8]
(ladebug)
where
>0 0x3ff8019e4e8 in UnknownProcedure23FromFile11(0x3ffbdcedd8c,
0x3fffea74d78, 0x14004b008, 0x0, 0x3ff8202fc40, 0x11ffff6a8)
DebugInformationStrippedFromFile11
#1 0x3ff80114908 in __tis_mutex_lock(0x14004b008, 0x0, 0x3ff8202fc40,
0x11ffff6a8, 0x3ff80114e8c, 0x0) DebugInformationStrippedFromFile742
#2 0x3ff80114e88 in __cma_tis_mutex_lock(0x3ff8202fc40, 0x11ffff6a8,
0x3ff80114e8c, 0x0, 0x3ff8202fc00, 0x14004b000)
DebugInformationStrippedFromFile740
#3 0x3ff8202fbfc in __cxx_mutex_lock(0x3ff80114e8c, 0x0, 0x3ff8202fc00,
0x14004b000, 0x3ffbececeb8, 0x200000000)
DebugInformationStrippedFromFile42
#4 0x3ffbececeb4 in UnknownProcedure34FromFile185(0x0, 0x100000000,
0x3ffff05de48, 0x3ffff05de98, 0x3ff80114dac, 0x3fffea5b770)
DebugInformationStrippedFromFile185
#5 0x3ffbecec1c0 in Init(0x3ff80114dac, 0x3fffea5b770, 0x3ffbdcee4ac,
0x3fffea5b778, 0x3ffbdcee498, 0x3fffe986130)
DebugInformationStrippedFromFile185
#6 0x3ffbdcee4a8 in
__init_sti__cxxl_std_init_cpp_65f45f2a(0x3ffbdcee498, 0x3fffe986130,
0x3ffbdd2f43c, 0x2ff000260a0, 0x3ffc004b380, 0xfffffffffffffff8)
DebugInformationStrippedFromFile508
#7 0x3ffbdd2f438 in /boreas/CAS3.0/OSF1/lib/libTKernel.so
(ladebug)
quit
Sent via Deja.com http://www.deja.com/
Before you buy.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: C++ w/ Shared Libs Coredumps on OSF1
2000-05-05 4:00 C++ w/ Shared Libs Coredumps on OSF1 rboehne
@ 2000-05-08 4:00 ` Ken Block USG
0 siblings, 0 replies; 2+ messages in thread
From: Ken Block USG @ 2000-05-08 4:00 UTC (permalink / raw)
To: rboehne
[-- Attachment #1: Type: text/plain, Size: 3142 bytes --]
It is hard to guess what your problem is based on the information given.
When posting a question like this, it always
helps to give the OS version (uname -a or /usr/sbin/sizer -v) and the
compiler version (cxx -V).
cxxosf.zko.dec.com> uname -a
OSF1 cxxosf.zko.dec.com V4.0 1229 alpha
cxxosf.zko.dec.com> /usr/sbin/sizer -v
Digital UNIX V4.0F (Rev. 1229); Thu Sep 9 13:19:19 EDT 1999
cxxosf.zko.dec.com> cxx -V
Compaq C++ V6.2-040 for Digital UNIX V4.0F (Rev. 1229)
Also you probably should review the documentation
(http://www.unix.digital.com/cplus/docs/index.htm) and the release notes
(http://www.unix.digital.com/cplus/docs/rnu.htm).
Lastly, we posting a problem report, the smaller the reproducer you can
provide, the more likely we will be able to figure our your problem. For
example, the following will produce a segmentation fault, just like your
program, it maybe the same problem, it may be something different:
cxxosf.zko.dec.com> cat m.cxx
extern void f();
extern void x();
int main()
{
x();
f();
return 0;
}
cxxosf.zko.dec.com> cat t.cxx
#include <iostream>
void f()
{
cout << "Hello from f()" << endl;
}
cxxosf.zko.dec.com> cat t2.cxx
#include <iostream>
void x()
{
cout << "Hello from x()" << endl;
}
cxxosf.zko.dec.com> cxx -c m.cxx t.cxx t2.cxx -D__USE_STD_IOSTREAM
m.cxx:
t.cxx:
t2.cxx:
cxxosf.zko.dec.com> setenv LD_LIBRARY_PATH .
cxxosf.zko.dec.com> cxx -shared -o libt.so t.o
cxxosf.zko.dec.com> cxx -shared -o libt2.so t2.o
cxxosf.zko.dec.com> cxx -o tt m.o -L. -lt -lt2
cxxosf.zko.dec.com> ladebug tt
Welcome to the Ladebug Debugger Version 4.0-59
------------------
object file name: tt
Reading symbolic information ...done
(ladebug) run
Thread received signal SEGV
stopped at [<opaque> UnknownProcedure23FromFile12(...) 0x3ff801a4950]
Information: An <opaque> type was presented during execution of the
previous command. For complete type information on this symbol,
recompilation of the program will be necessary. Consult the compiler man
pages for details on producing full symbol table information using the -g
(and -gall for cxx) flags.
(ladebug) where
>0 0x3ff801a4950 in UnknownProcedure23FromFile12(0x0, 0x3ffffffd078, 0x0,
0x100000, 0x1, 0x140003200) in /usr/shlib/libc.so
#1 0x3ff80116440 in __tis_mutex_lock(0x0, 0x3ffffffd078, 0x0, 0x100000,
0x1, 0x140003200) in /usr/shlib/libc.so
#2 0x3ff80116c60 in __cma_tis_mutex_lock(0x0, 0x3ffffffd078, 0x0,
0x100000, 0x1, 0x140003200) in /usr/shlib/libc.so
#3 0x3ff81f3002c in __cxx_mutex_lock(0x0, 0x3ffffffd078, 0x0, 0x100000,
0x1, 0x140003200) in /usr/lib/cmplrs/cxx/libcxx.so
#4 0x3ffbffc9814 in UnknownProcedure34FromFile17(0x0, 0x3ffffffd078, 0x0,
0x100000, 0x1, 0x140003200) in ./libt.so
#5 0x3ffbffc8b20 in Init(0x0, 0x3ffffffd078, 0x0, 0x100000, 0x1,
0x140003200) in ./libt.so
#6 0x3ffbff7b668 in __init_sti__cxxl_std_init_cpp_65f45f2a(0x0,
0x3ffffffd078, 0x0, 0x100000, 0x1, 0x140003200) in ./libt2.so
#7 0x3ffbff96378 in ./libt2.so
#8 0x3ff80017fc0
#9 0x3ff80016344
#10 0x3ff800162dc
#11 0x3ff80016454
#12 0x120008e7c in __start(0x0, 0x3ffffffd078, 0x0, 0x100000, 0x1,
0x140003200) in tt
(ladebug) quit
[-- Attachment #2: Card for Ken Block USG --]
[-- Type: text/x-vcard, Size: 267 bytes --]
begin:vcard
n:Block;Kenneth
x-mozilla-html:FALSE
org:CTG C/C++ Compiler
version:2.1
email;internet:block@zk3.dec.com
adr;quoted-printable:;;110 Spit Brook Road=0D=0AM/S ZKO3-2/W02;Nashua;NH;03062;USA
x-mozilla-cpt:;0
tel;work:603-884-2819
fn:Kenneth Block
end:vcard
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-05-08 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-05-05 4:00 C++ w/ Shared Libs Coredumps on OSF1 rboehne
2000-05-08 4:00 ` Ken Block USG
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox