|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59871 Segfault when using 'exit'
Submitted: 2011-07-25 05:29 UTC Modified: 2017-01-10 08:00 UTC
From: lior dot kuyer at gfk dot com Assigned:
Status: Suspended Package: spidermonkey (PECL)
PHP Version: 5.3.3 OS: SUSE Linux Enterprise Server 11
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: lior dot kuyer at gfk dot com
New email:
PHP Version: OS:


 [2011-07-25 05:29 UTC] lior dot kuyer at gfk dot com
Using an exit in your code causes a segfault. Before the segfault, the JS api throws an error saying "1 contexts left in runtime upon JS_DestroyRuntime"

Reproduce code:
echo "start\n";
$js = new JSContext();
echo "finish\n";

Expected result:

Actual result:
JS API usage error: 1 contexts left in runtime upon JS_DestroyRuntime.
JS engine warning: leaking GC root 'res->input' at 0x203be10
JS engine warning: 1 GC root remains after destroying the JSRuntime.
This root may point to freed memory. Objects reachable through it have not been finalized.
Segmentation fault


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-08-18 06:11 UTC] lior dot kuyer at gfk dot com
Fixed in spidermonkey extension and mailed the developer with a patch.
 [2017-01-10 08:00 UTC]
-Status: Open +Status: Suspended
 [2017-01-10 08:00 UTC]
Suspending this report as the extension have not had a release for almost 5 years.  Please revive this if the extension once again shows life
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 08:01:33 2024 UTC