[ace-users] Segmentation faultinACE_Select_Reactor_T::handle_error (with ACE 5.5.9)

Douglas C. Schmidt schmidt at dre.vanderbilt.edu
Fri Jun 29 13:48:06 CDT 2007


Hi,

>I'm getting -1 returned from remove_handler().  I assume that's bad.
>How can I find out why it's failing?

Set a breakpoint in your debugger and step through the code.

Thanks,

        Doug

>Jules.
>
>
>-----Original Message-----
>From: Steve Huston [mailto:shuston at riverace.com]=20
>Sent: Friday, June 29, 2007 2:05 PM
>To: Jules d'Entremont; ace-users at cse.wustl.edu
>Subject: RE: [ace-users] Segmentation
>faultinACE_Select_Reactor_T::handle_error (with ACE 5.5.9)
>
>Hi Jules,
>
>> Actually, I spoke too soon.  Here's something I got from valgrind:
>>=20
>> =3D=3D29898=3D=3D Invalid read of size 4
>
>Yup, that'd do it ;-)
>
>> This seems to indicate that a MessageReader (which is derived from
>> ACE_Event_Handler) gets deleted while still registered with the
>reactor.
>
>Yes, exactly.
>
>> But it should get cleaned up in handle_close():
>
>The evidence suggests that something remains not cleaned up. I'd have
>a closer look at the remove_handler() call with an eye toward how a
>handle could get left registered.
>
>-Steve
>=20
>


-- 
Dr. Douglas C. Schmidt                       Professor and Associate Chair
Electrical Engineering and Computer Science  TEL: (615) 343-8197
Vanderbilt University                        WEB: www.dre.vanderbilt.edu/~schmidt
Nashville, TN 37203                          NET: d.schmidt at vanderbilt.edu



More information about the Ace-users mailing list