This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Statically initialising pthread attributes in dynamic dlls.


On 22/02/2010 10:33, Andrew West wrote:
> Trying to initialise a pthread attribute in a static variable seems to
> cause a segfault. I've attach a simple test case compiled using;
> 
> g++ -g mutex.cpp -o mutex.dll -lpthread

  You must have accidentally omitted "-shared" here, since it wouldn't link
otherwise.

> The only other bits of information I can give which might or might not
> be helpful are;

  Run "cygcheck -s -r -v > cygcheck.out" and then send that to the list *as an
attachment* (i.e. not inline in the body text).  TIA!

    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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]