Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177800 - new ebuild for ASIO v0.3.7 including a double-delete fix
Summary: new ebuild for ASIO v0.3.7 including a double-delete fix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: C++ Team [disbanded]
URL: http://arcknowledge.com/lib.boost.asi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-09 14:30 UTC by Roman Le Négrate
Modified: 2007-07-12 23:17 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
asio-0.3.7-r1.ebuild (incl. bugfix patch & no more lengthy example+tests compiling) (asio-0.3.7-r1.ebuild.tar.bz2,2.42 KB, application/octet-stream)
2007-05-09 14:33 UTC, Roman Le Négrate
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roman Le Négrate 2007-05-09 14:30:43 UTC
The ASIO C++ library version 0.3.7 crashes on Linux after a double delete (`delete' called twice on the same pointer to a heap-allocated memory space) as reported in this mailing-list posting:
http://arcknowledge.com/lib.boost.asio.user/2006-12/msg00064.html

Christopher Kohlhoff, the ASIO developper, addressed this issue with the following patch:
http://asio.cvs.sourceforge.net/asio/asio/include/asio/detail/reactor_op_queue.hpp?r1=1.22&r2=1.23

I made a new ASIO ebuild, attached to this bug-entry, stamped 0.3.7-r1 which:
- applies the above patch to prevent the crash from happening,
- prevents the examples and unit test suites from being compiled & installed

Reproducible: Always

Steps to Reproduce:
1. code a server program making transfers long enough for the program to crash
2. connect a bunch of clients to it
3. wait

Actual Results:  
*** glibc detected *** double free or corruption (fasttop): 0x081334d0 ***
Aborted


Expected Results:  
No crash.

A patch fixing this bug is included in the attached new ebuild.
Comment 1 Roman Le Négrate 2007-05-09 14:33:07 UTC
Created attachment 118658 [details]
asio-0.3.7-r1.ebuild (incl. bugfix patch & no more lengthy example+tests compiling)

See the first post of this entry.
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2007-07-12 23:17:22 UTC
Fixed, thanks.