Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Illegal instruction when running anything
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
MustrumR
n00b
n00b


Joined: 15 Nov 2011
Posts: 53
Location: Right here

PostPosted: Tue Jul 08, 2014 12:23 pm    Post subject: Illegal instruction when running anything Reply with quote

Hardware: MikroTik rb493g, mips-softfloat-linux-gnu
Kernel: OpenWRT patches, version 3.10.4x/3.14.4/3.15.3.

Programs fail with SIGILL most of the time. If they are read (cat/md5sum) before executing they work OK.

Running with gdb reveals that after waiting 1-2 seconds and disassembling the instruction is OK. It seems that after a page fault the program is resumed before the page is actually read.

This does not happen if the program is in the internal NAND (only if it's in a microSD card/nbd).
Back to top
View user's profile Send private message
roarinelk
Guru
Guru


Joined: 04 Mar 2004
Posts: 441

PostPosted: Wed Jul 09, 2014 1:26 pm    Post subject: Reply with quote

Well, I can't help you there, but that smells a LOT like a caching problem, so
you need to talk to the OpenWRT people about it: their kernel patches have
some problems (current git kernels don't have rb493 support).
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum