-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Core Dump while running sample program #345
Comments
It would be helpful if you said exactly which program you ran, what the output was, and a stack trace if possible. |
Thanks for the fast reply. Code Snippet: #include "core/app-template.hh" Compile: g++ Additional Info: gcc version 5.4.1 20160904 (Ubuntu 5.4.1-2ubuntu1~16.04) (gdb) n Program terminated with signal SIGSEGV, Segmentation fault. Please let me know if u need more information. |
I have built this sample with latest Seastar on Ubuntu 16.04 and it runs just fine. Can you give the following information:
|
1 Master Directly Cloned. I don't know whether it will be helpful to you or not, But i got this error while running ./configure.py --compiler=g++-5 Notice: -fsanitize=vptr is broken, disabling; some debug mode tests are bypassed. |
Tried this on another Ubuntu 16.04 machine but still works well. |
Thanks , Can you please give Any reference doc to build in debug Mode. |
You can configure Seastar using then build using ninja (same as for release) And then specify "debug" instead of "release" for your command line: |
It seems this issue might be the one addressed with this recent patch: |
Can you try to pull the up-to-date code from 'master' branch and give it a try? What commit are you currently on? |
I tried pulling from master and building in debug mode. I got a bad free error /usr/local/include/boost/filesystem/operations.hpp:294:64: runtime error: load of value 4226454032, which is not a valid value for type 'file_type'==15874==ERROR: AddressSanitizer: attempting free on address which was not malloc()-ed: 0x603000000054 in thread T0 0x603000000054 is located 20 bytes inside of 24-byte region [0x603000000040,0x603000000058) SUMMARY: AddressSanitizer: bad-free (/usr/lib/x86_64-linux-gnu/libasan.so.4+0xe10a0) in operator delete(void*) Version : gcc version 7.2.0 (Ubuntu 7.2.0-1ubuntu1~16.04) |
Hello, Any update |
I tried reproducing your issue using Ubuntu 16.04 and GCC 7.2 but to no avail. Both debug and release builds of a simple demo app with Seastar work fine for me. Can you share the binaries along with your program source somewhere to try reproducing it? Can you also describe your system (RAM, disk type/space, etc)? Looking at the path /media/asim/Vol2/asim/codes/cplusplus/seastar/one.cpp, do you use an external drive? One more question, which exact commit are you on in Seastar? Please provide SHA of the commit in master. |
@asimarora i ran into the same issue as you put in #345 (comment), after debugging it with the debug build of seastar, i realized that the root cause was in libboost: after installing an new libboost, the problem went away. in my case, the seastar crashes with libboost 1.62 shipped by Debian sid, but they work fine with libboost 1.63. |
@tchaikov , I commented some part of code for my testing purpose , But surely will try that .. Thanks for your input. |
Great , It worked with gcc-7 and Boost : 1.66 |
I was testing this robust framework and got core dump while running sample program mentioned here,
http://docs.seastar-project.org/master/md_doc_tutorial.html
The text was updated successfully, but these errors were encountered: