[haiku-development] Re: timeout in acquire_sem_etc not working

Axel Dörfler  <axeld@xxxxxxxxxxxxxxxx> wrote:


> Marcus Overhagen <marcusoverhagen@xxxxxxxx> wrote:
> > It is doing a call to acquire_sem_etc with 100ms timeout, that never 
> > returnes. How is this possible?
> > 
> > I enabled IDE irq and semphore debugging, the full debug output is 
> > available at http://overhagen.de/> haiku/haiku-idedebug.txt
> 
> How often does this happen?
Always when booting with IDE compatiblility mode. Doesn't happen when using 
AHCI mode (that codepath isn't executed then).

> Is it 100% reproducible? And if so, always at the same location?
Yes. But when using AHCI and 4 cores, I get a couple of other problems, too.
Haiku is only stable atm when limiting to 2 CPUs and AHCI.

> Since the machine in question seems to be a 4 CPU system, and the 
> thread in question is still marked running, I would assume there is 
> some sort of race condition resulting in a busy loop dead lock. Since 
> the thread is still stuck in switch_sem_etc(), it would have been 
> interesting where exactly it is, and where the other threads are - most 
> likely, another one should be stuck, too.
Looks like nothing is stuck. +
I've attached more debug infos to http://dev.haiku-os.org/ticket/1689

regards
Marcus


Viel oder wenig? Schnell oder langsam? Unbegrenzt surfen + telefonieren
ohne Zeit- und Volumenbegrenzung? DAS TOP ANGEBOT FÜR ALLE NEUEINSTEIGER
Jetzt bei Arcor: günstig und schnell mit DSL - das All-Inclusive-Paket
für clevere Doppel-Sparer, nur  29,95 Euro  inkl. DSL- und ISDN-Grundgebühr!
http://www.arcor.de/rd/emf-dsl-2

Other related posts: