WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
26843
Fix run-time crashes in JavaScriptCore on Symbian with Metrowerks compiler
https://bugs.webkit.org/show_bug.cgi?id=26843
Summary
Fix run-time crashes in JavaScriptCore on Symbian with Metrowerks compiler
Simon Hausmann
Reported
2009-06-30 08:15:18 PDT
The Metrowerks compiler on the Symbian platform moves the globally defined Hashtables into read-only memory, despite one of the members being mutable. This causes crashes at run-time due to write access to read-only memory. This patch avoid the use of const with this compiler by introducing the JSC_CONST_HASHTABLE macro.
Attachments
Patch to fix run-time crashes with winscw
(5.73 KB, patch)
2009-06-30 08:18 PDT
,
Simon Hausmann
mjs
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Simon Hausmann
Comment 1
2009-06-30 08:18:12 PDT
Created
attachment 32066
[details]
Patch to fix run-time crashes with winscw
Eric Seidel (no email)
Comment 2
2009-06-30 14:37:10 PDT
Comment on
attachment 32066
[details]
Patch to fix run-time crashes with winscw Have we reported the issue to metroworks? It seems useful to have a link to an bug in their tracker (if such a thing exists) or some way of knowing when we can revert this. If this is the only way to fix this (modifying the source instead of passing an extra compiler flag or something), then this is totally a fine fix. It just would be nice to know when we can remove it.
Simon Hausmann
Comment 3
2009-07-01 01:23:33 PDT
Yes, the issue is being tracked upstream in the Carbide Bugzilla at
https://xdabug001.ext.nokia.com/bugzilla/show_bug.cgi?id=8574
(the bugzilla seems to require account registration to see and comment on reports, but it's free for anyone) I'm all for removing the workaround as soon as the compiler is fixed and a new release is available.
Maciej Stachowiak
Comment 4
2009-07-05 04:33:24 PDT
Comment on
attachment 32066
[details]
Patch to fix run-time crashes with winscw r=me I would suggest maybe making the comment above JSC_CONST_HASHTABLE a bit shorter, just stating that it's a workaround for a compiler bug should do.
Simon Hausmann
Comment 5
2009-07-06 10:19:28 PDT
Landed in 45553
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug