LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - ARM (https://www.linuxquestions.org/questions/slackware-arm-108/)
-   -   Firefox on Tegra "Invalid instruction" (https://www.linuxquestions.org/questions/slackware-arm-108/firefox-on-tegra-invalid-instruction-4175618394/)

dreadbit 11-26-2017 02:17 AM

Firefox on Tegra "Invalid instruction"
 
Hello.

After upgrade to FF 56(?) - at least, now at 57, I get "Invalid Instruction" the following on Toshiba AC100 ( Nvidia Tegra 2 CPU/SOC) - here is what gdb says:

Starting program: /usr/bin/firefox
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/libthread_db.so.1".
[New Thread 0xaedff440 (LWP 15407)]
[New Thread 0xab54e440 (LWP 15408)]
[Thread 0xab54e440 (LWP 15408) exited]
[New Thread 0xab54e440 (LWP 15409)]
[New Thread 0xaa2d9440 (LWP 15410)]
[New Thread 0xa9ad9440 (LWP 15411)]
[New Thread 0xa90ff440 (LWP 15412)]
[New Thread 0xa88ff440 (LWP 15413)]
[New Thread 0xa86ff440 (LWP 15414)]
[New Thread 0xa84ff440 (LWP 15415)]
[New Thread 0xa82ff440 (LWP 15416)]
[New Thread 0xa80ff440 (LWP 15417)]
[New Thread 0xa7eff440 (LWP 15418)]
[New Thread 0xa77ff440 (LWP 15424)]
[New Thread 0xa6fff440 (LWP 15425)]
[New Thread 0xa65ff440 (LWP 15427)]
[New Thread 0xaef79440 (LWP 15428)]
[New Thread 0xa5322440 (LWP 15453)]
[New Thread 0xa45ff440 (LWP 15454)]
[New Thread 0xa3dff440 (LWP 15455)]

Thread 1 "firefox" received signal SIGILL, Illegal instruction.
0xb38dddbc in ?? () from /usr/lib/firefox-57.0/libxul.so
(gdb)

What else can I do to help diagnose these?

UPD: I'm using a self-compiled kernel 4.14 based on config in kernel tree - may be that matters

drmozes 11-26-2017 10:06 AM

Quote:

Originally Posted by dreadbit (Post 5785289)
Hello.

After upgrade to FF 56(?) - at least, now at 57, I get "Invalid Instruction" the following on Toshiba AC100 ( Nvidia Tegra 2 CPU/SOC) - here is what gdb says:

It's probably because the Tegra20 does not have NEON instructions. I tested it on my Trimslice and it crashes also, but it works on the Banana Pi and Orange Pi.

I'm going to see if it builds and runs on the Trimslice, and see if NEON instructions can be disabled at build time.

dreadbit 11-27-2017 01:28 PM

Quote:

Originally Posted by drmozes (Post 5785436)
but it works on the Banana Pi and Orange Pi.

Yes, I can just confirm - no problems on BPI.

What is the latest working version and can I grab it somewhere for downgrading?

drmozes 11-28-2017 02:48 AM

Quote:

Originally Posted by dreadbit (Post 5785879)
Yes, I can just confirm - no problems on BPI.

What is the latest working version and can I grab it somewhere for downgrading?

-current now has a version built without NEON instructions; tested on my Trimslice.

dreadbit 11-28-2017 05:27 AM

Quote:

Originally Posted by drmozes (Post 5786111)
-current now has a version built without NEON instructions; tested on my Trimslice.

Thanks! Now it works on Toshiba AC100, too.

dreadbit 04-18-2018 04:27 AM

Quote:

Originally Posted by drmozes (Post 5786111)
-current now has a version built without NEON instructions; tested on my Trimslice.

Hello once again, the same problem again with 59-0-2-arm-1 at least.

drmozes 04-18-2018 07:33 AM

xap/mozilla-firefox-58.0.1-arm-1.txz: Upgraded.
This release contains security fixes and improvements.
For more information, see:
https://www.mozilla.org/en-US/securi...s/mfsa2018-05/
https://www.mozilla.org/security/kno...s/firefox.html
(* Security fix *)

Thanks to Matteo Bernardini for the build script update to use mach.

Note: This package will not work on machines without NEON instructions, such as
the Tegra20. I've tried to patch it, but without success. On top of that,
rust is also building with NEON instructions, despite be compiled not to, so
if you want to try and build Firefox without NEON for yourself, you'll probably
need to fix 'rust' first.

dreadbit 04-18-2018 08:19 AM

Oh, that's a bad news...

Which firefox version is the latest without the need of neon? (and where to get it?)

[went to compile PaleMoon]

drmozes 04-18-2018 09:59 AM

Quote:

Originally Posted by dreadbit (Post 5844656)
Oh, that's a bad news...

Which firefox version is the latest without the need of neon? (and where to get it?)

Which ever version is in the change log prior to that one. There are no copies of previous packages so you'd have to download the source and build it yourself; but you'd need an older version of rust too.
It's not worth the effort, IMO.


All times are GMT -5. The time now is 11:30 PM.