| Summary: | Webkit constantly crashes on RISC-V 64 | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Miroslav <lakotamm> |
| Component: | WebKitGTK | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW --- | ||
| Severity: | Normal | CC: | berto, bugs-noreply, clopez, pierceandjelkovic, smoley |
| Priority: | P2 | Keywords: | DoNotImportToRadar |
| Version: | Other | ||
| Hardware: | Unspecified | ||
| OS: | Linux | ||
|
Description
Miroslav
2021-04-02 15:27:23 PDT
It seems your build of WebKit has been built with the JSC JIT enabled, and AFAIK JSC still doesn't support JIT for RISC-V Can you try to export this environment variable JavaScriptCoreUseJIT=0 before executing epiphany to see if that fixes the issue? (In reply to Carlos Alberto Lopez Perez from comment #1) > It seems your build of WebKit has been built with the JSC JIT > enabled, and AFAIK JSC still doesn't support JIT for RISC-V I don't even know how one would make a RISC-V build with the JIT enabled... that only happens if the CPU is x86_64, arm or mips. I also don't see that error ("This target JIT ...") in the WebKit source code, that looks like a message from LLVM. Thank you guys for your effort! I ran "export JavaScriptCoreUseJIT=0" in a terminal and everything is the same, no improvement. However, I made some progress and it really seems like Javascript is a part of the issue. Midori browser by default uses the same version of Webkit as Epiphany and in my case it reports exactly the same errors. However, in the settings menu there is a setting (enabled by default) to "Enable scripts". When I disable it, the above mentioned errors on the above mentioned websites disappear. If I understand correctly, this setting enables/disables Javascript. https://elementaryos.stackexchange.com/questions/4297/how-to-enable-javascript-in-midori So with Javascript disabled, most basic pages (which were crashing previously) load fine. However some many pages still crash: https://www.reddit.com/ 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch. 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) LLVM ERROR: Cannot select: 0x3f7d88d948: ch = store<(store 4 into %ir.mask_ptr1 + 12, align 16), trunc to i32> 0x3f7d891780, 0x3f7d8953b0, 0x3f7d85b928, undef:i64 0x3f7d8953b0: i64 = sub Constant:i64<0>, 0x3f7d88d608 0x3f7d85d938: i64 = Constant<0> 0x3f7d88d608: i64 = and 0x3f7d88d878, Constant:i64<1> 0x3f7d88d878: i64 = srl 0x3f7d88fde0, Constant:i64<7> 0x3f7d88fde0: i64,ch = load<(load 2 from %fixed-stack.5, align 8), zext from i16> 0x3f7c051338, FrameIndex:i64<-2>, undef:i64 0x3f7d85b448: i64 = FrameIndex<-2> 0x3f7d85b378: i64 = undef 0x3f7d88d810: i64 = Constant<7> 0x3f7d85da08: i64 = Constant<1> 0x3f7d85b928: i64 = add FrameIndex:i64<6>, Constant:i64<28> 0x3f7d85bac8: i64 = FrameIndex<6> 0x3f7d8bddf0: i64 = Constant<28> 0x3f7d85b378: i64 = undef In function: fs_variant_partial https://www.youtube.com/ 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) WARNING: This target JIT is not designed for the host you are running. If bad things happen, please choose a different -march switch. 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) 'generic' is not a recognized processor for this target (ignoring processor) LLVM ERROR: Cannot select: 0x3fa1425088: ch = store<(store 4 into %ir.mask_ptr1 + 12, align 16), trunc to i32> 0x3fa1428ec0, 0x3fa142caf0, 0x3fa13f3068, undef:i64 0x3fa142caf0: i64 = sub Constant:i64<0>, 0x3fa1424d48 0x3fa13f5078: i64 = Constant<0> 0x3fa1424d48: i64 = and 0x3fa1424fb8, Constant:i64<1> 0x3fa1424fb8: i64 = srl 0x3fa1427520, Constant:i64<7> 0x3fa1427520: i64,ch = load<(load 2 from %fixed-stack.5, align 8), zext from i16> 0x3fa0054838, FrameIndex:i64<-2>, undef:i64 0x3fa13f2b88: i64 = FrameIndex<-2> 0x3fa13f2ab8: i64 = undef 0x3fa1424f50: i64 = Constant<7> 0x3fa13f5148: i64 = Constant<1> 0x3fa13f3068: i64 = add FrameIndex:i64<6>, Constant:i64<28> 0x3fa13f3208: i64 = FrameIndex<6> 0x3fa1455530: i64 = Constant<28> 0x3fa13f2ab8: i64 = undef In function: fs_variant_partial For debugging you may find the MiniBrowser useful. On Debian systems is usually installed at /usr/lib/*/webkit2gtk-4.0/MiniBrowser With it you can fine-tune lot of webkitgtk options easily. Try to pass "--help-all" to it to see everything you can enable/disable |