https://bugs.dragonflybsd.org/https://bugs.dragonflybsd.org/favicon.ico?16293952082008-05-09T15:20:27ZDragonFlyBSD bugtrackerDragonFlyBSD - Bug #990: lang/python21 problemhttps://bugs.dragonflybsd.org/issues/990?journal_id=45612008-05-09T15:20:27Zhasso
<ul></ul><p>The problem is not the PTHREAD_SCOPE_SYSTEM or even attr, but the first <br />argument of the pthread_create() call. This trivial example runs fine:</p>
<p>#include <pthread.h></p>
<p>void *foo(void *parm) { return NULL; }</p>
<p>int main() {<br /> pthread_t thread;</p>
<pre><code>pthread_create(&thread, NULL, foo, NULL);<br /> return 0;<br />}</code></pre>
<p>But this one doesn't:</p>
<p>#include <pthread.h></p>
<p>void *foo(void *parm) { return NULL; }</p>
<p>int main() {<br /> pthread_create(NULL, NULL, foo, NULL);<br /> return 0;<br />}</p> DragonFlyBSD - Bug #990: lang/python21 problemhttps://bugs.dragonflybsd.org/issues/990?journal_id=45622008-05-09T16:21:03Zcorecode
<ul></ul><p>Python's fault. This example crashes on linux as well, so even the <br />biggest precedent doesn't allow passing NULL.</p>
<p>cheers<br /> simon</p> DragonFlyBSD - Bug #990: lang/python21 problemhttps://bugs.dragonflybsd.org/issues/990?journal_id=45642008-05-09T16:30:03Zhasso
<ul></ul><p>Well, I think that we should hang regardless what's right from side of Python <br />and what isn't.</p> DragonFlyBSD - Bug #990: lang/python21 problemhttps://bugs.dragonflybsd.org/issues/990?journal_id=58742009-01-21T03:02:47Zcorecode
<ul></ul><p>i believe i fixed this</p>