Advertisement
Guest User

Untitled

a guest
Sep 8th, 2009
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.96 KB | None | 0 0
  1. $ valgrind ./Server test1
  2.  
  3. ==31063== Memcheck, a memory error detector.
  4. ==31063== Copyright (C) 2002-2008, and GNU GPL'd, by Julian Seward et al.
  5. ==31063== Using LibVEX rev 1884, a library for dynamic binary translation.
  6. ==31063== Copyright (C) 2004-2008, and GNU GPL'd, by OpenWorks LLP.
  7. ==31063== Using valgrind-3.4.1-Debian, a dynamic binary instrumentation framework.
  8. ==31063== Copyright (C) 2000-2008, and GNU GPL'd, by Julian Seward et al.
  9. ==31063== For more details, rerun with: -v
  10. ==31063==
  11. 2.130 [ Warning][./Server::main()] Lowering scheduler type to SCHED_OTHER for non-privileged users..
  12. 2.153 [ Warning][./Server::main()] Forcing priority (99) of thread with SCHED_OTHER policy to 0.
  13. ==31063== Invalid read of size 4
  14. ==31063== at 0x4016A59: (within /lib/ld-2.9.so)
  15. ==31063== by 0x5483D03: (within /lib/tls/i686/cmov/libc-2.9.so)
  16. ==31063== by 0x54840F9: _dl_sym (in /lib/tls/i686/cmov/libc-2.9.so)
  17. ==31063== by 0x54C7DB7: (within /lib/tls/i686/cmov/libdl-2.9.so)
  18. ==31063== by 0x400E035: (within /lib/ld-2.9.so)
  19. ==31063== by 0x54C801B: (within /lib/tls/i686/cmov/libdl-2.9.so)
  20. ==31063== by 0x54C7D42: dlsym (in /lib/tls/i686/cmov/libdl-2.9.so)
  21. ==31063== by 0x5150182: ACE_DLL_Handle::symbol(char const*, int) (in /usr/lib/libACE-5.6.3.so)
  22. ==31063== by 0x5150B41: ACE_DLL_Manager::unload_dll(ACE_DLL_Handle*, int) (in /usr/lib/libACE-5.6.3.so)
  23. ==31063== by 0x5150CA3: ACE_DLL_Manager::close_dll(char const*) (in /usr/lib/libACE-5.6.3.so)
  24. ==31063== by 0x514ED06: ACE_DLL::close() (in /usr/lib/libACE-5.6.3.so)
  25. ==31063== by 0x514ED51: ACE_DLL::~ACE_DLL() (in /usr/lib/libACE-5.6.3.so)
  26. ==31063== Address 0x5647f3c is 20 bytes inside a block of size 23 alloc'd
  27. ==31063== at 0x40260CE: operator new[](unsigned int, std::nothrow_t const&) (vg_replace_malloc.c:288)
  28. ==31063== by 0x51656D9: ACE::ldname(char const*) (in /usr/lib/libACE-5.6.3.so)
  29. ==31063== by 0x5150166: ACE_DLL_Handle::symbol(char const*, int) (in /usr/lib/libACE-5.6.3.so)
  30. ==31063== by 0x5150B41: ACE_DLL_Manager::unload_dll(ACE_DLL_Handle*, int) (in /usr/lib/libACE-5.6.3.so)
  31. ==31063== by 0x5150CA3: ACE_DLL_Manager::close_dll(char const*) (in /usr/lib/libACE-5.6.3.so)
  32. ==31063== by 0x514ED06: ACE_DLL::close() (in /usr/lib/libACE-5.6.3.so)
  33. ==31063== by 0x514ED51: ACE_DLL::~ACE_DLL() (in /usr/lib/libACE-5.6.3.so)
  34. ==31063== by 0x519ACF7: (within /usr/lib/libACE-5.6.3.so)
  35. ==31063== by 0x519AE37: (within /usr/lib/libACE-5.6.3.so)
  36. ==31063== by 0x519991B: (within /usr/lib/libACE-5.6.3.so)
  37. ==31063== by 0x519B8F3: (within /usr/lib/libACE-5.6.3.so)
  38. ==31063== by 0x51C741B: (within /usr/lib/libACE-5.6.3.so)
  39. ==31063==
  40. ==31063== Syscall param writev(vector[...]) points to uninitialised byte(s)
  41. ==31063== at 0x40007F2: (within /lib/ld-2.9.so)
  42. ==31063== by 0x5129AC9: ACE::sendv(int, iovec const*, int, ACE_Time_Value const*) (in /usr/lib/libACE-5.6.3.so)
  43. ==31063== by 0x4F21E92: TAO_IIOP_Transport::send(iovec*, int, unsigned int&, ACE_Time_Value const*) (in /usr/lib/libTAO-1.6.3.so)
  44. ==31063== by 0x4F7BCC0: TAO_Transport::drain_queue_helper(int&, iovec*, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
  45. ==31063== by 0x4F7DA72: TAO_Transport::drain_queue_i(ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
  46. ==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)
  47. ==31063== by 0x4F7E168: TAO_Transport::send_synchronous_message_i(ACE_Message_Block const*, ACE_Time_Value*) (in /usr/lib/libTAO-1.6.3.so)
  48. ==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)
  49. ==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)
  50. ==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)
  51. ==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)
  52. ==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)
  53. ==31063== Address 0x5679161 is 3,609 bytes inside a block of size 4,096 alloc'd
  54. ==31063== at 0x40260CE: operator new[](unsigned int, std::nothrow_t const&) (vg_replace_malloc.c:288)
  55. ==31063== by 0x5165F11: ACE_Local_Memory_Pool::acquire(unsigned int, unsigned int&) (in /usr/lib/libACE-5.6.3.so)
  56. ==31063== by 0x5165D87: ACE_Local_Memory_Pool::init_acquire(unsigned int, unsigned int&, int&) (in /usr/lib/libACE-5.6.3.so)
  57. ==31063== by 0x4F8D301: (within /usr/lib/libTAO-1.6.3.so)
  58. ==31063== by 0x4F8D488: (within /usr/lib/libTAO-1.6.3.so)
  59. ==31063== by 0x4F8D54E: (within /usr/lib/libTAO-1.6.3.so)
  60. ==31063== by 0x4F8C40F: TAO_Default_Resource_Factory::output_cdr_buffer_allocator() (in /usr/lib/libTAO-1.6.3.so)
  61. ==31063== by 0x4F77822: TAO_Thread_Lane_Resources::output_cdr_buffer_allocator() (in /usr/lib/libTAO-1.6.3.so)
  62. ==31063== by 0x4F3B484: TAO_ORB_Core::output_cdr_buffer_allocator() (in /usr/lib/libTAO-1.6.3.so)
  63. ==31063== by 0x4F7C6B2: TAO_Transport::TAO_Transport(unsigned int, TAO_ORB_Core*, unsigned int) (in /usr/lib/libTAO-1.6.3.so)
  64. ==31063== by 0x4F22008: TAO_IIOP_Transport::TAO_IIOP_Transport(TAO_IIOP_Connection_Handler*, TAO_ORB_Core*) (in /usr/lib/libTAO-1.6.3.so)
  65. ==31063== by 0x4F174FD: TAO_IIOP_Connection_Handler::TAO_IIOP_Connection_Handler(TAO_ORB_Core*) (in /usr/lib/libTAO-1.6.3.so)
  66. 9.198 [ Warning][./Server::main()] ControlTask 'test1' already bound to CORBA Naming Service.
  67. 9.204 [ Warning][./Server::main()] Trying to rebind... done. New ControlTask bound to Naming Service.
  68. ==31063==
  69. ==31063== Thread 2:
  70. ==31063== Jump to the invalid address stated on the next line
  71. ==31063== at 0x9BC381FF: ???
  72. ==31063== by 0x489F816: RTT::PortInterface::signal() (PortInterface.cpp:212)
  73. ==31063== by 0x48BD326: RTT::ConnectionInterface::signal() (ConnectionInterface.cpp:112)
  74. ==31063== by 0x805C4A6: RTT::DataPort<int>::Set(int const&) (DataPort.hpp:333)
  75. ==31063== by 0x805C582: MyTask::updateHook() (testServer.cpp:40)
  76. ==31063== by 0x4898112: RTT::ExecutionEngine::step() (ExecutionEngine.cpp:324)
  77. ==31063== by 0x489194F: RTT::PeriodicActivity::step() (PeriodicActivity.cpp:178)
  78. ==31063== by 0x48DE33B: RTT::TimerThread::step() (TimerThread.cpp:146)
  79. ==31063== by 0x4917EC7: RTT::OS::periodicThread(void*) (PeriodicThread.cpp:106)
  80. ==31063== by 0x522C4FE: start_thread (in /lib/tls/i686/cmov/libpthread-2.9.so)
  81. ==31063== by 0x544749D: clone (in /lib/tls/i686/cmov/libc-2.9.so)
  82. ==31063== Address 0x9bc381ff is not stack'd, malloc'd or (recently) free'd
  83. ==31063==
  84. ==31063== Process terminating with default action of signal 11 (SIGSEGV)
  85. ==31063== Access not within mapped region at address 0x9BC381FF
  86. ==31063== at 0x9BC381FF: ???
  87. ==31063== by 0x489F816: RTT::PortInterface::signal() (PortInterface.cpp:212)
  88. ==31063== by 0x48BD326: RTT::ConnectionInterface::signal() (ConnectionInterface.cpp:112)
  89. ==31063== by 0x805C4A6: RTT::DataPort<int>::Set(int const&) (DataPort.hpp:333)
  90. ==31063== by 0x805C582: MyTask::updateHook() (testServer.cpp:40)
  91. ==31063== by 0x4898112: RTT::ExecutionEngine::step() (ExecutionEngine.cpp:324)
  92. ==31063== by 0x489194F: RTT::PeriodicActivity::step() (PeriodicActivity.cpp:178)
  93. ==31063== by 0x48DE33B: RTT::TimerThread::step() (TimerThread.cpp:146)
  94. ==31063== by 0x4917EC7: RTT::OS::periodicThread(void*) (PeriodicThread.cpp:106)
  95. ==31063== by 0x522C4FE: start_thread (in /lib/tls/i686/cmov/libpthread-2.9.so)
  96. ==31063== by 0x544749D: clone (in /lib/tls/i686/cmov/libc-2.9.so)
  97. ==31063== If you believe this happened as a result of a stack overflow in your
  98. ==31063== program's main thread (unlikely but possible), you can try to increase
  99. ==31063== the size of the main thread stack using the --main-stacksize= flag.
  100. ==31063== The main thread stack size used in this run was 8388608.
  101. ==31063==
  102. ==31063== ERROR SUMMARY: 12 errors from 3 contexts (suppressed: 77 from 3)
  103. ==31063== malloc/free: in use at exit: 261,617 bytes in 1,869 blocks.
  104. ==31063== malloc/free: 3,112 allocs, 1,243 frees, 419,246 bytes allocated.
  105. ==31063== For counts of detected errors, rerun with: -v
  106. ==31063== Use --track-origins=yes to see where uninitialised values come from
  107. ==31063== searching for pointers to 1,869 not-freed blocks.
  108. ==31063== checked 8,832,428 bytes.
  109. ==31063==
  110. ==31063== LEAK SUMMARY:
  111. ==31063== definitely lost: 8 bytes in 2 blocks.
  112. ==31063== possibly lost: 58,188 bytes in 211 blocks.
  113. ==31063== still reachable: 203,421 bytes in 1,656 blocks.
  114. ==31063== suppressed: 0 bytes in 0 blocks.
  115. ==31063== Rerun with --leak-check=full to see details of leaked memory.
  116. Killed
  117.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement