[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: c++ SIGSEG



> TestLogin still gives me a SEGV.  This is what I get from gdb:
> 
> Core was generated by `TestLogin -iorFile /tmp/ior.dat'.
> Program terminated with signal 11, Segmentation fault.
> Reading symbols from /usr/local/lib/libsocks5_sh.so...bdone.
> Reading symbols from /usr/local/lib/libxerces-c1_4.so...done.
> Reading symbols from /lib/libpthread.so.0...tdone.
> Reading symbols from /usr/local/lib/libmico2.3.5.so...
> done.
> Reading symbols from /lib/libdl.so.2...done.
> Reading symbols from /usr/local/lib/libmicocoss2.3.5.so...done.
> Reading symbols from /lib/libm.so.6...done.
> Reading symbols from /usr/lib/libstdc++-libc6.1-1.so.2...done.
> Reading symbols from /lib/libc.so.6...done.
> Reading symbols from /lib/ld-linux.so.2...done.
> Reading symbols from /lib/libresolv.so.2...done.
> Reading symbols from /lib/libnss_files.so.2...done.
> Reading symbols from /lib/libnss_nisplus.so.2...done.
> Reading symbols from /lib/libnsl.so.1...done.
> Reading symbols from /lib/libnss_nis.so.2...done.
> Reading symbols from /lib/libnss_dns.so.2...done.
> #0  0x409e0f93 in __libc_free (mem=0x809b0ba) at malloc.c:3012
> 3012    malloc.c: No such file or directory.
> (gdb) bt
> #0  0x409e0f93 in __libc_free (mem=0x809b0ba) at malloc.c:3012
> #1  0x40443d2e in __builtin_vec_delete (ptr=0x809b0ba) from
> /usr/local/lib/libmico2.3.5.so
> #2  0x40307cc9 in CORBA::string_free () from /usr/local/lib/libmico2.3.5.so
> #3  0x403079ef in CORBA::String_var::~String_var () from
> /usr/local/lib/libmico2.3.5.so
> #4  0x808a507 in serverIdl::MessageUnit::~MessageUnit (this=0xbffff69c,
> __in_chrg=2) at ../client/DefaultCallback.h:109
> #5  0x806b0de in main (args=3, argc=0xbffff794) at TestLogin.cc:316
> 
> It looks like it might be a bug in libmico2.3.5.so, since yours seems to work
> and mine doesnt.  The library is the only difference that I can see.

Hmm, try this line

  const serverIdl::MessageUnit &msgUnit = msgUnitArr[i];

in 

  xmlBlaster/src/c++/client/DefaultCallback.h:109

instead of the old line, possibly it helps.
If it fixes the bug please commit to cvs.

> 
> Something that is definately odd is that 'gettimeofday' gets called 58 thousand
> times:
> [c++]$ strace TestLogin -iorFile /tmp/ior.dat 2>&1 | grep -c gettimeofday
> 58467

No idea.

> 
> I will try to get  an older version of mico an see if that fixes it.
> 
> Also with TestSub I get a SIGABRT at TestSub.cc:228.  Does yours work?

Mine works (all clients work).

> I have fixed this.  pthreads is now linked in.

Thanks

This warning occures during gmake, is it possible to
suppress it?:

 /bin/mkdir bin
/bin/mkdir: Can't create directory »bin« : Exists already
make[2]: [link] Error 1 (ignored)

and all client executable exist double, one
in xmlBlaster/testsuite/c++ and
one in xmlBlaster/testsuite/c++/bin

regards,

Marcel

-- 
Marcel Ruff
mailto:ruff at swand.lake.de
http://www.lake.de/home/lake/swand/
http://www.xmlBlaster.org