openssl coredump problem

2008-11-19 Thread Hirokazu Yamamoto
Hello. When using thread and openssl CRYPTO_set_locking_callback, application can core dump when it terminates. Please try http://bugs.python.org/file11620/reproduce.zip. (I don't have cygwin now, so I cannot get output of this) See how this affect python in http://bugs.python.org/issue3947. Th

crash if fork(2) from another thread

2008-09-27 Thread Hirokazu Yamamoto
# I've post mail, but it didn't show up in http://www.nabble.com/Cygwin-f12165.html. # Maybe it was not good to attach a file. So try again... I'm not familiar with pthread & fork, but I think following code should not crash. Is this expected behavior? #include #include #include #include voi

Re: crash if fork(2) from another thread

2008-09-28 Thread Hirokazu Yamamoto
> Why do people think that the fact that they sent email which never > made it to the list is interesting? > > Attaching a file is fine and is the preferred way of doing this. > Your problem is that you're using nabble. Use the actual > mailing list or gmane. Yes, I'm using actual mailing list. I

Re: crash if fork(2) from another thread

2008-09-28 Thread Hirokazu Yamamoto
> I think this is not allowed in here. You can only do async-signal-safe stuff > in the child. IO is AFAIK not in that category. Basically, the only thing you > can safely do in the child process is to call exec(). Thank you for reply. I found similar info in MacOSX doc. (in CAVEATS) http://devel

Re: crash if fork(2) from another thread

2008-09-29 Thread Hirokazu Yamamoto
>Your test case worked fine for me with Cygwin 1.7.x. I don't have a >copy of 1.5.x handy to test. > >> I don't see any reason why this shouldn't be allowed. You should > >> be able to do anything you want in a child process. > >I do not think that is true. As per > >

Re: crash if fork(2) from another thread

2008-09-29 Thread Hirokazu Yamamoto
> You still didn't explain what "crash" means, that was why I pointed you > at a web page which goes to some effort in trying to make it clear that > you should be descriptive when reporting problems. When I run ./main.exe $ ./main thread_func parent process (child pid = 1320) 14827 [main] main

Re: crash if fork(2) from another thread

2008-09-30 Thread Hirokazu Yamamoto
>>I also confirmed previous code worked fine with Cygwin 1.7. > >>But attached code hangs on Cygwin 1.7. (Actually this is what > >>test_3_join_in_forked_from_thread is doing) > > > >I can duplicate this. I'll investigate it as I have time. > > It should be fixed in the latest snapshot. Thanks, I