Closed Bug 782962 Opened 12 years ago Closed 10 years ago

SpiderMonkey fails to build with --enable-dtrace on FreeBSD

Categories

(Core :: JavaScript Engine, defect)

x86_64
FreeBSD
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jbeich, Unassigned)

Details

(Whiteboard: [js:p3])

dtrace(1) fails to process jsarray.o, jsgc.o, jsinterp.o, jsprobes.o, Stack.o, Compiler.o, InvokeHelpers.o, e.g.

# freebsd version is /head@239268
$ cd js/src; ./configure --enable-debug --enable-dtrace
$ gmake
[...]
dtrace -G -C -s ./javascript-trace.d -o mozjs-dtrace.o ...
dtrace: failed to link script ./javascript-trace.d: an error was encountered while processing jsarray.o

and crashes on jsobj.o:

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 802406400 (LWP 101427/dtrace)]
0x0000000801a22a01 in __jemalloc_bitmap_unset (bitmap=0x8b8fc0f00, binfo=0x801d69220, bit=0) at bitmap.h:156
156             g = *gp;
(gdb) bt
#0  0x0000000801a22a01 in __jemalloc_bitmap_unset (bitmap=0x8b8fc0f00, binfo=0x801d69220, bit=0) at bitmap.h:156
#1  0x0000000801a22798 in arena_run_reg_dalloc (run=0x804770000, ptr=0x8047b8000) at jemalloc_arena.c:175
#2  0x0000000801a224cc in __jemalloc_arena_dalloc_bin_locked (arena=0x8020000c0, chunk=0x804400000, ptr=0x8047b8000, mapelm=0x8044058d8) at jemalloc_arena.c:1590
#3  0x0000000801a22c2f in __jemalloc_arena_dalloc_bin (arena=0x8020000c0, chunk=0x804400000, ptr=0x8047b8000, pageind=952, mapelm=0x8044058d8) at jemalloc_arena.c:1614
#4  0x0000000801a22ce5 in __jemalloc_arena_dalloc_small (arena=0x8020000c0, chunk=0x804400000, ptr=0x8047b8000, pageind=952) at jemalloc_arena.c:1630
#5  0x0000000801a2ccca in __jemalloc_arena_dalloc (arena=0x8020000c0, chunk=0x804400000, ptr=0x8047b8000, try_tcache=true) at arena.h:958
#6  0x0000000801a2cab5 in __jemalloc_idalloc (ptr=0x8047b8000) at jemalloc_internal.h:840
#7  0x0000000801a2ca2d in __jemalloc_iqalloc (ptr=0x8047b8000) at jemalloc_internal.h:852
#8  0x0000000801a2dbb3 in free (ptr=0x8047b8000) at jemalloc_jemalloc.c:1217
#9  0x0000000800a69098 in dt_free (dtp=0x802437000, data=0x8047b8000) at /usr/src/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_subr.c:768
#10 0x0000000800a641d5 in dt_link_error (dtp=0x802437000, elf=0x8024c8840, fd=7, bufs=0x0, format=0x800abdd50 "an error was encountered while processing %s") at /usr/src/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c:1095
#11 0x0000000800a6546b in process_obj (dtp=0x802437000, obj=0x7fffffffd386 "jsobj.o", eprobesp=0x7fffffffbe48) at /usr/src/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c:1587
#12 0x0000000800a6585d in dtrace_program_link (dtp=0x802437000, pgp=0x804677130, dflags=2, file=0x802417030 "mozjs-dtrace.o", objc=113, objv=0x802406c08) at /usr/src/cddl/lib/libdtrace/../../../cddl/contrib/opensolaris/lib/libdtrace/common/dt_link.c:1682
#13 0x0000000000403580 in link_prog (dcp=0x802417000) at /usr/src/cddl/usr.sbin/dtrace/../../../cddl/contrib/opensolaris/cmd/dtrace/dtrace.c:682
#14 0x00000000004064cb in main (argc=120, argv=0x7fffffffca78) at /usr/src/cddl/usr.sbin/dtrace/../../../cddl/contrib/opensolaris/cmd/dtrace/dtrace.c:1744
Confirmed by gnn@ on 20 Aug: "DTrace does not handle C++ on FreeBSD at this time. That's a bug I'm working on."
Status: UNCONFIRMED → NEW
Ever confirmed: true
Whiteboard: [js:p3]
It doesn't happen anymore on 11.0-CURRENT and maybe also on 10.0-STABLE. I've filed bug 1041381 and bug 1041353 for other build errors.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.