Crash on discussions.apple.com page
First, as always, thank you for your work!
Trying to load <https://discussions.apple.com/thread/250091731> on FPR 24 and 30 crashes TFF. The page does load on Camino. ;)
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by M-A Moldu on 17 Dec, 2020 05:28 PM
Hi everyone (and yes thanks for the great work ;D)
I just want to add that I experienced the same thing yesterday (on a different thread on discussions.apple.com) - almost immediate crash.
First with FPR29, then I upgraded to FPR30 with the same result. I also tried opening a tab with the google cache link instead which also crashed the app <https://webcache.googleusercontent.com/search?q=cache:1zwIX50SxHgJ:https://discussions.apple.com/thread/251658900+&cd=2&hl=fr&ct=clnk&gl=ca> = boom!.
TFF is the G5 version in my case.
Thanks.
Support Staff 2 Posted by Chris (chtrusch... on 17 Dec, 2020 08:24 PM
Confirmed. Will look into this later tonight.
Support Staff 3 Posted by Chris (chtrusch... on 17 Dec, 2020 08:46 PM
No correlation to ion or baselinejit. Doesn't crash with JS disabled. Crashes on other discussion threads as well, but doesn't crash on https://discussions.apple.com/welcome.
Support Staff 4 Posted by Cameron Kaiser on 18 Dec, 2020 11:27 AM
This is the same as https://tenfourfox.tenderapp.com/discussions/problems/9080-problem-... and seems to be a null pointer issue.
I won't be able to do further analysis on this until my G5 is back in order. If someone wants to try to get a backtrace with a debug build with full symbols, that would help.
Support Staff 5 Posted by Chris (chtrusch... on 24 Dec, 2020 11:36 AM
I still don't know how to do a full backtrace. Maybe the information in the logs helps?
Support Staff 6 Posted by Chris (chtrusch... on 24 Dec, 2020 11:42 AM
Disabling javascript.options.asyncfuncs doesn't help.
Support Staff 7 Posted by Cameron Kaiser on 24 Dec, 2020 11:47 AM
You'd run the debug build in the TenFourFox debugger: https://github.com/classilla/tenfourfox/wiki/HowToBuildFPR (under
Running and debugging
)At the point it crashes, which may be earlier if an assertion fails, wait for the
(gdb)
prompt to reappear, and then dobt full
. We should do this in a debug build so that we can see if any earlier trouble spots appear before the crash.Support Staff 8 Posted by Chris (chtrusch... on 26 Dec, 2020 10:05 AM
I'm sorry, even installing the debugger is currently beyond my abilities. HowToBuildFPR says "Decompress and copy the binary to /usr/local/bin/gdb7". What's "the binary"? When I download gdb768-104fx-4.tar and decompress it, I get a folder of stuff, not a single binary.
Support Staff 9 Posted by Cameron Kaiser on 26 Dec, 2020 11:08 PM
Sorry, it should say decompress and build. I thought you already had it. No worries if you don't. I'll do this when I'm back up and running.
Support Staff 10 Posted by Chris (chtrusch... on 27 Dec, 2020 03:44 PM
That makes more sense.
I have XCode 3.1.4 and built the debugger from the gdb-768 archive, then installed it to /usr/local/bin/gdb7. The binary is 3.7MB. Is this correct? I have close to zero experience with building in the terminal, and the instructions in the README files are a bit misleading.
Maybe we can continue this elsewhere, but when I cd to TenFourFoxDebug.app/Contents/MacOS/, run 'gdb7 firefox' and hit 'run' at the 'gdb' prompt, I get 'Unable to find Mach task port for process-id 91361: (os/kern) failure (0x5)'. Running the gdb version that came with XCode works, however.
11 Posted by Kimo B. Yap on 11 Jan, 2021 07:54 AM
I will see if I can build the debug version.
I can verify it fails in safe mode, and even in normal mode, but with javascript disabled on the page through the NoScript extension. I was trying this page, (fwiw):
https://discussions.apple.com/thread/1261323
Support Staff 12 Posted by Cameron Kaiser on 20 Jan, 2021 10:49 PM
I have the G5 repaired and analysed the issue. This is, unfortunately, another instance of issue 621: https://github.com/classilla/tenfourfox/issues/621
I will try to temporarily disable the offending script at the URL level. Maybe I can get a better idea of how to fix it from this one.
13 Posted by Kimo B. Yap on 19 Feb, 2021 05:24 AM
I guess your comment means this isn't fixed. It did seem much better, but this one does still crash it:
https://discussions.apple.com/thread/3985847
Support Staff 14 Posted by Chris (chtrusch... on 27 Feb, 2021 05:51 PM
Cameron, I can reproduce the crash locally with the dump from Google Cash. I discovered M-A Moldu's message from Dec. 17 today in the spam and restored it because I tought it might be interesting. I attached the html plus folder with JS/CSS.
Support Staff 15 Posted by Chris (chtrusch... on 27 Feb, 2021 06:12 PM
…reduced test case
Support Staff 16 Posted by Cameron Kaiser on 03 Mar, 2021 03:46 AM
The reduced didn't quite work, but I was able to do it with the first archive and pare it down. I'm still investigating. Thanks for doing that (no promises, of course, as stated).
17 Posted by M-A Moldu on 04 Mar, 2021 02:30 AM
Thanks for resuscitating my message from the spam doom...
Kidding aside; if I get this straight, as a workaround for the moment, disabling Javascript gets rid of that problem from a user's POV?
Again, thanks a lot to you guys...
Support Staff 18 Posted by Cameron Kaiser on 04 Mar, 2021 02:36 AM
Unless something else has changed, it shouldn't crash in FPR30 SPR2. But disabling JavaScript entirely will also work around it.
19 Posted by kby+tenfourfox on 04 Mar, 2021 05:46 AM
I will give it a try. Thanks.-kby
Sent from my iPad