Caught Signal 11 for process: 1234

27 views
Skip to first unread message

Eric Dykstra

unread,
Apr 19, 2013, 3:56:17 PM4/19/13
to sil...@googlegroups.com
Hello again everyone,

I am using the SSH2 functionality in SilkJS to connect to a remote server.

It seems that no matter what command I pass to ssh.exec(), the ssh.response(con) always returns:

        Caught Signal 11 for process: 1234     (Where 1234 = PID)

I've tested with a command to simply 'touch /path/to/some/file' and that works as expected, but I still get the above error.

This doesn't help me debug commands with many more possible failure modes on the remote server, like 'git pull'. But, in trying to work-around this, I redirected the 'git pull' output to a file on the remote server using the command 'git pull > logfile.txt'. While it does create the file, it is empty. So - still no luck moving forward.

When I Google on the above error, I only get hits related to SilkJS, but none seem to help.

Thoughts?

Thanks in advance.

Eric



Eric Dykstra

unread,
Apr 19, 2013, 8:30:53 PM4/19/13
to sil...@googlegroups.com
Just to close this out for anyone else coming here ....

Offline, Mike walked me through the solution. Short answer ... I was using the builtin/ssh when I should have been using the module.

Thanks Mike!

Eric

Michael Schwartz

unread,
Apr 19, 2013, 8:40:45 PM4/19/13
to sil...@googlegroups.com
To clarify…

The builtin functions are really meant to be wrapped with a proper JavaScript class written in JavaScript.  The builtins are super low-level sorts of things.

In the spirit of "C" style programming, if you pass garbage (like a bad file descriptor) to a builtin function (like read or write), it will segfault or Signal 11.

The error checking of parameters is supposed to be done in the JavaScript code, not the C++ code.

If you find the classes I wrote and provide are insufficient for your needs, feel free to write your own.  The last thing I wanted to do was force anyone into some paradigm that doesn't fit the way they want to code.


--
You received this message because you are subscribed to the Google Groups "SilkJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to silkjs+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages