-
Notifications
You must be signed in to change notification settings - Fork 117
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
Error occurred when I do: rosrun mcl_3dl mcl_3dl #9
Comments
Have you passed -g option to gcc?
|
I have added the code to my CMakeLists.txt, but the error has also occured. find_package(catkin REQUIRED COMPONENTS find_package(PCL 1.7 REQUIRED) catkin_package( include(CheckCXXCompilerFlag) include_directories(${catkin_INCLUDE_DIRS} ${PCL_INCLUDE_DIR} src) add_executable(mcl_3dl src/mcl_3dl.cpp) |
The code I suggested embeds debug information; It doesn't fix error. |
Thanks for your help, I'll try it again. |
Usually, I use fedora. It is appreciated if you could give me some debugging results. |
This is my compilation information, but I didn't find any position could lead to error. Running command: "cmake /home/ouyangqiuping/mcl_3d/src -DCATKIN_DEVEL_PREFIX=/home/ouyangqiuping/mcl_3d/devel -DCMAKE_INSTALL_PREFIX=/home/ouyangqiuping/mcl_3d/install -G Unix Makefiles" in "/home/ouyangqiuping/mcl_3d/build"-- The C compiler identification is GNU 4.9.4 Running command: "make -j4 -l4" in "/home/ouyangqiuping/mcl_3d/build"Scanning dependencies of target mcl_3dl |
Build seems OK. Please post full gdb result of following commands.
|
The result is followed: `GNU gdb (Ubuntu 7.7.1-0ubuntu5~14.04.2) 7.7.1 Program received signal SIGSEGV, Segmentation fault. |
Please post |
|
This seems a bug in PCL 1.7.
Answer in the following thread might fix this on PCL 1.7. |
Thanks a lot! I solved this issue as this answer said: |
After I "rosrun mcl_3dl mcl_3dl", there was occurred segment fault.
And I set breakpoint to find the position where cause this error. But I found that the error occurred before it going into main().
I don't know why it happened and hope you can help me.
Thanks for all.
my system is: Ubuntu 14.04, ROS indigo
The text was updated successfully, but these errors were encountered: