* [Xenomai] Kernel oops: x86 arch, Xenomai 2.6.3
@ 2013-12-28 23:56 John Morris
2013-12-29 10:05 ` Gilles Chanteperdrix
0 siblings, 1 reply; 3+ messages in thread
From: John Morris @ 2013-12-28 23:56 UTC (permalink / raw)
To: xenomai
Updated RPMS, Xenomai 2.6.3 and Linux 3.8.13, crash on most tested
platforms (Fedora 18/19 & EL6 32-bit, but strangely not EL6 64-bit). In
some cases the crash occurs during boot. In the pasted example [1] (EL6
32-bit), the crash occurred after starting a Xenomai application (LinuxCNC).
Xenomai package [9] updates:
- Update Xenomai from 2.6.2.1 to 2.6.3
- _FORTIFY_SOURCE=2 flag re-enabled
(see prev. discussion [2,3]; Gilles indicated this has been fixed)
- --enable-dlopen-skins removed ("WARNING: unrecognized option")
- devel package follows Debian: use prepare-kernel.sh instead of
prepare-patch.sh
Kernel package [4] updates:
- (Package was rebased on top of elrepo.org packages)
- Update Linux from 3.5.7 to 3.8.13
- Base .config from Fedora ~3.8.13 kernel
- added a few missing answers [5,6]
- Xenomai .config 'overrides' unchanged [7,8]
Although nobody but me runs Xenomai on Red Hat, these .configs and
packaging scripts will be the basis for updating the Debian packages;
therefore, solving these issues is more valuable than it seems. ;) Thanks!
John
[1] http://pastebin.ca/2519330
[2] http://www.xenomai.org/pipermail/xenomai/2013-January/027341.html
[3] http://www.xenomai.org/pipermail/xenomai/2013-January/027342.html
[4] https://github.com/zultron/kernel-rt-rpm
[5] https://github.com/zultron/kernel-rt-rpm/blob/master/config-i686
[6] https://github.com/zultron/kernel-rt-rpm/blob/master/config-x86_64
[7] https://github.com/zultron/kernel-rt-rpm/blob/master/config-xenomai-i686
[8]
https://github.com/zultron/kernel-rt-rpm/blob/master/config-xenomai-x86_64
[9] https://github.com/zultron/xenomai-rpm
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [Xenomai] Kernel oops: x86 arch, Xenomai 2.6.3 2013-12-28 23:56 [Xenomai] Kernel oops: x86 arch, Xenomai 2.6.3 John Morris @ 2013-12-29 10:05 ` Gilles Chanteperdrix 2013-12-30 22:12 ` John Morris 0 siblings, 1 reply; 3+ messages in thread From: Gilles Chanteperdrix @ 2013-12-29 10:05 UTC (permalink / raw) To: John Morris; +Cc: xenomai On 12/29/2013 12:56 AM, John Morris wrote: > Updated RPMS, Xenomai 2.6.3 and Linux 3.8.13, crash on most tested > platforms (Fedora 18/19 & EL6 32-bit, but strangely not EL6 64-bit). In > some cases the crash occurs during boot. In the pasted example [1] (EL6 > 32-bit), the crash occurred after starting a Xenomai application (LinuxCNC). > > Xenomai package [9] updates: > - Update Xenomai from 2.6.2.1 to 2.6.3 > - _FORTIFY_SOURCE=2 flag re-enabled > (see prev. discussion [2,3]; Gilles indicated this has been fixed) > - --enable-dlopen-skins removed ("WARNING: unrecognized option") > - devel package follows Debian: use prepare-kernel.sh instead of > prepare-patch.sh > > Kernel package [4] updates: > - (Package was rebased on top of elrepo.org packages) > - Update Linux from 3.5.7 to 3.8.13 > - Base .config from Fedora ~3.8.13 kernel > - added a few missing answers [5,6] > - Xenomai .config 'overrides' unchanged [7,8] Hi John, just tried your .config, I can not reproduce your crash. LOCKDEP complains about hardirqs being on in the timer interrupt, but once LOCKDEP is disabled (which involves disabling several options), the system runs fine. Someone would have to check to see if it is a false positive (i.e. LOCKDEP using the hardware interrupt mask instead of the I-pipe virtualized interrupt mask), or if it is a real bug. It is highly suspicious since the bug in slub.c since to be triggered by a similar condition (irqs being on in a place where they should not). In the mean time, could you try and enable the I-pipe tracer with the "freeze on panic" option, increase the number of backtrace points, and try and trigger the bug again? > [7] https://github.com/zultron/kernel-rt-rpm/blob/master/config-xenomai-i686 Just had a look at that, you can now remove: - the SMI related stuff as SMI are now configured at run-time - the gpio-pch stuff, as the missing EXPORT_SYMBOL has been added The problem with CONFIG_CPUMASK_OFFSTACK can probably be fixed (we simply have to use set_cpus_allowed_ptr instead of set_cpus_allowed), though I do not know if enabling CONFIG_MAXSMP with Xenomai makes any sense anyway. > > Although nobody but me runs Xenomai on Red Hat, these .configs and > packaging scripts will be the basis for updating the Debian packages; > therefore, solving these issues is more valuable than it seems. ;) > Thanks! The problem probably has nothing to do with Red Hat. By the way, a patch integrating the Red Hat "rules" to Xenomai would be welcome. This would allow users to build Red Hat packages from Xenomai sources from the repository. Regards. -- Gilles. ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai] Kernel oops: x86 arch, Xenomai 2.6.3 2013-12-29 10:05 ` Gilles Chanteperdrix @ 2013-12-30 22:12 ` John Morris 0 siblings, 0 replies; 3+ messages in thread From: John Morris @ 2013-12-30 22:12 UTC (permalink / raw) To: Gilles Chanteperdrix; +Cc: xenomai On 12/29/2013 04:05 AM, Gilles Chanteperdrix wrote: > On 12/29/2013 12:56 AM, John Morris wrote: >> Updated RPMS, Xenomai 2.6.3 and Linux 3.8.13, crash on most tested >> platforms (Fedora 18/19 & EL6 32-bit, but strangely not EL6 64-bit). In >> some cases the crash occurs during boot. In the pasted example [1] (EL6 >> 32-bit), the crash occurred after starting a Xenomai application (LinuxCNC). >> >> Xenomai package [9] updates: >> - Update Xenomai from 2.6.2.1 to 2.6.3 >> - _FORTIFY_SOURCE=2 flag re-enabled >> (see prev. discussion [2,3]; Gilles indicated this has been fixed) >> - --enable-dlopen-skins removed ("WARNING: unrecognized option") >> - devel package follows Debian: use prepare-kernel.sh instead of >> prepare-patch.sh >> >> Kernel package [4] updates: >> - (Package was rebased on top of elrepo.org packages) >> - Update Linux from 3.5.7 to 3.8.13 >> - Base .config from Fedora ~3.8.13 kernel >> - added a few missing answers [5,6] >> - Xenomai .config 'overrides' unchanged [7,8] Hi Gilles, I neglected to mention the above kernels are all running in KVM, not on bare metal. > just tried your .config, I can not reproduce your crash. LOCKDEP > complains about hardirqs being on in the timer interrupt, but once > LOCKDEP is disabled (which involves disabling several options), the > system runs fine. Someone would have to check to see if it is a false > positive (i.e. LOCKDEP using the hardware interrupt mask instead of the > I-pipe virtualized interrupt mask), or if it is a real bug. It is highly > suspicious since the bug in slub.c since to be triggered by a similar > condition (irqs being on in a place where they should not). Disabling DEBUG_KERNEL was all that was needed in the Fedora .config to disable LOCKDEP. Is that different from what you expected? > In the mean time, could you try and enable the I-pipe tracer with the > "freeze on panic" option, increase the number of backtrace points, and > try and trigger the bug again? Here's a trace on Fedora 19 32-bit: http://pastebin.ca/2520565 >> [7] https://github.com/zultron/kernel-rt-rpm/blob/master/config-xenomai-i686 > > Just had a look at that, you can now remove: > - the SMI related stuff as SMI are now configured at run-time > - the gpio-pch stuff, as the missing EXPORT_SYMBOL has been added > > The problem with CONFIG_CPUMASK_OFFSTACK can probably be fixed (we > simply have to use set_cpus_allowed_ptr instead of set_cpus_allowed), > though I do not know if enabling CONFIG_MAXSMP with Xenomai makes any > sense anyway. Thanks for the review. SMI and GPIO_PCH removed here: https://github.com/zultron/kernel-rt-rpm/commit/ae08d8a651496134dc415fe7b0bcb6519ff148f3 >> Although nobody but me runs Xenomai on Red Hat, these .configs and >> packaging scripts will be the basis for updating the Debian packages; >> therefore, solving these issues is more valuable than it seems. ;) > > Thanks! > > The problem probably has nothing to do with Red Hat. By the way, a patch > integrating the Red Hat "rules" to Xenomai would be welcome. This would > allow users to build Red Hat packages from Xenomai sources from the > repository. Gladly. I'll send a patch once the 'xenomai' service systemd scripts for Fedora are integrated. John ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-12-30 22:12 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-12-28 23:56 [Xenomai] Kernel oops: x86 arch, Xenomai 2.6.3 John Morris 2013-12-29 10:05 ` Gilles Chanteperdrix 2013-12-30 22:12 ` John Morris
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.