[Paracomp-users] Paracomp crash when compiled in release mode
Brought to you by:
shreekumar
|
From: Shree K. <shr...@hp...> - 2008-04-10 16:15:09
|
Hi James,
I ran into the same problem which you faced : crash when paracomp is
compiled in release mode.
My system : an x86_64 machine running Fedora Core 8(x86_64). GCC version
4.1.2
Basically, any program using the library crashes, _if_ paracomp was
compiled in release mode. If paracomp is compiled in debug mode
"release=0" things move just fine.
I investigated this a bit, and found that a dlclose() in
loadCompositePlugin() (pcimpl.cpp) is causing the crash.
----------------------------------------------------------
using namespace paracomp;
@@ -236,7 +242,7 @@
// if the init function returns non-zero, then it cannot be used
if(((*initFunc)())!=0)
{
- dlclose(libHandle);
+ //dlclose(libHandle); // commenting this out gets rid of
the crash
return false;
}
----------------------------------------------------------
Seems to be a compiler related issue, since I don't see this on our RHEL
5 based system (running GCC 3.4.6).
James, do you remember what compiler version you saw the issue on ?
For now, I don't have a solution. Commenting out gets rid of the
problem. This will result in a small memory leak, but should be good to
keep people going.
Just something I thought everybody must know before we find a solution
to the problem.
Regards
-- Shree
|