segmentation fault core dumped !! [closed]

asked 2017-04-27 08:02:10 -0500

zubair gravatar image

updated 2017-04-27 09:55:05 -0500

hi guys,, though i am not getting any fault now luckily but i did not do anything just restarted my pc, but i often get segmentation fault , core dumped often,, according to me this is some memory issue which i don´t know how to debug,, can someone tell me how to debug this segmentation fault ??

thanks

code link -- https://pastebin.com/jwS39qyz

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant. Please see http://wiki.ros.org/Support for more details. by jarvisschultz
close date 2017-04-27 09:33:13.967226

Comments

Did you write this code yourself? We can't possibly help debug without at least seeing a code snippet. Is this segfault coming from a ROS node that you didn't write? Which one, and how can we reproduce the issue?

jarvisschultz gravatar imagejarvisschultz ( 2017-04-27 09:30:27 -0500 )edit

I suggest editing your question to provide more detailed information. If you are looking for a general lesson on how to debug segfaults in code you've written, then this is probably not the right place to be asking that question.

jarvisschultz gravatar imagejarvisschultz ( 2017-04-27 09:32:01 -0500 )edit

hi, yes this is a rosnode,, which i am running and i cant paste the whole code here its exceeds to limit of comment.. but i am using opencv and my system is running on ros

zubair gravatar imagezubair ( 2017-04-27 09:33:32 -0500 )edit

and thus i dont know where i am getting segmentation fault,, i dont know which part of my code will be usefull to paste on here

zubair gravatar imagezubair ( 2017-04-27 09:34:33 -0500 )edit

I just closed this question because as it stands, we can't possibly help you. If you edit the question, I'll re-open it. Alternatively, you can just ask a new (hopefully more clearly written) question. Thanks!

jarvisschultz gravatar imagejarvisschultz ( 2017-04-27 09:34:49 -0500 )edit

You say you are using OpenCV, but you tagged PCL... which is it? I'd suggest using print statements and/or gdb to at least narrow down where your segfault is coming from.

jarvisschultz gravatar imagejarvisschultz ( 2017-04-27 09:36:40 -0500 )edit

ok, i cant paste my so long code on here,, well thanks i willl try if i can to rewrite my question.

zubair gravatar imagezubair ( 2017-04-27 09:37:21 -0500 )edit

If your code is really that long and there is some reason you can't include it in a question (I didn't think there were limits on that?) you can try including it in a pastebin or a gist. If your code is that long, people aren't as likely to help you because it will take significant time.

jarvisschultz gravatar imagejarvisschultz ( 2017-04-27 09:49:35 -0500 )edit