1 Nov 2010 13:33
Re: [solved] segmentation fault on dlopen
Katharina Haselhorst <brandlk <at> Mathematik.Uni-Marburg.de>
2010-11-01 12:33:07 GMT
2010-11-01 12:33:07 GMT
Hello again :) I solved the issue: my machine failed to use the fPIC flag corretly when compiling the libcppcsp2 library and hence produced position dependent code which resulted in a segmentation fault when included in my shared libaray. Strangly enough my machine also failed to produce an error when linking my shared library (which other machines DID) against the position dependent code. Now it seems to work fine. Thanks for you help! Regards, Kathi Haselhorst On 10/31/2010 11:05 AM, Katharina Haselhorst wrote: > Hello, > > On 10/29/2010 11:14 PM, Lakshmanan Suryanarayanan wrote: >> Are libtorrent and libcppcsp2 linking against different versions of boost by >> any chance? >> In an unrelated combination of libraries linked against different versions >> of boost, we had dl_open related segfaults from boost. >> > > libcppcsp2 is not built as a shared library (compilation results in a .a > file), however it is only using parts of boost, that are contained > within the boost headers and not using the parts of the library which > require compilation. Hence, libcppcs2 has no runtime dependency on boost > (and therefor not linked against it). But I used the same boost version > for compiling both libraries. Might it be a problem that I combine a > shared library and a non shared library into a new shared one (I tried > to give the extra -fPIC flag to the CPP compiler when building(Continue reading)
RSS Feed