Troubleshooting general protection faults
Hi All,
I am having a really strange and hard to troubleshoot problem on multiple systems and hope that someone here could maybe throw some tips my way. I am running Xenomai 2.6.4 on linux 3.4.6, amd64. I am also using the Etherlabs ethercat stack out of their stable-1.5 branch. From time to time, the system suddenly goes into a state where most programs, including bash, will immediately crash, which means we notice this when we can no longer ssh into the machine - ssh still answers, but bash crashes, so it hangs up immediately. Even sudo will crash. The frequency of this problem has been anywhere between 24 hours and 30 days. Most of the time, our application continues to run, although I have seen times when it has segfaulted when this issue occurs. I have found the following messages in dmesg kernel ring buffer when attempting to run bash(via ssh) and sudo:
[453435.329099] sshd[20571] general protection ip:7fa242dca6f3 sp:7fff272c9d40 error:0 in libcrypto.so.1.0.0[7fa242cc5000+1ca000] [453669.290896] sudo[20578]: segfault at 0 ip (null) sp 00007ffff97d89c8 error 14 in sudo[400000+1a000] [453711.410834] sudo[20581]: segfault at 0 ip (null) sp 00007fffe07e36f8 error 14 in sudo[400000+1a000]
The only recovery I have found is to reboot the machine.
Thanks,
Steven
Quoted 5 lines · Steve Hartmann
Hi All,
I am having a really strange and hard to troubleshoot problem on multiple systems and hope that someone here could maybe throw some tips my way. I am running Xenomai 2.6.4 on linux 3.4.6, amd64.
Do you observe the same behaviour with the I-pipe patch for Linux 3.14.17 that comes with Xenomai 2.6.4?
Signature · 1 line
Gilles.
Quoted 12 lines · Gilles Chanteperdrix
Quoted 5 lines · Steve Hartmann
Hi All,
I am having a really strange and hard to troubleshoot problem on multiple systems and hope that someone here could maybe throw some tips my way. I am running Xenomai 2.6.4 on linux 3.4.6, amd64.
Do you observe the same behaviour with the I-pipe patch for Linux 3.14.17 that comes with Xenomai 2.6.4?
Signature · 1 line
Gilles.
Unfortunately there is no patched version of the e1000e driver for Etherlabs Ethercat stack for that linux version, so I have not tried it. I will look into the effort level to do the e1000e port myself. Did you mention that version because it addresses an issue similar to mine?
Quoted 14 lines · Steve Hartmann
Quoted 10 lines · Gilles Chanteperdrix
Quoted 5 lines · Steve Hartmann
Hi All,
I am having a really strange and hard to troubleshoot problem on multiple systems and hope that someone here could maybe throw some tips my way. I am running Xenomai 2.6.4 on linux 3.4.6, amd64.
Do you observe the same behaviour with the I-pipe patch for Linux 3.14.17 that comes with Xenomai 2.6.4?
Quoted 7 lines
Quoted 2 lines
--
Gilles.Unfortunately there is no patched version of the e1000e driver for Etherlabs Ethercat stack for that linux version, so I have not tried it. I will look into the effort level to do the e1000e port myself. Did you mention that version because it addresses an issue similar to mine?
In case you start porting the Etherlabs e1000e driver and it is too much effort: you could try to write a driver for Etherlabs that uses the RTnet network stack. You could base this new Etherlabs driver on the existing Etherlabs driver ("generic.c") that uses the linux network stack.
RTnet generally works well with Xenomai and it has a lot drivers (including one for e1000e). So, this might also be interesting if you need support for other network cards in the future. I'm not sure though whether RTnet works with 3.14.17, but perhaps somebody else could tell you that.
Hidde Verstoep
Quoted 14 lines · Steve Hartmann
Quoted 10 lines · Gilles Chanteperdrix
Quoted 5 lines · Steve Hartmann
Hi All,
I am having a really strange and hard to troubleshoot problem on multiple systems and hope that someone here could maybe throw some tips my way. I am running Xenomai 2.6.4 on linux 3.4.6, amd64.
Do you observe the same behaviour with the I-pipe patch for Linux 3.14.17 that comes with Xenomai 2.6.4?
Quoted 8 lines
Quoted 2 lines
Signature · 1 line
Gilles.Unfortunately there is no patched version of the e1000e driver for Etherlabs Ethercat stack for that linux version, so I have not tried it. I will look into the effort level to do the e1000e port myself. Did you mention that version because it addresses an issue similar to mine?
No, I was just saying that because 3.4 is a bit old, so a lot of things have been fixed since then and I would find it a waste of time to investigate a bug which has been solved in the mean time. Have you not observed the bug without the e1000 driver?
Anyway, if you want to investigate the issue, the first thing to do is to setup a console output (preferably serial) to another PC, and log the messages you get before the issue happens. Then enable the I-pipe and xenomai debug, and see if you get more messages.
Signature · 1 line
Gilles.