KSE headache: Spinlock called when not threaded

From: Kyryll A Mirnenko (mirya_at_innovativemarketing.com.ua)
Date: 11/08/04

  • Next message: Louis LeBlanc: "Re: FBSD 2.5.1-p11 | Promise SATA150 TX2plus | Seagate B 200GB - BAD SUPERBLK / Machine freezes up etc"
    To: freebsd-questions@freebsd.org
    Date: Mon, 8 Nov 2004 20:39:56 +0000
    
    

    I found out some apps recompiled with KSE libpthread (not from ports, just by
    myself from original sources) are terminated with this message while worked
    fine for libc_r; here's the source (lib/libpthread/thr_spinlock.c):

    void
    _spinlock(spinlock_t *lck)
    {
            struct spinlock_extra *extra;

            if (!__isthreaded)
                    PANIC("Spinlock called when not threaded.");
            if (!initialized)
                    PANIC("Spinlocks not initialized.");
            /*
             * Try to grab the lock and loop if another thread grabs
             * it before we do.
             */
            if (lck->fname == NULL)
                    init_spinlock(lck);
            extra = (struct spinlock_extra *)lck->fname;
            pthread_mutex_lock(&extra->lock);
    }

    Removing the 1st check works for most apps, but some of 'em (xmms is the one)
    hang up there; can anyone tell me what can be wrong there?
    --------------
    Regards, Mirya
    ICQ #313898202
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"


  • Next message: Louis LeBlanc: "Re: FBSD 2.5.1-p11 | Promise SATA150 TX2plus | Seagate B 200GB - BAD SUPERBLK / Machine freezes up etc"

    Relevant Pages

    • Re: problem with EZ USB FX2
      ... Port B & D I believe are part of the GPIF. ... Read up on those ports.. ... i use vhdl code to make reset for ... void init_gpif; ...
      (comp.arch.embedded)
    • [PATCH] 2/2 : 8250 serial: dynamic port table from arch
      ... fills the list based on serial ports found in the OF device-tree. ... +void udbg_init_uart ... * The following define the access methods for the HUB6 card. ...
      (Linux-Kernel)
    • Re: Timeda 8-multiport adapter: only 2 ports available
      ... For ports 3-8, the MCR has a value that's not liked by ... Is it just a non-standard status bit that's set ... initialize ports from producer's sources: ...
      (freebsd-current)
    • Re: How to get available COM-ports
      ... > void CSerialCommunication::GetAvailableComPorts ... seperate validation function - try a CreateFileon each com port ... just want to show all possible com ports or all com ports that are in a ... Regards, ...
      (microsoft.public.vc.mfc)