atsigler Posted September 13, 2013 Report Share Posted September 13, 2013 Hello, There seems to be a bug in the "void circular_buffer<T>::resize( int size)" function in include/tlm_core/tlm_1/tlm_req_rsp/tlm_channels/tlm_fifo/circular_buffer.h The line "buf_clear( m_buf, (m_ri + i) % size );" should be changed to: buf_clear ( m_buf, (m_ri + i) % this->size() ); In the original code the "size" is set to the new array size, which is not valid for freeing buffers from the old array. I encountered a segmentation fault with the original code. Andrey. maehne 1 Quote Link to comment Share on other sites More sharing options...
maehne Posted September 13, 2013 Report Share Posted September 13, 2013 Hello Andrey, Thanks for reporting the bug! I will open an issue in the Language Working Group's bug tracker so that it will get fixed for the next proof-of-concept release. Regards, Torsten Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.