sebanc / brunch

Boot ChromeOS on x86_64 PC - Supports Intel CPU/GPU from 8th gen or AMD Ryzen
GNU General Public License v3.0
3.7k stars 393 forks source link

Crosh shell not opening - illegal Instruction (core dumped) #1362

Open joeyoropesa-dev opened 2 years ago

joeyoropesa-dev commented 2 years ago

When I try to open Crosh shell with keyboard, crosh shell constantly close itself. After that when I try run crosh shell from terminal (Ctrl + Alt + F2) I get this error:

illegal instruction (core dumped)

I have latest Brunch and ChromeOS version so - is this bug by Brunch or by Chrome OS. And if this bug by Brunch framework, can this problem be solved. My Chrome OS image is rammus type. I don't have installed anything on my device (Android, Crostini - nothing)

/var/log/messages says: 2022-01-02T10:10:00.694175Z INFO kernel: [ 2515.077547] traps: crosh[9981] trap invalid opcode ip:59d35b93c4d9 sp:7ffeb42c8600 error:0 in crosh[59d35b844000+1e3000] 2022-01-02T10:10:01.196282Z WARNING crash_reporter[9984]: [user] Received crash notification for crosh[9981] sig 4, user 0 group 0 (handling) 2022-01-02T10:10:01.197404Z INFO crash_reporter[9984]: State of crashed process [9981]: S (sleeping) 2022-01-02T10:10:01.198684Z INFO crash_reporter[9984]: Accessing crash dir '/var/spool/crash' via symlinked handle '/proc/self/fd/11' 2022-01-02T10:10:01.219384Z WARNING crash_reporter[9984]: exec name 'crosh' not found in log file 2022-01-02T10:10:01.303526Z INFO crash_reporter[9984]: Stored minidump to /var/spool/crash/crosh.20220102.111001.28129.9981.dmp 2022-01-02T10:10:01.303882Z INFO crash_reporter[9984]: Finishing crash. Meta file: /proc/self/fd/11/crosh.20220102.111001.28129.9981.meta

jmbocn commented 2 years ago

Hi,

same issue here, I'm running nami r100 over brunch r107 unstable 20221029 on a core i3 3217U processor. Tried different kernels, now on 5.4, tried also ramus r100, crosh keeps on crashing with illegal instruction.

Any suggestions welcome!

tejasraman commented 2 years ago

Could you try Caroline @jmbocn

jmbocn commented 2 years ago

Hi Tejas, same issue (tried both caroline r100 and r96); plus I cannot login to the system on the graphical GUI. If I switch to terminal mode with CTRL+ALT+F2 I can (1) check that crosh crashes with illegal instruction and (2) on /var/log/messages I see recurrent crashes with lots of ERR from missived calling method .....UploadEncryptedRecord (possibly related to the unability to log in). I reverted to nami r100 which is functional for me -other than crosh-.

jmbocn commented 2 years ago

Update: I realized I can run crosh, just not interactively. E. g.: crosh -- <command> works but just crosh will fail. I guess that's why CTRL + ALT + F2 just opens and quickly closes the window, because crosh crashes if there are no arguments, that is if I try to execute crosh interactively to get a crosh> prompt

Not-Dhanraj commented 2 years ago

Great... The only Sandy bridge laptop I have is a MacBook with EFI so I never tested the patch.

Did the guide work for you?

Edit: The reason I mentioned it was that most Windows Sandy Bridge laptops had Windows 7 (no EFI).

Yes it did but sadly internet connection wasn't working so installed mint

tejasraman commented 2 years ago

What's your laptop model? I'll try to help

Not-Dhanraj commented 2 years ago

It is hp notebook 2000. And i cannot tell exact model number right now as i don't have access to that device right now.

Not-Dhanraj commented 2 years ago

When installed chromeos then it connected to wifi just fine and my network was working fine as well but it wasnt opening any website + i was not able to login with my google account.

Linux development tools wasn't supported on that device either, so i lost interest as soon as i installed it😂

tejasraman commented 2 years ago

You know I hate chromeOS. My school forces a piece of junk Chromebook on me and it's limited (crostini = slow).

At the same time brunch is an interesting project (for me) to mess around with. (I even added Linux 6.0 to it recently).

I understand what you mean but thanks so much for being so helpful!

I think Linux Mint will serve you well - it's served me well 😃.

Thanks!

tejasraman commented 2 years ago

That's weird especially because on an i5-2435M crosh works fine. Your chip has the same/more instruction sets than mine. @admin-elvistrujanovic had this but sadly IvyBridge is not supported (works though).

Can you test r107 unstable @jmbocn ?

jmbocn commented 2 years ago

Hi @tejasraman I'm on brunch r107 unstable, but ChromeOS I cannot update past r100 as I hit a bug that makes the system stall at the login page, see https://github.com/sebanc/brunch/issues/1546. So I'm quite between a rock and a hard place here :( Just to make sure I got this thing working once, I went back to gandof r91 and crosh works OK on that version.

tejasraman commented 2 years ago

Then I'm not sure anymore.