Re: [robocup-rescue-s] && questions about sigpause

From: David Ojeda (david@gia.usb.ve)
Date: Wed 17 Aug 2005 - 21:34:31 GMT


Hello,

I am developing a highly configurable python script launcher for the
robocup rescue system and came up with a problem like that. The kernel
just waits for something and does not start the simulation.
After several days of frustration I discovered that the problem was
that the kernel waits for a SIGUSR1 that sometimes is not "signaled"
at all.
Then I noticed the use of sigpause() in the file System.cxx. checking the
manual pages I found out this beatiful :P description:
DESCRIPTION
       Don't use this function. Use sigsuspend(2) instead.
I decided to delete/comment the sigpause line and replace it with:
              sigset_t mask;
              sigemptyset (&mask);
              sigaddset (&mask, SIGUSR1);
              sigsuspend (&mask);
Recompiled the kernel and the problem is now solved but I am wondering
if this replacement is accurate, does anyone knows something about this?
I don't know if this is the same problem you are having, I never
encountered this problems using all.sh, it only happens to me
when exec'ing from a python process.

Good luck,
David Ojeda
Universidad Simon Bolivar
Venezuela

On Mon, Aug 15, 2005 at 11:22:53PM +0200, sendmails@gmx.de wrote:
>
> Hi everyone!
>
> The simulator is running (all.sh, newest release) but no time elapses:
> --> Time:0 Score:98.00000
> The Agents are visible but do not act.
> Nothing seems to be calculated and the fire window stops after:
> warning: ignoring odd wall at building 64993858
> loaded radiation sample file "108541446800.rays"
> grid cell size=5000mm, x*y=67*88=5896
> sending SK_ACKNOWLEDGE..ok
>
> The kernel window says several times:
> free agents = 0, 10, 1, 5, 1, 10, 1 no ack=0
> And stops with:
> free a
>
> How can I start the simulation?
>
> Thank you!
>
> Til
>
> --
> Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
> Satte Provisionen f?r GMX Partner: http://www.gmx.net/de/go/partner
> _______________________________________________
> robocup-rescue-s mailing list
> robocup-rescue-s@mailman.cc.gatech.edu
> https://mailman.cc.gatech.edu/mailman/listinfo/robocup-rescue-s
> _______________________________________________
> rcrss mailing list
> rcrss@gia.usb.ve
> http://www.gia.usb.ve/mailman/listinfo/rcrss

-- 
David Ojeda A
david@ac.labf.usb.ve | david@gia.usb.ve
Linux Registered User #355562

_______________________________________________ robocup-rescue-s mailing list robocup-rescue-s@mailman.cc.gatech.edu https://mailman.cc.gatech.edu/mailman/listinfo/robocup-rescue-s



This archive was generated by hypermail 2.1.3 : Wed 17 Aug 2005 - 22:00:40 GMT