Skip to contentSkip to conversation

signaling to a thread waiting on an event in the kernel

Xenomai-help Yigal Goldberger 2 participants 3 messages Dec 28, 2009 – Dec 31, 2009

lore
Share & tools
lore
#0 lore raw

Hi,
CC'ing the mailing list .

Quoted 107 lines · Yigal Goldberger

From: Yigal Goldberger <[email protected]>
Subject: Re: [Xenomai-help] signaling to a thread waiting on an event in the kernel
To: "Philippe Gerum" <[email protected]>
Date: Monday, December 28, 2009, 6:01 PM
Hi Philippe,
Thanks for quickly responding .
My system is a powerpc based board ( MPC8272 by freesacle
).
The kernel is 2.6.29.4 .
Xenomai v2.4.8.

My app hangs on the RTDM syscall invoking rtdm_event_timedwait() from your
driver .(It does not return from this function call at all)
The system does not lock up badly . My so called Monitor process (the process that issues the kill(Pid,SIGTERM), functions well and communicates fine.
I'd like to mention that when the application process is not blocked (in normal operation) it does respond to the signal and terminates correctly , but when it is "stuck"| such as on the infinite event wait it becomes non responsive to external signals.

Thanks,
Yigal.

--- On Mon, 12/28/09, Philippe Gerum <[email protected]>

Quoted 2 lines · wrote:

From: Philippe Gerum <[email protected]>
Subject: Re: [Xenomai-help] signaling to a thread

waiting on an event in the kernel

Quoted 8 lines

To: "Yigal Goldberger" <[email protected]>
Cc: [email protected]
Date: Monday, December 28, 2009, 4:52 PM

Quoted 3 lines · Yigal Goldberger

Hi,

I want to have the ability to restart a process

at all

Quoted 2 lines

times.

Quoted 1 line

I have a situation where a thread is waiting on

an

Quoted 10 lines

event in the kernel with :

Quoted 3 lines

rtdm_event_timedwait(&args,0,NULL)

   - infinite wait (I need this infinite

wait ...)

Quoted 5 lines

and I cannot restart it with  :

kill(Pid,SIGTERM) .

Quoted 8 lines
Quoted 4 lines

from a different process .

Suggestions are most welcome.

Please be more specific:

- what happens when SIGTERM is sent, exactly? does

your app

Quoted 2 lines

hang on the
RTDM syscall invoking rtdm_event_timedwait() from

your

Quoted 3 lines

driver, or does
the entire system lock up badly?
- did you check whether rtdm_event_timedwait()

returned

Quoted 27 lines

with an error
code, such as -EINTR?
- which platform, whick kernel release, which Xenomai release are you
running?

Btw, rtdm_event_wait(&event) is a shorthand for
rtdm_event_timedwait(&event,0,NULL).

Quoted 11 lines

Yigal Goldberger.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#1 lore raw

Hi,
I found the issue - Nothing to do with the blocked thread (waiting on the signal ) . Just some bug in my application...It works just fine now.

Thanks,
Yigal Goldbnerger.

Quoted 144 lines · Yigal Goldberger

From: Yigal Goldberger <[email protected]>
Subject: [Xenomai-help] Fw: Re: signaling to a thread waiting on an event in the kernel
To: [email protected]
Date: Monday, December 28, 2009, 7:57 PM
Hi,
CC'ing the mailing list .

--- On Mon, 12/28/09, Yigal Goldberger <[email protected]>

Quoted 2 lines · wrote:

From: Yigal Goldberger <[email protected]>
Subject: Re: [Xenomai-help] signaling to a thread

waiting on an event in the kernel

Quoted 5 lines

To: "Philippe Gerum" <[email protected]>
Date: Monday, December 28, 2009, 6:01 PM Hi Philippe,
Thanks for quickly responding .
My system is a powerpc based board ( MPC8272 by

freesacle

Quoted 7 lines

).
The kernel is 2.6.29.4 .
Xenomai v2.4.8.

My app hangs on the RTDM syscall invoking rtdm_event_timedwait() from your
driver .(It does not return from this function call

at

Quoted 2 lines

all)
The system does not lock up badly . My so called

Monitor

Quoted 1 line

process (the process that issues the

kill(Pid,SIGTERM),

Quoted 2 lines

functions well and communicates fine.
I'd like to mention that when the application process

is

Quoted 1 line

not blocked (in normal operation) it does respond to

the

Quoted 1 line

signal and terminates correctly , but when it is

"stuck"|

Quoted 1 line

such as on the infinite event wait it becomes non

responsive

Quoted 10 lines

to external signals.

Thanks,
Yigal.

Quoted 5 lines

--- On Mon, 12/28/09, Philippe Gerum <[email protected]>

Quoted 2 lines · wrote:

From: Philippe Gerum <[email protected]>
Subject: Re: [Xenomai-help] signaling to a

thread

Quoted 9 lines

waiting on an event in the kernel

Quoted 8 lines

To: "Yigal Goldberger" <[email protected]>
Cc: [email protected]
Date: Monday, December 28, 2009, 4:52 PM

Quoted 3 lines · Yigal Goldberger

Hi,

I want to have the ability to restart a

process

Quoted 3 lines

at all

Quoted 2 lines

times.

Quoted 1 line

I have a situation where a thread is waiting

on

Quoted 19 lines

an

Quoted 18 lines

event in the kernel with :

Quoted 3 lines

rtdm_event_timedwait(&args,0,NULL)

   - infinite wait (I need this infinite

wait ...)

Quoted 9 lines

and I cannot restart it with  :

kill(Pid,SIGTERM) .

from a different process .

Suggestions are most welcome.

Please be more specific:

- what happens when SIGTERM is sent, exactly?

does

Quoted 3 lines

your app

Quoted 2 lines

hang on the
RTDM syscall invoking rtdm_event_timedwait()

from

Quoted 8 lines

your

Quoted 3 lines

driver, or does
the entire system lock up badly?
- did you check whether rtdm_event_timedwait()

returned

Quoted 3 lines

with an error
code, such as -EINTR?
- which platform, whick kernel release, which

Xenomai

Quoted 4 lines
Quoted 4 lines

release are you
running?

Btw, rtdm_event_wait(&event) is a shorthand

for

Quoted 10 lines
Quoted 10 lines

rtdm_event_timedwait(&event,0,NULL).

Quoted 8 lines

Yigal Goldberger.

_______________________________________________

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Quoted 9 lines
Quoted 5 lines
Signature · 1 line
Philippe.

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

#2 lore raw
Quoted 3 lines · Yigal Goldberger

Hi,
I found the issue - Nothing to do with the blocked thread (waiting on the signal ) . Just some bug in my application...It works just fine now.

Ok. Non-reg tests did not show any issue regarding this, here as well. So issue closed. Thanks for your feedback.

Quoted 158 lines

Thanks,
Yigal Goldbnerger.

Quoted 139 lines · Yigal Goldberger

From: Yigal Goldberger <[email protected]>
Subject: [Xenomai-help] Fw: Re: signaling to a thread waiting on an event in the kernel
To: [email protected]
Date: Monday, December 28, 2009, 7:57 PM
Hi,
CC'ing the mailing list .

--- On Mon, 12/28/09, Yigal Goldberger <[email protected]>

Quoted 2 lines · wrote:

From: Yigal Goldberger <[email protected]>
Subject: Re: [Xenomai-help] signaling to a thread

waiting on an event in the kernel

Quoted 5 lines

To: "Philippe Gerum" <[email protected]>
Date: Monday, December 28, 2009, 6:01 PM Hi Philippe,
Thanks for quickly responding .
My system is a powerpc based board ( MPC8272 by

freesacle

Quoted 7 lines

).
The kernel is 2.6.29.4 .
Xenomai v2.4.8.

My app hangs on the RTDM syscall invoking rtdm_event_timedwait() from your
driver .(It does not return from this function call

at

Quoted 2 lines

all)
The system does not lock up badly . My so called

Monitor

Quoted 1 line

process (the process that issues the

kill(Pid,SIGTERM),

Quoted 2 lines

functions well and communicates fine.
I'd like to mention that when the application process

is

Quoted 1 line

not blocked (in normal operation) it does respond to

the

Quoted 1 line

signal and terminates correctly , but when it is

"stuck"|

Quoted 1 line

such as on the infinite event wait it becomes non

responsive

Quoted 10 lines

to external signals.

Thanks,
Yigal.

Quoted 5 lines

--- On Mon, 12/28/09, Philippe Gerum <[email protected]>

Quoted 2 lines · wrote:

From: Philippe Gerum <[email protected]>
Subject: Re: [Xenomai-help] signaling to a

thread

Quoted 9 lines

waiting on an event in the kernel

Quoted 8 lines

To: "Yigal Goldberger" <[email protected]>
Cc: [email protected]
Date: Monday, December 28, 2009, 4:52 PM

Quoted 3 lines · Yigal Goldberger

Hi,

I want to have the ability to restart a

process

Quoted 3 lines

at all

Quoted 2 lines

times.

Quoted 1 line

I have a situation where a thread is waiting

on

Quoted 19 lines

an

Quoted 18 lines

event in the kernel with :

Quoted 3 lines

rtdm_event_timedwait(&args,0,NULL)

- infinite wait (I need this infinite

wait ...)

Quoted 9 lines

and I cannot restart it with :

kill(Pid,SIGTERM) .

from a different process .

Suggestions are most welcome.

Please be more specific:

- what happens when SIGTERM is sent, exactly?

does

Quoted 3 lines

your app

Quoted 2 lines

hang on the
RTDM syscall invoking rtdm_event_timedwait()

from

Quoted 8 lines

your

Quoted 3 lines

driver, or does
the entire system lock up badly?
- did you check whether rtdm_event_timedwait()

returned

Quoted 3 lines

with an error
code, such as -EINTR?
- which platform, whick kernel release, which

Xenomai

Quoted 4 lines
Quoted 4 lines

release are you
running?

Btw, rtdm_event_wait(&event) is a shorthand

for

Quoted 10 lines
Quoted 10 lines

rtdm_event_timedwait(&event,0,NULL).

Quoted 8 lines

Yigal Goldberger.

_______________________________________________

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Quoted 9 lines
Quoted 5 lines
Signature · 1 line
Philippe.
Quoted 5 lines

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.