You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to see the rest of the panic message (i.e. press enter for more).
I assume keyboard/ssh no longer usable?
Any chance you could connect a serial connection which should still be operational after a panic?
Thanks for the reply. I'm running Wheezy I believe, so I don't think updating to Jessie causes the issue. "uname -a" reports:
Linux RPi 3.12.19+ #684 PREEMPT Fri May 16 19:27:32 BST 2014 armv6l GNU/Linux
Correct, keyboard/ssh no longer usable. Unfortunately I don't have a serial connection. Out of curiosity, do you expect that running Raspbian from the SD card under QEMU on a Linux x86_64 computer would provide a close-enough replication of the environment to extract the whole panic message? Or is there a way to lengthen the amount displayed on screen (a kernel command line argument or something)?
If you remove the parameter kgdboc=ttyAMA0,115200 from /boot/cmdline.txt then the stacktrace won't end at the kdb prompt. The full stack trace should spew out on the screen.
I can supply the entire dmesg output if you'd like.
The super weird thing is that I was able to get this from dmesg, because it hasn't hung. It's now been running for over two days straight without freezing and without getting that error again. I'm not sure this isn't a fluke so I'm continuing to monitor it. However, is it possible that waiting for a response to the "more>" prompt on a nonexistant serial device ttyAMA0 was causing the RPi to hang and become unresponsive to other inputs? I know it was hung because the USB hard drive would turn off, which it wouldn't do if BOINC was still running tasks from it in the background. But it hasn't run for over a few hours without hanging since updating to 3.12.y, so removing that kgdboc parameter seems to have changed something about how it handles this bug.
Very keen to hear your thoughts on what's going on!
UPDATE: Although the RPi itself seems not to hang any more, the BOINC task doesn't progress any further. This could be the reason the bug wasn't recurring.
Although you hit an illegal instruction exception in kernel mode, it looks like the handler just killed the process.
With kgdb loaded, this would have hit a trap to enter the debugger which is why you got the more> prompt - if you had a serial cable you could potentially resume execution and you would get the result as if you hadn't entered kgdb.
This smells like an upstream bug. There's assembly magic in there that does the job of moving values out of the VFP register file.
OK, thanks for looking into it. I'll further my discussions with the BOINC people and see how it goes.
EDIT: Any idea why this would have started happening between 3.10.y and 3.12.y, as reported on the BOINC boards? Was anything deprecated between versions that may have led to this?
Sorry if I may differ. From a security point of view - kernel is king, and if userspace can crash kernel, it is always ALWAYS ALWAYS the kernel fault. The kernel is supposed to protect itself very well against ANY input possible from userspace, because it is encased in a security castle.
This point is sometime hard to understand by many people, but definitely NOT the security hacker - many times in the past just a simple hack/crack introduced through the userspace can easily compromise the king, I mean kernel.
References (please don't irritate Linus, this simple logic is supposed to be well known to core kernel developer):
I have to agree with tthtlc, if you're hitting an ilegal instruction in kernel mode, it's a kernel bug, not a userspace bug (with the possible exception of cases like BPF where userpspace passes code into the kernel). BOINC may have updated such that they don't hit the bug, but it's still there regardless, and should be fixed.
@Ruffio i'm afraid I don't know if it's resolved for the kernel version in question. Two RPi's happily running Linux RPi 4.4.13+ #894 kernel without issue at the moment though (latest Jessie kernel at time of writing). So, happy to close the issue.
This is still an open issue on the Pi all the way up from the 3.12.x kernel to and including the 4.4.46+ kernel,
It was a two part issue, the first part caused the issue, the 2nd part caused the Pi to lock up,
the 2nd part was fixed, but not the first, (3.10.25+ was fine)
On the Seti v8 app, the issue doesn't occur on Low Angle Range tasks (Where the telescope is focused at a point in space),
does happen on Normal AR tasks (where the telescope is stationary and tracks across the sky as the earth rotates),
does happen on High AR tasks,
and doesn't occur on Very High AR tasks (where the telescope is actively driven across the sky)
Activity
popcornmix commentedon May 21, 2014
This post (http://www.raspberrypi.org/forums/viewtopic.php?f=29&t=75895&start=25#p552161) suggests that Wheezy running 3.12.y is okay, but updating to Jessie introduced the problem. Which are you using?
What does "uname -a" report?
I need to see the rest of the panic message (i.e. press enter for more).
I assume keyboard/ssh no longer usable?
Any chance you could connect a serial connection which should still be operational after a panic?
hartacus commentedon May 22, 2014
Thanks for the reply. I'm running Wheezy I believe, so I don't think updating to Jessie causes the issue. "uname -a" reports:
Linux RPi 3.12.19+ #684 PREEMPT Fri May 16 19:27:32 BST 2014 armv6l GNU/Linux
Correct, keyboard/ssh no longer usable. Unfortunately I don't have a serial connection. Out of curiosity, do you expect that running Raspbian from the SD card under QEMU on a Linux x86_64 computer would provide a close-enough replication of the environment to extract the whole panic message? Or is there a way to lengthen the amount displayed on screen (a kernel command line argument or something)?
P33M commentedon May 22, 2014
If you remove the parameter kgdboc=ttyAMA0,115200 from /boot/cmdline.txt then the stacktrace won't end at the kdb prompt. The full stack trace should spew out on the screen.
hartacus commentedon May 25, 2014
Thanks for the hint P33M. That allowed me to extract the entire trace through dmesg (see below for further discussion). Here's the trace:
I can supply the entire dmesg output if you'd like.
The super weird thing is that I was able to get this from dmesg, because it hasn't hung. It's now been running for over two days straight without freezing and without getting that error again. I'm not sure this isn't a fluke so I'm continuing to monitor it. However, is it possible that waiting for a response to the "more>" prompt on a nonexistant serial device ttyAMA0 was causing the RPi to hang and become unresponsive to other inputs? I know it was hung because the USB hard drive would turn off, which it wouldn't do if BOINC was still running tasks from it in the background. But it hasn't run for over a few hours without hanging since updating to 3.12.y, so removing that kgdboc parameter seems to have changed something about how it handles this bug.
Very keen to hear your thoughts on what's going on!
UPDATE: Although the RPi itself seems not to hang any more, the BOINC task doesn't progress any further. This could be the reason the bug wasn't recurring.
P33M commentedon May 27, 2014
Although you hit an illegal instruction exception in kernel mode, it looks like the handler just killed the process.
With kgdb loaded, this would have hit a trap to enter the debugger which is why you got the more> prompt - if you had a serial cable you could potentially resume execution and you would get the result as if you hadn't entered kgdb.
This smells like an upstream bug. There's assembly magic in there that does the job of moving values out of the VFP register file.
hartacus commentedon May 28, 2014
OK, thanks for looking into it. I'll further my discussions with the BOINC people and see how it goes.
EDIT: Any idea why this would have started happening between 3.10.y and 3.12.y, as reported on the BOINC boards? Was anything deprecated between versions that may have led to this?
popcornmix commentedon Mar 2, 2015
Sounds like this was fixed in a BOINC update:
http://boinc.berkeley.edu/dev/forum_thread.php?id=9222
@hartacus is this still an issue?
tthtlc commentedon Mar 2, 2015
Sorry if I may differ. From a security point of view - kernel is king, and if userspace can crash kernel, it is always ALWAYS ALWAYS the kernel fault. The kernel is supposed to protect itself very well against ANY input possible from userspace, because it is encased in a security castle.
This point is sometime hard to understand by many people, but definitely NOT the security hacker - many times in the past just a simple hack/crack introduced through the userspace can easily compromise the king, I mean kernel.
References (please don't irritate Linus, this simple logic is supposed to be well known to core kernel developer):
https://felipec.wordpress.com/2013/10/07/the-linux-way/
http://news.softpedia.com/news/Linus-Torvalds-Destroys-a-Linux-Kernel-Maintainer-on-the-Official-Mainling-List-317880.shtml
https://lkml.org/lkml/2012/12/23/75
http://developers.slashdot.org/story/12/12/29/018234/linus-chews-up-kernel-maintainer-for-introducing-userspace-bug
Mantra for the day: userspace never break kernel, it is always kernel fault. Userspace bugs will only end worst case with application crashes.
Sorry my point is: any kernel crashes, have to be reported as kernel crashes, it is likely to persists.
Ferroin commentedon Mar 4, 2015
I have to agree with tthtlc, if you're hitting an ilegal instruction in kernel mode, it's a kernel bug, not a userspace bug (with the possible exception of cases like BPF where userpspace passes code into the kernel). BOINC may have updated such that they don't hit the bug, but it's still there regardless, and should be fixed.
Ruffio commentedon Aug 10, 2016
@hartacus has this issue been resolved? If yes, then please close this issue.
hartacus commentedon Aug 11, 2016
@Ruffio i'm afraid I don't know if it's resolved for the kernel version in question. Two RPi's happily running Linux RPi 4.4.13+ #894 kernel without issue at the moment though (latest Jessie kernel at time of writing). So, happy to close the issue.
gozotto commentedon Aug 23, 2016
Still the same issue with seti@boinc
uname -aLinux raspberrypi 4.4.13+ #894 Mon Jun 13 12:43:26 BST 2016 armv6l GNU/Linuxafter 10 min I've got
Claggy3 commentedon Feb 4, 2017
This is still an open issue on the Pi all the way up from the 3.12.x kernel to and including the 4.4.46+ kernel,
It was a two part issue, the first part caused the issue, the 2nd part caused the Pi to lock up,
the 2nd part was fixed, but not the first, (3.10.25+ was fine)
On the Seti v8 app, the issue doesn't occur on Low Angle Range tasks (Where the telescope is focused at a point in space),
does happen on Normal AR tasks (where the telescope is stationary and tracks across the sky as the earth rotates),
does happen on High AR tasks,
and doesn't occur on Very High AR tasks (where the telescope is actively driven across the sky)
Claggy3 commentedon Feb 7, 2017
Here is my latest kern.log:
pelwell commentedon Feb 7, 2017
This patch might be relevant: http://lists.infradead.org/pipermail/linux-arm-kernel/2015-March/332633.html
Claggy3 commentedon Feb 7, 2017
How do I get hold of a kernel with this patch applied?
Claggy3 commentedon Feb 9, 2017
Did a rpi-update, and rebooted, no change:
Claggy3 commentedon Feb 10, 2017
next try, no change:
Claggy3 commentedon Feb 15, 2017
This issue is now fixed with kernels 4.4.48+ 964 or 4.9.9+ 965 or later, see this issue for details:
#859