Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

OOF2 2.1.0 won't run threaded on NetBSD

1 view
Skip to first unread message

Ray Phillips

unread,
Mar 28, 2011, 3:47:27 AM3/28/11
to
Version 2.1.0 of OOF2 (http://www.ctcms.nist.gov/oof/oof2/) runs in
its GUI mode on NetBSD/i386 5.1 when its --unthreaded switch is used,
but if that's omitted neither of its windows appears, and top shows
that python is continuously using 99% of the CPU.

One of OOF2's developers has investigated and found that some test
code which works on Mac OS X and Linux doesn't operate properly on
NetBSD [1].

I wonder if anyone would be prepared to look into the problem for me,
please? If so, I could mail them the (6636 byte) .tgz file
containing the test code and the list of packages needed to install
and run OOF2.


Ray

[1]
------------------------------------------------------------
Hi Ray --

I've been investigating why oof2 won't run threaded on NetBSD. As a
sanity check, can you run the attached program and tell me what it
does?
Just untar it, cd to IDLELOCK2, run make, and then run "python
idlelock.py". It will bring up a window with a button in it. Push
the button. The program should print something like this:

threadbody
threadbody waiting for lock
idleCallBack
idleCallBack finished
threadbody finished
Back from threadbody

But on NetBSD it only prints the first four lines, and when you close
the window, the program hangs instead of exiting, and needs to be
killed manually.

When you press the button, the program starts a thread in Python.
The thread calls a C++ function, which creates a pthread mutex and
locks it. It then installs a gtk idle callback, and waits for the
mutex to be unlocked, which is the job of the idle callback. What's
happening is that the mutex *is* being unlocked, but the thread never
proceeds.

If you have any ideas of what might be wrong, they would be
appreciated. This code works on OS X and Linux, but not NetBSD.

Thanks.
-- Steve

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-...@muc.de

Joerg Sonnenberger

unread,
Mar 28, 2011, 7:43:19 AM3/28/11
to
On Mon, Mar 28, 2011 at 05:47:27PM +1000, Ray Phillips wrote:
> I wonder if anyone would be prepared to look into the problem for
> me, please? If so, I could mail them the (6636 byte) .tgz file
> containing the test code and the list of packages needed to install
> and run OOF2.

Sure.

Joerg

0 new messages