gzweb: debugging Segmentation fault error

asked 2018-11-16 18:02:41 -0500

aray gravatar image

updated 2018-11-20 16:28:31 -0500

I'm wondering if it possible to enable kind of debugging mode in gzweb in order to collect more info about error. I follow a simple tutorial creating a world and I get Segmentation fault error. Here is my nodejs debug log:

...
10 silly lifecycle gzweb@1.3.0~start: Args: [ '-c',
10 silly lifecycle   'if [ $npm_config_port ]; then port=$npm_config_port; fi; cd gzbridge && ./server.js $port' ]
11 silly lifecycle gzweb@1.3.0~start: Returned: code: 139  signal: null
12 info lifecycle gzweb@1.3.0~start: Failed to exec start script
13 verbose stack Error: gzweb@1.3.0 start: `if [ $npm_config_port ]; then port=$npm_config_port; fi; cd gzbridge && ./server.js $port`
13 verbose stack Exit status 139
13 verbose stack     at EventEmitter.<anonymous> (/home/user/.nvm/versions/node/v11.1.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
13 verbose stack     at EventEmitter.emit (events.js:182:13)
13 verbose stack     at ChildProcess.<anonymous> (/home/user/.nvm/versions/node/v11.1.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
13 verbose stack     at ChildProcess.emit (events.js:182:13)
13 verbose stack     at maybeClose (internal/child_process.js:970:16)
13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:257:5)
14 verbose pkgid gzweb@1.3.0
15 verbose cwd /home/user/gzweb
16 verbose Linux 4.15.0-36-generic
17 verbose argv "/home/user/.nvm/versions/node/v11.1.0/bin/node" "/home/user/.nvm/versions/node/v11.1.0/bin/npm" "start"
18 verbose node v11.1.0
19 verbose npm  v6.4.1
20 error code ELIFECYCLE
21 error errno 139
22 error gzweb@1.3.0 start: `if [ $npm_config_port ]; then port=$npm_config_port; fi; cd gzbridge && ./server.js $port`
22 error Exit status 139
23 error Failed at the gzweb@1.3.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 139, true ]

Can someone help me understand what caused the Segmentation fault error?

my configuration is:

Update: This could be a solution export GAZEBO_IP=127.0.0.1

edit retag flag offensive close merge delete