All of lore.kernel.org
 help / color / mirror / Atom feed
* core dump in pthread in mplayer in freebsd DomainU on Debian Linux Domain0
@ 2005-08-07 13:39 lepton
  2005-08-07 19:49 ` Kip Macy
  0 siblings, 1 reply; 4+ messages in thread
From: lepton @ 2005-08-07 13:39 UTC (permalink / raw)
  To: xen-devel

Hi!
	After I have installed freebsd port for xen, I tried some
	software on freebsd. I am a newbie of freebsd, I meet some
	problems in mplayer, I don't know wether the problem was a
	freebsd-xen "bug" or a freebsd "bug".

	When I compiled mplayer, it complained about pthread about
	"Fatal error 'Thread has returned from _thread_switch' at line
	1116 in file /usr/src/lib/libpthread/thread/thr_kern.c (errno =
	0)", it won't compile.

	Then I moved to use port to compile mplayer, then it can
	compile. I can use mplayer to play video without sound. But
	after I have configured mplayer to use nas to output sound.
	When I use mplayer, it will abort, and complain about 
	 "Fatal error 'Thread has returned from _thread_switch' at line
	1116 in file /usr/src/lib/libpthread/thread/thr_kern.c (errno =
	0)"

	I have tried the following program (paste from configure script
	of mplayer)

	#include <pthread.h>
	void* func(void *arg) { return arg; }
	int main(void) { pthread_t tid; return pthread_create (&tid, 0,
	func, 0) == 0 ? 0 : 1; }

	when you use gcc -o test test.c -pthread
	it will complain the same thing about pthread.

	when you use gcc -o test test.c -lc_r, the problem dispeared.

	Is pthread is broken on freebsd? or freebsd-xen? or I have do
	something wrong?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-08-08 11:56 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-08-07 13:39 core dump in pthread in mplayer in freebsd DomainU on Debian Linux Domain0 lepton
2005-08-07 19:49 ` Kip Macy
2005-08-08  0:47   ` lepton
2005-08-08 11:56   ` lepton

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.