Closed Bug 593483 Opened 14 years ago Closed 14 years ago

Unbreak (real) dtrace

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
blocker

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- final+

People

(Reporter: sfink, Assigned: sfink)

References

Details

Attachments

(1 file)

Compiling with --enable-dtrace no longer works. Bug 584175 broke it by const-ipating some parameters.

This results from a bug in dtrace. See http://web.archiveorange.com/archive/v/ejz8xyzxv3yAawGtOdTp for a brief discussion. Ironically, systemtap's dtrace emulation does the correct thing.

I have filed a bug with apple on this: https://bugreport.apple.com/cgi-bin/WebObjects/RadarWeb.woa/11/wo/bUtX4S1OlMcPZTe3nf4b2g/16.60
I'll take a stab at working around this with build hackery. I hate to mess up the source for it.
This patch fixes the compile on OSX.

I added const where appropriate to the .d file, which won't do anything for systemtap's dtrace because it already uses const for everything. And it won't do anything for Solaris or OSX dtrace because they incorrectly ignore it.

I also hacked the makefile to force a const unless it's already there. This has no effect with systemtap's dtrace, and fixes the problem with OSX's.
Attachment #472005 - Flags: review?(peterv)
Attachment #472005 - Flags: approval2.0?
Since (pending bug 595718) the Shark nightlies don't show up on tbpl, it's not obvious, but this bug means we have a permanently red build on both tracemonkey and mozilla-central now.

I'd be happy to be told that's not a blocker, because we don't care about those builds, in which case I'll just hide them on tinderbox, and they can burn in peace.
Severity: normal → blocker
blocking2.0: --- → ?
OS: Linux → Mac OS X
Hardware: x86_64 → x86
This has a patch, it's an easy bug to fix, we want shark builds and non-red tbox for 'em. Suspect peterv is busy, maybe try gal for review?

/be
Comment on attachment 472005 [details] [diff] [review]
Add const to char * params in probes

Got a mid-air collision on a comment asking for advice on an alternative reviewer. I'm glad brendan is psychic. Thanks!
Attachment #472005 - Flags: review?(peterv) → review?(gal)
Comment on attachment 472005 [details] [diff] [review]
Add const to char * params in probes

NPOTB. No approval needed IMO.
Attachment #472005 - Flags: review?(gal) → review+
Keywords: checkin-needed
Attachment #472005 - Flags: approval2.0?
FYI: My Apple bug has been closed as a duplicate of a known issue 5586154. Unfortunately, they only allow viewing of your own bugs, so I can't track the status.
http://hg.mozilla.org/mozilla-central/rev/1a7b01521bcd
Status: NEW → RESOLVED
Closed: 14 years ago
Keywords: checkin-needed
Resolution: --- → FIXED
blocking2.0: ? → final+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: