Closed
Bug 1441454
Opened 7 years ago
Closed 7 years ago
Expected jit-test crash is incorrectly producing minidumps
Categories
(Core :: JavaScript Engine, defect, P3)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla60
Tracking | Status | |
---|---|---|
firefox60 | --- | fixed |
People
(Reporter: sfink, Assigned: sfink)
References
Details
Attachments
(1 file)
1.14 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
The spidermonkey job log files appear to have PROCESS-CRASH stacks from self-test/assertRecoveredOnBailout-1.js, which is an expected crash.
This isn't supposed to happen. I ran it locally and verified that --suppress-minidumps is correctly passed to the JS shell in this case. I haven't looked farther than that yet.
Updated•7 years ago
|
Priority: -- → P3
Assignee | ||
Updated•7 years ago
|
Summary: Expected jit-test crash is produces minidumps → Expected jit-test crash is incorrectly producing minidumps
Assignee | ||
Comment 1•7 years ago
|
||
The problem was that --suppress-minidump needs to toggle a boolean from the breakpad injector, but when using real NSPR, it was not getting loaded with RTLD_GLOBAL.
This should fix the |jit-test| crash problem; I haven't yet tracked down the bigger problem.
Attachment #8955301 -
Flags: review?(jorendorff)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → sphink
Status: NEW → ASSIGNED
Comment 2•7 years ago
|
||
Comment on attachment 8955301 [details] [diff] [review]
Dynamically load library with global linkage so that we can access symbols within them
Review of attachment 8955301 [details] [diff] [review]:
-----------------------------------------------------------------
Oh, I see, it's required for the later dlsym to work. Hmm. (thinks a bit) OK!
Attachment #8955301 -
Flags: review?(jorendorff) → review+
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/4c72627cfc6c
Dynamically load library with global linkage so that we can access symbols within them, r=jorendorff
Comment 4•7 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox60:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla60
Comment 5•7 years ago
|
||
I think this broke the (shell) build with Posix NSPR, at least on OS X I get errors about the compiler not knowing PRLibSpec, PR_LibSpec_Pathname, PR_LD_NOW, etc :)
Flags: needinfo?(sphink)
Comment 6•7 years ago
|
||
(In reply to Jan de Mooij [:jandem] from comment #5)
> I think this broke the (shell) build with Posix NSPR, at least on OS X I get
> errors about the compiler not knowing PRLibSpec, PR_LibSpec_Pathname,
> PR_LD_NOW, etc :)
Same on x86_64 Mint Linux with gcc 5.4.0
Comment 7•7 years ago
|
||
Same on OpenSUSE Linux with gcc 6 (ARM64).
/home/lhansen/m-i/js/src/shell/js.cpp: In member function ‘PRLibrary* AutoLibraryLoader::load(const char*)’:
/home/lhansen/m-i/js/src/shell/js.cpp:8893:9: error: ‘PRLibSpec’ was not declared in this scope
PRLibSpec libSpec;
^~~~~~~~~
/home/lhansen/m-i/js/src/shell/js.cpp:8894:9: error: ‘libSpec’ was not declared in this scope
libSpec.type = PR_LibSpec_Pathname;
^~~~~~~
/home/lhansen/m-i/js/src/shell/js.cpp:8894:24: error: ‘PR_LibSpec_Pathname’ was not declared in this scope
libSpec.type = PR_LibSpec_Pathname;
^~~~~~~~~~~~~~~~~~~
/home/lhansen/m-i/js/src/shell/js.cpp:8896:59: error: ‘PR_LD_NOW’ was not declared in this scope
PRLibrary* dll = PR_LoadLibraryWithFlags(libSpec, PR_LD_NOW | PR_LD_GLOBAL);
^~~~~~~~~
/home/lhansen/m-i/js/src/shell/js.cpp:8896:71: error: ‘PR_LD_GLOBAL’ was not declared in this scope
PRLibrary* dll = PR_LoadLibraryWithFlags(libSpec, PR_LD_NOW | PR_LD_GLOBAL);
^~~~~~~~~~~~
/home/lhansen/m-i/js/src/shell/js.cpp:8896:83: error: ‘PR_LoadLibraryWithFlags’ was not declared in this scope
PRLibrary* dll = PR_LoadLibraryWithFlags(libSpec, PR_LD_NOW | PR_LD_GLOBAL);
^
Comment 8•7 years ago
|
||
(You can build with --enable-nspr-build to work around it, FWIW.)
Assignee | ||
Updated•2 months ago
|
Flags: needinfo?(sphink)
You need to log in
before you can comment on or make changes to this bug.
Description
•