Closed Bug 700821 Opened 14 years ago Closed 14 years ago

js-ctypes crashes trying to use popen/fgets/pclose

Categories

(Core :: js-ctypes, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: j, Unassigned)

Details

Attachments

(1 file)

trying to use popen/fgets/pclose from libc to run another command and read its output to pass it to javascript, Firefox crashes all the time.
Attachment #573019 - Attachment mime type: application/octet-stream → text/javascript
Note that your code is roughly equivalent in C terms to: char x; fgets(&x, 1024, fpipe); Which doesn't seem all that correct to me.
ah like that. are there more examples around by now? https://developer.mozilla.org/en/js-ctypes/Examples ist still a bit empty. with ctypes.char.array(1024) it works.
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: