* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-13 15:19 ` Philippe Gerum
@ 2007-03-13 15:36 ` M. Koehrer
0 siblings, 0 replies; 10+ messages in thread
From: M. Koehrer @ 2007-03-13 15:36 UTC (permalink / raw)
To: rpm, mathias_koehrer; +Cc: xenomai
Hi Philippe,
thanks for your mail.
I retried everything with all the files that are in the official Xenomai 2.3.0 tar.bz2 file.
I.e. I used kernel 2.6.19.2 and the adeos-ipipe-2.6.19-i386-1.6-03.patch that is in this version.
The same result.
It is a SMP kernel on a Dual Core Pentium. I use a isolcpus=1 kernel command line.
I am about to try the latest svn version of Xenomai and a 2.6.20.2 kernel.
I will let you know when I have found out more...
Regards
Mathias
>
> This would be the the sign that a problem exists at the I-pipe level
> with your current patch. The fault should have been propagated form
> primary to secondary domain, and obviously it's not.
>
> >
> > How can I catch a signal in a Xenomai real time task?
> >
>
> There is no difference with any regular Linux application.
>
> > I am running Xenomai 2.3.0 + NOCOW patch.
> > I have enclosed the .c file and a Makefile in a .tgz file.
>
> Can't reproduce the issue with 1.7-03 here.
> Please make sure to use a recent and official I-pipe patch if it's not
> already the case, and not a testing patch as published on this list, so
> that we don't start chasing wild gooses.
> http://download.gna.org/adeos/patches/v2.6/
>
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-13 22:37 ` Philippe Gerum
@ 2007-03-14 8:17 ` M. Koehrer
2007-03-14 8:47 ` M. Koehrer
2007-03-14 11:02 ` Philippe Gerum
0 siblings, 2 replies; 10+ messages in thread
From: M. Koehrer @ 2007-03-14 8:17 UTC (permalink / raw)
To: rpm, gilles.chanteperdrix; +Cc: xenomai
[-- Attachment #1.1: Type: text/plain, Size: 1929 bytes --]
Hi all,
thanks for all the feedback on that issue.
Since yesterday I did a couple of tests on kernel 2.6.19.2
1. I used the adeos patch provided with xenomai-2.3.0
SMP mode => freeze with my program. I have enclosed the kernel config for this one
UP mode => freeze with my program
2. I added the patch from Philippe (the second one):
--- ksrc/nucleus/pod.c (revision 2293)
+++ ksrc/nucleus/pod.c (working copy)
@@ -1420,6 +1420,11 @@
the KICKED bit set, so that xnshadow_relax() is never
prevented from blocking the current thread. */
if (xnthread_test_info(thread, XNKICKED)) {
+ XENO_ASSERT(NUCLEUS, (mask & XNRELAX) == 0,
+ xnpod_fatal("Relaxing a kicked thread"
+ "(thread=%s, mask=%lx)?!",
+ thread->name, mask);
+ );
xnthread_clear_info(thread, XNRMID | XNTIMEO);
xnthread_set_info(thread, XNBREAK);
goto unlock_and_exit;
I used this patch on the UP kernel 2.6.19.2. Same adeos version as before.
The result was the same => PC freeze
3. I tried kernel 2.6.20.2 and the same (SMP) configuration as with 2.6.19.2
I used the Xenomai subversion #2292 and the adeos patch that is in subversion
(adeos-ipipe-2.6.20-i386-1.7-02.patch).
And with that combination it is working! I get the expected "Segmentation fault" message.
I don't know why, but it seems to be working!
I will try to use the same Xenomai svn version on the 2.6.19.2 to see if this is a 2.6.19 issue...
Regards
Mathias
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
[-- Attachment #2: linux_config.gz --]
[-- Type: application/x-gzip, Size: 8480 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-14 8:17 ` M. Koehrer
@ 2007-03-14 8:47 ` M. Koehrer
2007-03-14 10:35 ` Philippe Gerum
2007-03-14 11:02 ` Philippe Gerum
1 sibling, 1 reply; 10+ messages in thread
From: M. Koehrer @ 2007-03-14 8:47 UTC (permalink / raw)
To: mathias_koehrer, rpm, gilles.chanteperdrix; +Cc: xenomai
Hi all,
one additional thing I found out:
I used the Xenomai SVN version not on a 2.6.20.2 but on the 2.6.19.2 kernel.
And here I had the freeze again.
As I have written in my previous mail, it worked fine with 2.6.20.2
It seems as if kernel 2.6.19.2 is causing the trouble...
No idea why...
For me it is fine to switch over to 2.6.20, however I'd like to use a "stable" version
of Xenomai for it.
Is there a schedule for the next "stable" xenomai version that supports 2.6.20?
Thanks for all support!
Regards
Mathias
> thanks for all the feedback on that issue.
> Since yesterday I did a couple of tests on kernel 2.6.19.2
> 1. I used the adeos patch provided with xenomai-2.3.0
> SMP mode => freeze with my program. I have enclosed the kernel config for
> this one
> UP mode => freeze with my program
>
> 2. I added the patch from Philippe (the second one):
>
> --- ksrc/nucleus/pod.c (revision 2293)
> +++ ksrc/nucleus/pod.c (working copy)
> @@ -1420,6 +1420,11 @@
> the KICKED bit set, so that xnshadow_relax() is never
> prevented from blocking the current thread. */
> if (xnthread_test_info(thread, XNKICKED)) {
> + XENO_ASSERT(NUCLEUS, (mask & XNRELAX) == 0,
> + xnpod_fatal("Relaxing a kicked thread"
> + "(thread=%s, mask=%lx)?!",
> + thread->name, mask);
> + );
> xnthread_clear_info(thread, XNRMID | XNTIMEO);
> xnthread_set_info(thread, XNBREAK);
> goto unlock_and_exit;
>
> I used this patch on the UP kernel 2.6.19.2. Same adeos version as before.
> The result was the same => PC freeze
>
> 3. I tried kernel 2.6.20.2 and the same (SMP) configuration as with
> 2.6.19.2
> I used the Xenomai subversion #2292 and the adeos patch that is in
> subversion
> (adeos-ipipe-2.6.20-i386-1.7-02.patch).
> And with that combination it is working! I get the expected "Segmentation
> fault" message.
> I don't know why, but it seems to be working!
>
> I will try to use the same Xenomai svn version on the 2.6.19.2 to see if
> this is a 2.6.19 issue...
>
> Regards
>
> Mathias
>
>
>
>
> --
> Mathias Koehrer
> mathias_koehrer@domain.hid
>
>
> Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
> ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
> und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
> nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
> http://www.arcor.de/rd/emf-dsl-2
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-14 8:47 ` M. Koehrer
@ 2007-03-14 10:35 ` Philippe Gerum
2007-03-14 11:18 ` M. Koehrer
0 siblings, 1 reply; 10+ messages in thread
From: Philippe Gerum @ 2007-03-14 10:35 UTC (permalink / raw)
To: M. Koehrer; +Cc: xenomai
On Wed, 2007-03-14 at 09:47 +0100, M. Koehrer wrote:
> Hi all,
>
> one additional thing I found out:
> I used the Xenomai SVN version not on a 2.6.20.2 but on the 2.6.19.2 kernel.
> And here I had the freeze again.
> As I have written in my previous mail, it worked fine with 2.6.20.2
> It seems as if kernel 2.6.19.2 is causing the trouble...
Could you confirm that, Adeos-wise, you tried both 2.6.19-1.6-03 (not
working) and 2.6.20-1.7-02 (working)? if so, does 2.6.19-1.7-02 (or -03)
also work in your configuration?
> No idea why...
> For me it is fine to switch over to 2.6.20, however I'd like to use a "stable" version
> of Xenomai for it.
> Is there a schedule for the next "stable" xenomai version that supports 2.6.20?
>
2.3.1 is scheduled on 3/19.
> Thanks for all support!
>
> Regards
>
> Mathias
> > thanks for all the feedback on that issue.
> > Since yesterday I did a couple of tests on kernel 2.6.19.2
> > 1. I used the adeos patch provided with xenomai-2.3.0
> > SMP mode => freeze with my program. I have enclosed the kernel config for
> > this one
> > UP mode => freeze with my program
> >
> > 2. I added the patch from Philippe (the second one):
> >
> > --- ksrc/nucleus/pod.c (revision 2293)
> > +++ ksrc/nucleus/pod.c (working copy)
> > @@ -1420,6 +1420,11 @@
> > the KICKED bit set, so that xnshadow_relax() is never
> > prevented from blocking the current thread. */
> > if (xnthread_test_info(thread, XNKICKED)) {
> > + XENO_ASSERT(NUCLEUS, (mask & XNRELAX) == 0,
> > + xnpod_fatal("Relaxing a kicked thread"
> > + "(thread=%s, mask=%lx)?!",
> > + thread->name, mask);
> > + );
> > xnthread_clear_info(thread, XNRMID | XNTIMEO);
> > xnthread_set_info(thread, XNBREAK);
> > goto unlock_and_exit;
> >
> > I used this patch on the UP kernel 2.6.19.2. Same adeos version as before.
> > The result was the same => PC freeze
> >
> > 3. I tried kernel 2.6.20.2 and the same (SMP) configuration as with
> > 2.6.19.2
> > I used the Xenomai subversion #2292 and the adeos patch that is in
> > subversion
> > (adeos-ipipe-2.6.20-i386-1.7-02.patch).
> > And with that combination it is working! I get the expected "Segmentation
> > fault" message.
> > I don't know why, but it seems to be working!
> >
> > I will try to use the same Xenomai svn version on the 2.6.19.2 to see if
> > this is a 2.6.19 issue...
> >
> > Regards
> >
> > Mathias
> >
> >
> >
> >
> > --
> > Mathias Koehrer
> > mathias_koehrer@domain.hid
> >
> >
> > Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
> > ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
> > und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
> > nur 39,85 € inkl. DSL- und ISDN-Grundgebühr!
> > http://www.arcor.de/rd/emf-dsl-2
>
--
Philippe.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-14 8:17 ` M. Koehrer
2007-03-14 8:47 ` M. Koehrer
@ 2007-03-14 11:02 ` Philippe Gerum
1 sibling, 0 replies; 10+ messages in thread
From: Philippe Gerum @ 2007-03-14 11:02 UTC (permalink / raw)
To: M. Koehrer; +Cc: xenomai
On Wed, 2007-03-14 at 09:17 +0100, M. Koehrer wrote:
> Hi all,
>
> thanks for all the feedback on that issue.
> Since yesterday I did a couple of tests on kernel 2.6.19.2
> 1. I used the adeos patch provided with xenomai-2.3.0
> SMP mode => freeze with my program. I have enclosed the kernel config for this one
> UP mode => freeze with my program
>
> 2. I added the patch from Philippe (the second one):
>
> --- ksrc/nucleus/pod.c (revision 2293)
> +++ ksrc/nucleus/pod.c (working copy)
> @@ -1420,6 +1420,11 @@
> the KICKED bit set, so that xnshadow_relax() is never
> prevented from blocking the current thread. */
> if (xnthread_test_info(thread, XNKICKED)) {
> + XENO_ASSERT(NUCLEUS, (mask & XNRELAX) == 0,
> + xnpod_fatal("Relaxing a kicked thread"
> + "(thread=%s, mask=%lx)?!",
> + thread->name, mask);
> + );
> xnthread_clear_info(thread, XNRMID | XNTIMEO);
> xnthread_set_info(thread, XNBREAK);
> goto unlock_and_exit;
>
> I used this patch on the UP kernel 2.6.19.2. Same adeos version as before.
> The result was the same => PC freeze
>
Make sure to switch on the nucleus debug option, so that this code
triggers if appropriate.
--
Philippe.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-14 10:35 ` Philippe Gerum
@ 2007-03-14 11:18 ` M. Koehrer
2007-03-14 13:32 ` Philippe Gerum
0 siblings, 1 reply; 10+ messages in thread
From: M. Koehrer @ 2007-03-14 11:18 UTC (permalink / raw)
To: rpm, mathias_koehrer; +Cc: xenomai
Hello Philippe,
here is a table of the test I have done:
With the Xenomai SVN (#2292) I used the patches in the SVN repository:
2.6.19.2 with adeos-ipipe-2.6.19-i386-1.7-02.patch
2.6.20.2 with adeos-ipipe-2.6.20-i386-1.7-02.patch
With Xenomai-2.3.0 I used
2.6.19.2 with adeos-ipipe-2.6.19-i386-1.6-03.patch
The result was, that with 2.6.20.2 it was working as expected,
with 2.6.19.2 there was the PC freeze.
Regards
Mathias
> Could you confirm that, Adeos-wise, you tried both 2.6.19-1.6-03 (not
> working) and 2.6.20-1.7-02 (working)? if so, does 2.6.19-1.7-02 (or -03)
> also work in your configuration?
>
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
@ 2007-03-14 12:36 M. Koehrer
2007-03-14 13:26 ` Philippe Gerum
0 siblings, 1 reply; 10+ messages in thread
From: M. Koehrer @ 2007-03-14 12:36 UTC (permalink / raw)
To: rpm, mathias_koehrer; +Cc: xenomai
Hi Philippe,
I applied again the patch to the 2.6.19.2 (adeos-ipipe-2.6.19-i386-1.6-03.patch)
and also enabled the nucleus debug option.
But there is no change. The system still freezes.
Regards
Mathias
> > I used this patch on the UP kernel 2.6.19.2. Same adeos version as
> before.
> > The result was the same => PC freeze
> >
>
> Make sure to switch on the nucleus debug option, so that this code
> triggers if appropriate.
>
> --
> Philippe.
>
>
>
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-14 12:36 M. Koehrer
@ 2007-03-14 13:26 ` Philippe Gerum
0 siblings, 0 replies; 10+ messages in thread
From: Philippe Gerum @ 2007-03-14 13:26 UTC (permalink / raw)
To: M. Koehrer; +Cc: xenomai
On Wed, 2007-03-14 at 13:36 +0100, M. Koehrer wrote:
> Hi Philippe,
>
> I applied again the patch to the 2.6.19.2 (adeos-ipipe-2.6.19-i386-1.6-03.patch)
> and also enabled the nucleus debug option.
> But there is no change. The system still freezes.
>
Ok, thanks. So we did no enter the twilight zone, yet.
> Regards
>
> Mathias
> > > I used this patch on the UP kernel 2.6.19.2. Same adeos version as
> > before.
> > > The result was the same => PC freeze
> > >
> >
> > Make sure to switch on the nucleus debug option, so that this code
> > triggers if appropriate.
> >
> > --
> > Philippe.
> >
> >
> >
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
2007-03-14 11:18 ` M. Koehrer
@ 2007-03-14 13:32 ` Philippe Gerum
0 siblings, 0 replies; 10+ messages in thread
From: Philippe Gerum @ 2007-03-14 13:32 UTC (permalink / raw)
To: M. Koehrer; +Cc: xenomai
On Wed, 2007-03-14 at 12:18 +0100, M. Koehrer wrote:
> Hello Philippe,
>
> here is a table of the test I have done:
> With the Xenomai SVN (#2292) I used the patches in the SVN repository:
> 2.6.19.2 with adeos-ipipe-2.6.19-i386-1.7-02.patch
> 2.6.20.2 with adeos-ipipe-2.6.20-i386-1.7-02.patch
>
> With Xenomai-2.3.0 I used
> 2.6.19.2 with adeos-ipipe-2.6.19-i386-1.6-03.patch
>
> The result was, that with 2.6.20.2 it was working as expected,
> with 2.6.19.2 there was the PC freeze.
Ok, could you activate the nmi watchdog for the kernel (nmi_watchdog=2
added to the bootparams) and CONFIG_FRAME_POINTER, and also the nucleus
watchdog (CONFIG_XENO_OPT_WATCHDOG), in the failing case? Maybe one of
them would trigger. TIA,
>
> Regards
>
> Mathias
> > Could you confirm that, Adeos-wise, you tried both 2.6.19-1.6-03 (not
> > working) and 2.6.20-1.7-02 (working)? if so, does 2.6.19-1.7-02 (or -03)
> > also work in your configuration?
> >
>
>
--
Philippe.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
@ 2007-03-14 14:43 M. Koehrer
0 siblings, 0 replies; 10+ messages in thread
From: M. Koehrer @ 2007-03-14 14:43 UTC (permalink / raw)
To: rpm, mathias_koehrer; +Cc: xenomai
Hi Philippe,
I tried with nmi_watchdog
However with nmi_watchdog=1 I am not able to load my module xeno_native as
the PC resets during the modprobe command...
I remember that I had this strange issue a while ago with the 2.6.19 kernel...
With nmi_watchdog=2 I can modprobe xeno_native, however I do see any change.
The PC is still freezing.
Regards
Mathias
----- Original Nachricht ----
Von: Philippe Gerum <rpm@xenomai.org>
An: "M. Koehrer" <mathias_koehrer@domain.hid>
Datum: 14.03.2007 14:32
Betreff: Re: Re: [Xenomai-help] Howto catch SEGV signals in Xenomai
> On Wed, 2007-03-14 at 12:18 +0100, M. Koehrer wrote:
> > Hello Philippe,
> >
> > here is a table of the test I have done:
> > With the Xenomai SVN (#2292) I used the patches in the SVN repository:
> > 2.6.19.2 with adeos-ipipe-2.6.19-i386-1.7-02.patch
> > 2.6.20.2 with adeos-ipipe-2.6.20-i386-1.7-02.patch
> >
> > With Xenomai-2.3.0 I used
> > 2.6.19.2 with adeos-ipipe-2.6.19-i386-1.6-03.patch
> >
> > The result was, that with 2.6.20.2 it was working as expected,
> > with 2.6.19.2 there was the PC freeze.
>
> Ok, could you activate the nmi watchdog for the kernel (nmi_watchdog=2
> added to the bootparams) and CONFIG_FRAME_POINTER, and also the nucleus
> watchdog (CONFIG_XENO_OPT_WATCHDOG), in the failing case? Maybe one of
> them would trigger. TIA,
>
> >
> > Regards
> >
> > Mathias
> > > Could you confirm that, Adeos-wise, you tried both 2.6.19-1.6-03 (not
> > > working) and 2.6.20-1.7-02 (working)? if so, does 2.6.19-1.7-02 (or
> -03)
> > > also work in your configuration?
> > >
> >
> >
> --
> Philippe.
>
>
>
--
Mathias Koehrer
mathias_koehrer@domain.hid
Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT JETZT bei Arcor: günstig
und schnell mit DSL - das All-Inclusive-Paket für clevere Doppel-Sparer,
nur 39,85 inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2007-03-14 14:43 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-14 14:43 Re: [Xenomai-help] Howto catch SEGV signals in Xenomai M. Koehrer
-- strict thread matches above, loose matches on Subject: below --
2007-03-14 12:36 M. Koehrer
2007-03-14 13:26 ` Philippe Gerum
2007-03-13 14:51 M. Koehrer
2007-03-13 15:19 ` Philippe Gerum
2007-03-13 15:36 ` M. Koehrer
2007-03-13 15:25 ` Gilles Chanteperdrix
2007-03-13 15:52 ` Philippe Gerum
2007-03-13 19:21 ` Gilles Chanteperdrix
2007-03-13 22:34 ` Philippe Gerum
2007-03-13 22:37 ` Philippe Gerum
2007-03-14 8:17 ` M. Koehrer
2007-03-14 8:47 ` M. Koehrer
2007-03-14 10:35 ` Philippe Gerum
2007-03-14 11:18 ` M. Koehrer
2007-03-14 13:32 ` Philippe Gerum
2007-03-14 11:02 ` Philippe Gerum
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.