Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

SIGTRAP when using exec #25771

Closed
martlin2cz opened this issue Jul 26, 2015 · 2 comments
Closed

SIGTRAP when using exec #25771

martlin2cz opened this issue Jul 26, 2015 · 2 comments

Comments

@martlin2cz
Copy link

Hi, on my debian
Linux martlins 3.2.0-4-686-pae #1 SMP Debian 3.2.68-1+deb7u2 i686 GNU/Linux
with node v0.10.33
I allways get attached error when I am trying following:

var sys = require('sys')
var exec = require('child_process').exec;
...
cmd = "myscript.sh";
var child = exec(cmd, function (error, stdout, stderr) {
        console.info("\nExecuting " + cmd + ":");
        sys.print('stdout: ' + stdout);
        sys.print('stderr: ' + stderr);
        if (error !== null) {
          console.log('exec error: ' + error);
        }
    });

where myscript.sh starts with line:

echo $$ > .pid

Here node crashes and prints http://pastebin.com/cVcChEBQ

@galexite
Copy link

The problem seems to have occurred in function createWriteReq(handle, data, encoding), which is part of the http library. Are you using this library in code that you haven't displayed?

@jasnell
Copy link
Member

jasnell commented Aug 3, 2015

I'm sorry, but this is not quite enough information to help identify the problem. It would be helpful if you could provide a test case that is more complete.

@Trott Trott closed this as completed Apr 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants