Closed Bug 1828092 Opened 2 years ago Closed 2 years ago

Barista-3 segfaults with x64-Ion, but only sometimes

Categories

(Core :: JavaScript: WebAssembly, defect, P2)

x86_64
Unspecified
defect

Tracking

()

RESOLVED DUPLICATE of bug 1820163

People

(Reporter: jseward, Unassigned)

References

Details

Attachments

(1 file)

I'm seeing a bunch of segfaults which I suspect have the same origin. They
happen when running Barista-3 on x64-Linux with Ion, but not with baseline.
They are all characterised by having a null JSObject* (or one of its child
classes) passed to various bits of the GC machinery.

The problem seems to be timing dependent. I can reproduce easily with a build
with --enable-debug --enable-optimize="-g -Og". At -O0 I unfortunately can't
reproduce it. A --disable-debug --enable-optimize="-g -O2" build also fails
to show it .. except when run on "valgrind --tool=none", which majorly slows
it down.

Builds with --enable-debug --enable-optimize="-g -Og" using clang vs gcc both
segfault, but at different places. This might be because gcc's -Og code runs
slower than clang's.

STR:

build: --enable-debug --enable-optimize="-g -Og"

run: /nfs/compx/MC_PERF/js/BUILDX64DOG/dist/bin/js --no-threads --no-ion
--wasm-compiler=ion --wasm-function-references --wasm-gc
./sm_run_wasm.js

Into main: 1681472640254
main: 0
First frame: 313
Segmentation fault (core dumped)

See comment 1 for crash stacks.

Is this still an issue?

Flags: needinfo?(jseward)

No, it was fixed by your patch for bug 1820163. Thanks. I'll close this as a dup.

Status: NEW → RESOLVED
Closed: 2 years ago
Duplicate of bug: 1820163
Flags: needinfo?(jseward)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: