This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] core dump in pthread in mplayer in freebsd DomainU on Debian

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] core dump in pthread in mplayer in freebsd DomainU on Debian Linux Domain0
From: lepton <ytht.net@xxxxxxxxx>
Date: Sun, 7 Aug 2005 21:39:24 +0800
Delivery-date: Sun, 07 Aug 2005 17:00:34 +0000
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:subject:message-id:mime-version:content-type:content-disposition:user-agent; b=f0ZyNZous5UCLTpr+06dnz5smxfRtR04JECas2U2rpfMHpGSudNX9wZILv2IK9A/vKELcDuTYN6aS4jGG09TwKa8p0h4yMf/y0OwSkOX8MIM/fxjrqd9+uN6afbEj7JGfUf+lDYz/zWivwdNFnk8S8H9doUKoPMJZD0eaobGZ8U=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.9i
        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 =

        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?

Xen-devel mailing list