Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] need help with timer crash please
From: bnv (bnv_at_[hidden])
Date: 2009-03-26 18:29:37


 <bnv <at> nc.rr.com> writes:

> I'm seeing two distinct crashes (gdb output below) on expiration of a
> deadline timer, and could use some help identifying possible reasons.
>
> The timer has not been deleted. The timer expired once before and was later
> rescheduled using expires_from_now() and async_wait(). The timer is only
> accessed by threads in io_service::run(), and is protected by a mutex.

I've eliminated any issues due to multi-threading as a candidate by having just
one in io_service::run(), and am still seeing the crash.

One additional bit of information is that the timer is scheduled for the very
first time by the main process, before the worker thread enters
io_service::run(). Is there any problem with scheduling a timer with one thread
and then re-scheduling it with another?

-Brian


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net