matrix65536 / cppthreadpool

Automatically exported from code.google.com/p/cppthreadpool
0 stars 0 forks source link

example crash #1

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile project (gcc version 4.3.2 (Debian 4.3.2-1))
2. run main example

What is the expected output? What do you see instead?
All Done!! Wow! That was a lot of work!
22 seconds elapsed
*** glibc detected *** ./main: corrupted double-linked list: 0x0899b0b0 ***
======= Backtrace: =========
/lib/i686/cmov/libc.so.6[0xb7d756b4]
/lib/i686/cmov/libc.so.6[0xb7d77603]
/lib/i686/cmov/libc.so.6(cfree+0x96)[0xb7d778b6]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f67281]
./test[0x8049045]
./test(__gxx_personality_v0+0x276)[0x8048cba]
/lib/i686/cmov/libc.so.6(__libc_start_main+0xe5)[0xb7d1d455]
./test(__gxx_personality_v0+0x5d)[0x8048aa1]
======= Memory map: ========

What version of the product are you using? On what operating system?
v1.0
Debian 4.0 Lenny

Please provide any additional information below.

Original issue reported on code.google.com by martin.s...@gmail.com on 22 Oct 2008 at 10:20

GoogleCodeExporter commented 9 years ago
The main function create a lot of SampleWorkerThreads using new. We know that an
object created by "new" should be destroyed by "delete". However, it seems that 
these
task objects are not deleted in the code. Should we not to deal with this case? 

Original comment by sheng...@gmail.com on 4 Jan 2009 at 6:43