* [parisc-linux] Problem with threads..
@ 2001-12-29 9:24 Christian Suder
2001-12-29 12:42 ` andi
2001-12-30 6:44 ` Randolph Chung
0 siblings, 2 replies; 8+ messages in thread
From: Christian Suder @ 2001-12-29 9:24 UTC (permalink / raw)
To: parisc-linux
Hello,
the pan newsreader does not want to work on parisc platforms (neither the ones from the debian archive nor a version compiled from scratch). Digging a little bit I found the application hangs at pthread_mutex_lock and similar calls. Tried with various kernel versions over the last couple of months, never worked. Known issue ?
Thanks,
Christian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Problem with threads..
2001-12-29 9:24 [parisc-linux] Problem with threads Christian Suder
@ 2001-12-29 12:42 ` andi
2001-12-30 6:44 ` Randolph Chung
1 sibling, 0 replies; 8+ messages in thread
From: andi @ 2001-12-29 12:42 UTC (permalink / raw)
To: Christian Suder; +Cc: parisc-linux
On Sat, 2001-12-29 at 10:24, Christian Suder wrote:
> Hello,
>
> the pan newsreader does not want to work on parisc platforms (neither the ones from the debian archive nor a version compiled from scratch). Digging a little bit I found the application hangs at pthread_mutex_lock and similar calls. Tried with various kernel versions over the last couple of months, never worked. Known issue ?
I can confirm the problem here on my 712/60. DirectFB (www.directfb.org)
does not work either and hangs during first pthread_mutex_lock().
andi
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Problem with threads..
2001-12-29 9:24 [parisc-linux] Problem with threads Christian Suder
2001-12-29 12:42 ` andi
@ 2001-12-30 6:44 ` Randolph Chung
2001-12-30 7:58 ` Christian Suder
1 sibling, 1 reply; 8+ messages in thread
From: Randolph Chung @ 2001-12-30 6:44 UTC (permalink / raw)
To: Christian Suder; +Cc: parisc-linux
> the pan newsreader does not want to work on parisc platforms (neither the ones from the debian archive nor a version compiled from scratch). Digging a little bit I found the application hangs at pthread_mutex_lock and similar calls. Tried with various kernel versions over the last couple of months, never worked. Known issue ?
>
fwiw, what i've seen elsewhere is that on palinux, you have to make sure
the mutex is initialized before locking works. on other platforms
sometimes you can get away with doing a lock without a mutex init.
for another example see http://bugs.debian.org/124307
randolph
--
@..@ http://www.TauSq.org/
(----)
( >__< )
^^ ~~ ^^
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Problem with threads..
2001-12-30 6:44 ` Randolph Chung
@ 2001-12-30 7:58 ` Christian Suder
2001-12-30 8:49 ` Randolph Chung
2001-12-30 18:42 ` Randolph Chung
0 siblings, 2 replies; 8+ messages in thread
From: Christian Suder @ 2001-12-30 7:58 UTC (permalink / raw)
To: Randolph Chung; +Cc: parisc-linux
On Sat, 29 Dec 2001 22:44:47 -0800
"Randolph Chung" <randolph@tausq.org> wrote:
> > the pan newsreader does not want to work on parisc platforms (neither
the ones from the debian archive nor a version compiled from scratch).
Digging a little bit I found the application hangs at pthread_mutex_lock
and similar calls. Tried with various kernel versions over the last couple
of months, never worked. Known issue ?> >
>
> fwiw, what i've seen elsewhere is that on palinux, you have to make sure
> the mutex is initialized before locking works. on other platforms
> sometimes you can get away with doing a lock without a mutex init.
Yes !!! There was one of 4 mutex not initialized, added that one and now
it works.
Many thanks,
Christian
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Problem with threads..
2001-12-30 7:58 ` Christian Suder
@ 2001-12-30 8:49 ` Randolph Chung
2001-12-30 18:42 ` Randolph Chung
1 sibling, 0 replies; 8+ messages in thread
From: Randolph Chung @ 2001-12-30 8:49 UTC (permalink / raw)
To: Christian Suder; +Cc: parisc-linux
> > fwiw, what i've seen elsewhere is that on palinux, you have to make sure
> > the mutex is initialized before locking works. on other platforms
> > sometimes you can get away with doing a lock without a mutex init.
>
> Yes !!! There was one of 4 mutex not initialized, added that one and now
> it works.
Please follow the instructions at http://www.debian.org/Bugs/Reporting
and file a bug, and let the maintainer know what you changed to get pan
to work.
thanks!
randolph
--
@..@ http://www.TauSq.org/
(----)
( >__< )
^^ ~~ ^^
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Problem with threads..
2001-12-30 7:58 ` Christian Suder
2001-12-30 8:49 ` Randolph Chung
@ 2001-12-30 18:42 ` Randolph Chung
2001-12-30 21:55 ` andi
1 sibling, 1 reply; 8+ messages in thread
From: Randolph Chung @ 2001-12-30 18:42 UTC (permalink / raw)
To: parisc-linux
> > fwiw, what i've seen elsewhere is that on palinux, you have to make sure
> > the mutex is initialized before locking works. on other platforms
> > sometimes you can get away with doing a lock without a mutex init.
>
> Yes !!! There was one of 4 mutex not initialized, added that one and now
> it works.
Just to clarify...
hppa is the only platform supported by linuxthreads right now where we
initialize the mutex variable to 1 so that we can do locking using ldcw. On
other platforms, locks are initialized to 0 and locking is done using things
like test-and-set.
In general, you always need to call pthread_mutex_init for mutexes to
work. In the case of pan, the mutex variable is declared static, so it
is automatically initialized to 0.
randolph
--
@..@ http://www.TauSq.org/
(----)
( >__< )
^^ ~~ ^^
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [parisc-linux] Problem with threads..
2001-12-30 18:42 ` Randolph Chung
@ 2001-12-30 21:55 ` andi
2001-12-31 5:07 ` Randolph Chung
0 siblings, 1 reply; 8+ messages in thread
From: andi @ 2001-12-30 21:55 UTC (permalink / raw)
To: Randolph Chung; +Cc: parisc-linux
> Just to clarify...
>
> hppa is the only platform supported by linuxthreads right now where we
> initialize the mutex variable to 1 so that we can do locking using ldcw. On
> other platforms, locks are initialized to 0 and locking is done using things
> like test-and-set.
>
> In general, you always need to call pthread_mutex_init for mutexes to
> work. In the case of pan, the mutex variable is declared static, so it
> is automatically initialized to 0.
does that mean using the PTHREAD_MUTEX_INITIALIZER as defined in
phread.h (which DirectFB does) does not work on parisc, and we _have_ to
call pthreas_mutex_init()? Why does PTHREAD_MUTEX_INITIALIZER exist
then?
#define PTHREAD_MUTEX_INITIALIZER \
{0, 0, 0, PTHREAD_MUTEX_TIMED_NP, __LOCK_INITIALIZER}
andi
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2001-12-31 5:08 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-29 9:24 [parisc-linux] Problem with threads Christian Suder
2001-12-29 12:42 ` andi
2001-12-30 6:44 ` Randolph Chung
2001-12-30 7:58 ` Christian Suder
2001-12-30 8:49 ` Randolph Chung
2001-12-30 18:42 ` Randolph Chung
2001-12-30 21:55 ` andi
2001-12-31 5:07 ` Randolph Chung
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.