|
From: Rich C. <rc...@wi...> - 2013-01-09 21:36:01
|
On Wed, 9 Jan 2013 21:13:16 +0530
Kalaivani R <kal...@gm...> wrote:
> Hi,
> I installed valgrind 3.8.1 and when I tried to run with a C++ executable it
> always terminates with SIGSEGV for a C++ static variable initialization.
[ ... ]
> Thanks,
> Kalai
>
> #0 0x04009a34 in _vgr20210ZU_libcZdsoZa_memset (s=0x0, c=0, n=22150000) at
> mc_replace_strmem.c:1007
> 1007 MEMSET(VG_Z_LIBC_SONAME, memset)
> (gdb) bt
> #0 0x04009a34 in _vgr20210ZU_libcZdsoZa_memset (s=0x0, c=0, n=22150000) at
> mc_replace_strmem.c:1007
> #1 0x040c7d0b in Heap (this=0x8060e00) at
> /vobs/eps_fw/New/./src/Heap.cpp:61
What is Heap.cpp doing at line 61?
Where did it get the pointer of memory allocated that it's passing
to memset() ?
> #2 0x040cb41f in operator new (size=24) at
> /vobs/eps_fw/New/./src/NewDelete.cpp:23
> #3 0x040ed2ec in __static_initialization_and_destruction_0
> (__initialize_p=1, __priority=65535)
> at /vobs/eps_fw/Telnet/./src/TelnetClient.cpp:31
> #4 0x040ed3a3 in global constructors keyed to
> _ZN12TelnetClient27numberOpenClientConnectionsE ()
> at /vobs/eps_fw/Telnet/./src/TelnetClient.cpp:275
> #5 0x040f0885 in __do_global_ctors_aux () from /root/enb/lib/libTelnet.so
> #6 0x040ebbe5 in _init () from /root/enb/lib/libTelnet.so
> #7 0x0044d898 in _dl_init_internal () from /lib/ld-linux.so.2
> #8 0x004417ff in _dl_start_user () from /lib/ld-linux.so.2
> Current language: auto; currently c
Rich
|