Closed
Bug 682180
Opened 13 years ago
Closed 13 years ago
libffi doesn't allocate executable trampoline buffers in OSX 10.7
Categories
(Core :: js-ctypes, defect)
Tracking
()
RESOLVED
FIXED
mozilla10
People
(Reporter: bholley, Assigned: bholley)
References
Details
Attachments
(2 files, 2 obsolete files)
4.47 KB,
patch
|
bholley
:
review+
|
Details | Diff | Splinter Review |
2.36 KB,
patch
|
glandium
:
review-
|
Details | Diff | Splinter Review |
This is causing crashes on my lion dev machine. Patch coming right up.
Assignee | ||
Comment 1•13 years ago
|
||
Added a patch for this. I also fixed up the patch management a little bit, so that patches between our libffi and the vanilla libffi can be serially applied rather than as one megapatch. This should make it easier to upstream changes and prune changes that have been upstreamed. They can still be applied as one by simply cat-ing patches-libffi/* and piping the output to patch. I also found a sneaky change in our libffi tree that wasn't reflected in libffi.patch. I included it in the new serial patch directory. Flagging dwitte for review.
Attachment #556071 -
Flags: review?(dwitte)
Assignee | ||
Comment 2•13 years ago
|
||
Comment on attachment 556071 [details] [diff] [review] Allocate executable trampoline buffers in darwin 10 and beyond. v1 Also flagging khuey for review of the build stuff.
Attachment #556071 -
Flags: review?(khuey)
Comment 3•13 years ago
|
||
Awesome. I'll look at this next week. If I don't, poke me :)
What is $target on your machine?
Assignee | ||
Comment 5•13 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #4) > What is $target on your machine? x86_64-apple-darwin11.1.0
Comment on attachment 556071 [details] [diff] [review] Allocate executable trampoline buffers in darwin 10 and beyond. v1 I don't pretend to understand why it's 11, but ok.
Attachment #556071 -
Flags: review?(khuey) → review+
Assignee | ||
Comment 7•13 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #6) > I don't pretend to understand why it's 11, but ok. The darwin kernel has a major version bump every major release of MacOS: http://en.wikipedia.org/wiki/Darwin_%28operating_system%29#Release_history
Assignee | ||
Updated•13 years ago
|
Assignee: nobody → bobbyholley+bmo
Assignee | ||
Comment 8•13 years ago
|
||
Comment on attachment 556071 [details] [diff] [review] Allocate executable trampoline buffers in darwin 10 and beyond. v1 Dwitte and I talked about this extensively over gchat some months back, so I think khuey's review should be fine here.
Attachment #556071 -
Flags: review?(dwitte)
Assignee | ||
Comment 9•13 years ago
|
||
So I got a couple of scattered oranges when pushing this to try. It turns out that, depending on the builder, it might be of the form -apple-darwin-10, or of the form -apple-darwin-10.x.x. Attaching a fix - flagging khuey for re-review. As soon as that happens and my try run completes, this whole stack of things can land.
Attachment #556071 -
Attachment is obsolete: true
Attachment #565304 -
Flags: review?(khuey)
Why don't we just make this '*-apple-darwin*' ?
Assignee | ||
Comment 11•13 years ago
|
||
(In reply to Kyle Huey [:khuey] (khuey@mozilla.com) from comment #10) > Why don't we just make this '*-apple-darwin*' ? There's clearly some reason why libffi doesn't want to just use the alternate malloc path for everything. Maybe performance (perceived, or otherwise?) Either way, I want to alter behavior as little as possible to increase the chances of this getting accepted upstream.
Assignee | ||
Comment 12•13 years ago
|
||
Though really, I'm fine with either.
Ok ... I'll r+ *-apple-darwin1*, even though this seems a bit silly.
Assignee | ||
Comment 14•13 years ago
|
||
Ok, sure. Attaching a patch and carrying over review. I've pushed this to try here: https://tbpl.mozilla.org/?tree=Try&usebuildbot=1&rev=e71f6e3a3771 - once that goes green, the ctype stuff can land.
Attachment #565304 -
Attachment is obsolete: true
Attachment #565304 -
Flags: review?(khuey)
Attachment #565318 -
Flags: review+
Assignee | ||
Comment 15•13 years ago
|
||
Pushed to mozilla-inbound: http://hg.mozilla.org/integration/mozilla-inbound/rev/def68a106743 This had a green try run, modulo known oranges: https://tbpl.mozilla.org/?tree=Try&usebuildbot=1&rev=e71f6e3a3771
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla10
https://hg.mozilla.org/mozilla-central/rev/def68a106743
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Comment 17•12 years ago
|
||
Let's properly regen configure to include the comment (and also massage the @@ lines so it applies without offsets), see bug 670719 comment 52
Attachment #653179 -
Flags: review?(mh+mozilla)
Comment 18•12 years ago
|
||
Comment on attachment 653179 [details] [diff] [review] properly regen configure Review of attachment 653179 [details] [diff] [review]: ----------------------------------------------------------------- Let's do that in a separate bug
Attachment #653179 -
Flags: review?(mh+mozilla) → review-
Comment 19•12 years ago
|
||
Comment on attachment 653179 [details] [diff] [review] properly regen configure Discard, superseded by bug #783950
You need to log in
before you can comment on or make changes to this bug.
Description
•