Re: [Boost-users] Maybe a problem with boost::object_pool?
Caleb
Thanks for your answer.
I tried running the following program with valgrind but as you said
valgrind doesn't complain and I was unable to crash it.
Without valgrind sometimes it works fine, sometimes it crashes....
I tested it on 4 different machines. On all of them I had crashes. So I
doubt the memory is at fault.
Sometimes it requires 20+ threads to crash it. But it crashes always at
the same place.
Here is an example of simple program + purify trace.
I use Red Hat linux 3.2.3-47
Gcc version 3.2.3 20030502
Purify 2003a.05.15
Boost 1.32.0
#include
A program creates N threads that construct & destroy objects in an object pool. With N = 9, it crashes on linux
That program works fine here with 1, 2, 4, 8, and 9 threads on a 2-way RedHat AS3.1 machine here. I've tried running it with "valgrind" and I don't get any errors. You might try running a memory test on your PC like memtest86. Perhaps you have bad RAM. -- Caleb Epstein caleb dot epstein at gmail dot com _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users -------------------------------------------------------- If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/ --------------------------------------------------------
On 8/9/05, Labour, Matthieu (MLPRO SF)
I use Red Hat linux 3.2.3-47
Are you sure that is the version you're using? That doesn't look like a RedHat version number. What does "uname -a" tell you, and what is the contents of /etc/redhat-release? I have: Linux scsefpldcs0213 2.4.21-27.0.4.ELhugemem #1 SMP Sat Apr 16 18:22:53 EDT 2005 i686 i686 i386 GNU/Linux Red Hat Enterprise Linux AS release 3 (Taroon Update 4)
Gcc version 3.2.3 20030502
Perhaps the compiler is at fault here. Thats an old-ish version of GCC. I use 3.3.4. It could also be a buggy GNU libc or libstdc++ if you're on an older RedHat version. -- Caleb Epstein caleb dot epstein at gmail dot com
participants (2)
-
Caleb Epstein
-
Labour, Matthieu (MLPRO SF)