ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
5

List of possible exit codes from Roslaunch

asked 2011-08-30 06:01:49 -0500

Chad Rockey gravatar image

So I've been seeing exit codes come out of roslaunch, example:

[process name] process has died [pid 1234, exit code -11].

I have seen mostly negative exit codes. Are these signals/bash exit codes? -11 appears to be a Seg Fault. What's -6?

Is there a chart of the possible values it could send out and does it send out user exit codes as well?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
10

answered 2011-08-30 08:32:17 -0500

Brian Gerkey gravatar image

updated 2011-08-30 08:33:53 -0500

By convention, a negative exit code corresponds to the number of the signal that caused the process to die. E.g., -11 is SIGSEGV, and -6 is SIGABRT. For a list of signals, have a look at /usr/include/bits/signum.h (at least on my Ubuntu Lucid system, that's where they're defined).

Btw, this behavior and the meaning of the numbers isn't specific to roslaunch; roslaunch is just reporting back the exit code that the process gave when it died.

edit flag offensive delete link more

Comments

I found the file with find /usr -name signum.h in /usr/include/x86_64-linux-gnu/bits/signum.h

lalten gravatar image lalten  ( 2016-05-13 12:24:37 -0500 )edit

You can also use kill -l to get a list of signals with their numbers.

chfritz gravatar image chfritz  ( 2019-10-30 12:53:47 -0500 )edit

Question Tools

Stats

Asked: 2011-08-30 06:01:49 -0500

Seen: 13,101 times

Last updated: Aug 30 '11