Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ valgrind ./Server test1
- ==31063== Memcheck, a memory error detector.
- ==31063== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
- ==31063== Using LibVEX rev 1884, a library for dynamic binary translation.
- ==31063== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
- ==31063== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework.
- ==31063== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
- ==31063== For more details, rerun with: -v
- ==31063==
- 2.130 [ Warning][./Server::main()] Lowering scheduler type to SCHED_OTHER for non-privileged users..
- 2.153 [ Warning][./Server::main()] Forcing priority (99) of thread with SCHED_OTHER policy to 0.
- ==31063== Invalid read of size 4
- ==31063== at 0x4016A59: (within /lib/ld-2.9.so)
- ==31063== by 0x5483D03: (within /lib/tls/i686/cmov/libc-2.9.so)
- ==31063== by 0x54840F9: _dl_sym (in /lib/tls/i686/cmov/libc-2.9.so)
- ==31063== by 0x54C7DB7: (within /lib/tls/i686/cmov/libdl-2.9.so)
- ==31063== by 0x400E035: (within /lib/ld-2.9.so)
- ==31063== by 0x54C801B: (within /lib/tls/i686/cmov/libdl-2.9.so)
- ==31063== by 0x54C7D42: dlsym (in /lib/tls/i686/cmov/libdl-2.9.so)
- ==31063== by 0x5150182: ACE_DLL_Handle::symbol(char const*, int) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x5150B41: ACE_DLL_Manager::unload_dll(ACE_DLL_Handle*, int) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x5150CA3: ACE_DLL_Manager::close_dll(char const*) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x514ED06: ACE_DLL::close() (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x514ED51: ACE_DLL::~ACE_DLL() (in /usr/lib/libACE-5.6.3.so)
- ==31063== Address 0x5647f3c is 20 bytes inside a block of size 23 alloc'd
- ==31063== at 0x40260CE: operator new[](unsigned int, std::nothrow_t const&) (vg_replace_malloc.c:288)
- ==31063== by 0x51656D9: ACE::ldname(char const*) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x5150166: ACE_DLL_Handle::symbol(char const*, int) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x5150B41: ACE_DLL_Manager::unload_dll(ACE_DLL_Handle*, int) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x5150CA3: ACE_DLL_Manager::close_dll(char const*) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x514ED06: ACE_DLL::close() (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x514ED51: ACE_DLL::~ACE_DLL() (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x519ACF7: (within /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x519AE37: (within /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x519991B: (within /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x519B8F3: (within /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x51C741B: (within /usr/lib/libACE-5.6.3.so)
- ==31063==
- ==31063== Syscall param writev(vector[...]) points to uninitialised byte(s)
- ==31063== at 0x40007F2: (within /lib/ld-2.9.so)
- ==31063== by 0x5129AC9: ACE::sendv(int, iovec const*, int, ACE_Time_Value const*) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x4F21E92: TAO_IIOP_Transport::send(iovec*, int, unsigned int&, ACE_Time_Value const*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F7BCC0: TAO_Transport::drain_queue_helper(int&, iovec*, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F7DA72: TAO_Transport::drain_queue_i(ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F7DD8E: TAO_Transport::send_synch_message_helper_i(TAO_Synch_Queued_Message&, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F7E168: TAO_Transport::send_synchronous_message_i(ACE_Message_Block const*, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F7EEE2: TAO_Transport::send_message_shared_i(TAO_Stub*, TAO_Transport::TAO_Message_Semantics, ACE_Message_Block const*, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F7EF8D: TAO_Transport::send_message_shared(TAO_Stub*, TAO_Transport::TAO_Message_Semantics, ACE_Message_Block const*, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F21AA8: TAO_IIOP_Transport::send_message(TAO_OutputCDR&, TAO_Stub*, TAO_Transport::TAO_Message_Semantics, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F21960: TAO_IIOP_Transport::send_request(TAO_Stub*, TAO_ORB_Core*, TAO_OutputCDR&, TAO_Transport::TAO_Message_Semantics, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F57E83: TAO::Remote_Invocation::send_message(TAO_OutputCDR&, TAO_Transport::TAO_Message_Semantics, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== Address 0x5679161 is 3,609 bytes inside a block of size 4,096 alloc'd
- ==31063== at 0x40260CE: operator new[](unsigned int, std::nothrow_t const&) (vg_replace_malloc.c:288)
- ==31063== by 0x5165F11: ACE_Local_Memory_Pool::acquire(unsigned int, unsigned int&) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x5165D87: ACE_Local_Memory_Pool::init_acquire(unsigned int, unsigned int&, int&) (in /usr/lib/libACE-5.6.3.so)
- ==31063== by 0x4F8D301: (within /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F8D488: (within /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F8D54E: (within /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F8C40F: TAO_Default_Resource_Factory::output_cdr_buffer_allocator() (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F77822: TAO_Thread_Lane_Resources::output_cdr_buffer_allocator() (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F3B484: TAO_ORB_Core::output_cdr_buffer_allocator() (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F7C6B2: TAO_Transport::TAO_Transport(unsigned int, TAO_ORB_Core*, unsigned int) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F22008: TAO_IIOP_Transport::TAO_IIOP_Transport(TAO_IIOP_Connection_Handler*, TAO_ORB_Core*) (in /usr/lib/libTAO-1.6.3.so)
- ==31063== by 0x4F174FD: TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler(TAO_ORB_Core*) (in /usr/lib/libTAO-1.6.3.so)
- 9.198 [ Warning][./Server::main()] ControlTask 'test1' already bound to CORBA Naming Service.
- 9.204 [ Warning][./Server::main()] Trying to rebind... done. New ControlTask bound to Naming Service.
- ==31063==
- ==31063== Thread 2:
- ==31063== Jump to the invalid address stated on the next line
- ==31063== at 0x9BC381FF: ???
- ==31063== by 0x489F816: RTT::PortInterface::signal() (PortInterface.cpp:212)
- ==31063== by 0x48BD326: RTT::ConnectionInterface::signal() (ConnectionInterface.cpp:112)
- ==31063== by 0x805C4A6: RTT::DataPort<int>::Set(int const&) (DataPort.hpp:333)
- ==31063== by 0x805C582: MyTask::updateHook() (testServer.cpp:40)
- ==31063== by 0x4898112: RTT::ExecutionEngine::step() (ExecutionEngine.cpp:324)
- ==31063== by 0x489194F: RTT::PeriodicActivity::step() (PeriodicActivity.cpp:178)
- ==31063== by 0x48DE33B: RTT::TimerThread::step() (TimerThread.cpp:146)
- ==31063== by 0x4917EC7: RTT::OS::periodicThread(void*) (PeriodicThread.cpp:106)
- ==31063== by 0x522C4FE: start_thread (in /lib/tls/i686/cmov/libpthread-2.9.so)
- ==31063== by 0x544749D: clone (in /lib/tls/i686/cmov/libc-2.9.so)
- ==31063== Address 0x9bc381ff is not stack'd, malloc'd or (recently) free'd
- ==31063==
- ==31063== Process terminating with default action of signal 11 (SIGSEGV)
- ==31063== Access not within mapped region at address 0x9BC381FF
- ==31063== at 0x9BC381FF: ???
- ==31063== by 0x489F816: RTT::PortInterface::signal() (PortInterface.cpp:212)
- ==31063== by 0x48BD326: RTT::ConnectionInterface::signal() (ConnectionInterface.cpp:112)
- ==31063== by 0x805C4A6: RTT::DataPort<int>::Set(int const&) (DataPort.hpp:333)
- ==31063== by 0x805C582: MyTask::updateHook() (testServer.cpp:40)
- ==31063== by 0x4898112: RTT::ExecutionEngine::step() (ExecutionEngine.cpp:324)
- ==31063== by 0x489194F: RTT::PeriodicActivity::step() (PeriodicActivity.cpp:178)
- ==31063== by 0x48DE33B: RTT::TimerThread::step() (TimerThread.cpp:146)
- ==31063== by 0x4917EC7: RTT::OS::periodicThread(void*) (PeriodicThread.cpp:106)
- ==31063== by 0x522C4FE: start_thread (in /lib/tls/i686/cmov/libpthread-2.9.so)
- ==31063== by 0x544749D: clone (in /lib/tls/i686/cmov/libc-2.9.so)
- ==31063== If you believe this happened as a result of a stack overflow in your
- ==31063== program's main thread (unlikely but possible), you can try to increase
- ==31063== the size of the main thread stack using the --main-stacksize= flag.
- ==31063== The main thread stack size used in this run was 8388608.
- ==31063==
- ==31063== ERROR SUMMARY: 12 errors from 3 contexts (suppressed: 77 from 3)
- ==31063== malloc/free: in use at exit: 261,617 bytes in 1,869 blocks.
- ==31063== malloc/free: 3,112 allocs, 1,243 frees, 419,246 bytes allocated.
- ==31063== For counts of detected errors, rerun with: -v
- ==31063== Use --track-origins=yes to see where uninitialised values come from
- ==31063== searching for pointers to 1,869 not-freed blocks.
- ==31063== checked 8,832,428 bytes.
- ==31063==
- ==31063== LEAK SUMMARY:
- ==31063== definitely lost: 8 bytes in 2 blocks.
- ==31063== possibly lost: 58,188 bytes in 211 blocks.
- ==31063== still reachable: 203,421 bytes in 1,656 blocks.
- ==31063== suppressed: 0 bytes in 0 blocks.
- ==31063== Rerun with --leak-check=full to see details of leaked memory.
- Killed
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement