Beckhoff / ADS

Beckhoff protocol to communicate with TwinCAT devices.
MIT License
514 stars 194 forks source link

ADS Library Crash #17

Closed Satheesh-satz closed 8 years ago

Satheesh-satz commented 8 years ago

Hi,

I am seeing the Library is crashing with a segmentation fault and core dump after the connection has been established with the ADS Server.

Please find the Call stack from the core dump below

0 0x000000000041f345 in std::__atomic_base::load(std::memory_order) const ()

at /cadappl/gcc_euv/4.8.2/gcc_euv/include/c++/4.8.2/bits/atomic_base.h:496

1 0x000000000041eb4f in std::__atomic_base::operator unsigned int() const ()

at /cadappl/gcc_euv/4.8.2/gcc_euv/include/c++/4.8.2/bits/atomic_base.h:367

2 0x000000000041cade in AmsConnection::GetPending(unsigned int, unsigned short) () at AmsConnection.cpp:138

3 0x000000000041d6e5 in AmsConnection::Recv() () at AmsConnection.cpp:250

4 0x000000000041d43e in AmsConnection::TryRecv() () at AmsConnection.cpp:226

5 0x000000000042205b in _ZNKSt7_Mem_fnIM13AmsConnectionFvvEEclIJEvEEvPS0DpOT ()

at /cadappl/gcc_euv/4.8.2/gcc_euv/include/c++/4.8.2/functional:601

6 0x0000000000421f6f in _ZNSt12_Bind_simpleIFSt7_Mem_fnIM13AmsConnectionFvvEEPS1_EE9_M_invokeIJLm0EEEEvSt12_Index_tupleIJXspT_EEE

() at /cadappl/gcc_euv/4.8.2/gcc_euv/include/c++/4.8.2/functional:1732

7 0x0000000000421e23 in std::_Bind_simple<std::_Mem_fn<void (AmsConnection::)()> ()(AmsConnection)>::operator()() ()

at /cadappl/gcc_euv/4.8.2/gcc_euv/include/c++/4.8.2/functional:1720

8 0x0000000000421d72 in std::thread::_Impl<std::_Bind_simple<std::_Mem_fn<void (AmsConnection::)()> ()(AmsConnection)> >::_M_run() () at /cadappl/gcc_euv/4.8.2/gcc_euv/include/c++/4.8.2/thread:115

9 0x00007f01221c457e in execute_native_thread_routine () from /home/msc/HPC_Driver/Libraries/libstdc++.so.6

10 0x0000003e97e07851 in start_thread () from /lib64/libpthread.so.0

11 0x0000003e97ae890d in clone () from /lib64/libc.so.6