On 10/05/2010 10:00, Marco Atzeri wrote: > The program works fine, with minor source change, > except the capability to dynamically load dlls to > extend the functionality. > > From the backtrace I have the impression that the loaded > library msh3.dll has a access problem to a constructor > "TheOperators" that is located in the calling libff.dll.
Ugh, this looks like a tricky one. I can't really guess at what the problem is from that backtrace, you'd need to look at what pointer is NULL and then try figure out where it came from; which could be something to do with order of running of ctors or something like that. > Program received signal SIGSEGV, Segmentation fault. > 0x66c83a12 in Polymorphic::Addp () from /usr/local/bin/libff.dll > (gdb) backtrace > #0 0x66c83a12 in Polymorphic::Addp () from /usr/local/bin/libff.dll > #1 0x624dbca1 in _fu952__TheOperators () from > /usr/local/lib/ff++/3.8/lib/msh3.dll > #2 0x624dcf1c in global constructors keyed to msh3.cpp () > from /usr/local/lib/ff++/3.8/lib/msh3.dll > #3 0x61020273 in per_module::run_ctors () from /usr/bin/cygwin1.dll > #4 0x00000000 in ?? () > Unfortunately my debug capability with gdb are very limited > so I don't understand if the software has an issue or > if the problem could be located in the cygwin1.dll. Well, I doubt that the process has forked here, so you probably won't be getting the double-pseudo-relocs problem we just found, but you should probably test with the latest cygwin snapshot just to be sure. Assuming, however, that that will probably not help, your best bet might be to step through "global constructors keyed to msh3.cpp" and see what it's calling; figure out what object it thinks it's constructing when it gets to "_fu952__TheOperators", and follow it into "Polymorphic::Addp" to see where it goes wrong. I'm quite busy at the moment but send me your patches/cygport/whatever off-list anyway. cheers, DaveK -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple