LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Segmentation fault when executing "procinfo -a" (https://www.linuxquestions.org/questions/linux-general-1/segmentation-fault-when-executing-procinfo-a-832953/)

ethereal1m 09-17-2010 11:10 PM

Segmentation fault when executing "procinfo -a"
 
Dear all,
I got segmentation fault error when I execute "procinfo -a" but not a problem when I just execute procinfo.

How can I troubleshoot the problem?

regards,
ethereal1m

jangovich 09-18-2010 04:34 PM

Not an easy thing to do :) I would suggest using strace to try and get some information about what happens before it crashes (-f tells strace to follow forks):

Code:

strace -f procinfo -a
You might need to install strace first. A good tutorial on how to hunt bugs with strace can be found (see next message, apparently I can't post links in my first post).

jangovich 09-18-2010 04:35 PM

Tutorial from Ksplice on strace: Strace — The Sysadmin’s Microscop.

ethereal1m 09-30-2010 10:28 PM

hmm, thanks for the reply, I need to organize my time to dig into this though...
I appreciate this...


All times are GMT -5. The time now is 08:56 AM.