Ticket #1689 (new bug)

Opened 5 months ago

Last modified 4 months ago

acquire_sem doesn't timeout

Reported by: marcusoverhagen Assigned to: marcusoverhagen
Priority: blocker Milestone: R1/alpha1
Component: System/Kernel Version: R1 development
Cc: Platform: All

Description

acquire_sem doesn't timeout after 100ms in the ide stack.

This is reproduceable with r23209 and earlier, happens with
4 cores, and also when SMP is disabled by boot menu.

Attachments

haiku-smp-prob12.txt (109.7 kB) - added by marcusoverhagen on 01/01/08 15:15:12.
test with 4 cores active
haiku-smp-prob13.txt (67.8 kB) - added by marcusoverhagen on 01/01/08 15:15:36.
test with SMP disabled
haiku-smp-prob14.txt (97.9 kB) - added by marcusoverhagen on 01/01/08 18:31:39.
retest 1 with syslog disabled
haiku-smp-prob15.txt (66.8 kB) - added by marcusoverhagen on 01/01/08 18:31:55.
retest 2 with syslog disabled
haiku-smp-prob16.txt (70.0 kB) - added by marcusoverhagen on 01/01/08 18:32:11.
retest 3 with syslog disabled
interrupts.txt (6.0 kB) - added by marcusoverhagen on 01/01/08 18:42:16.
Interrupts

Change History

01/01/08 15:15:12 changed by marcusoverhagen

  • attachment haiku-smp-prob12.txt added.

test with 4 cores active

01/01/08 15:15:36 changed by marcusoverhagen

  • attachment haiku-smp-prob13.txt added.

test with SMP disabled

01/01/08 16:59:55 changed by axeld

So it's inside dprintf_args() and never returns from there?
What the hell is it doing there? Is it possible that writing to the syslog is the problem here?

01/01/08 18:31:39 changed by marcusoverhagen

  • attachment haiku-smp-prob14.txt added.

retest 1 with syslog disabled

01/01/08 18:31:55 changed by marcusoverhagen

  • attachment haiku-smp-prob15.txt added.

retest 2 with syslog disabled

01/01/08 18:32:11 changed by marcusoverhagen

  • attachment haiku-smp-prob16.txt added.

retest 3 with syslog disabled

01/01/08 18:34:36 changed by marcusoverhagen

I disabled syslog and retried three times. First try was different, but 2 and 3 get stuck at the same point.

01/01/08 18:42:16 changed by marcusoverhagen

  • attachment interrupts.txt added.

Interrupts

01/01/08 18:44:11 changed by marcusoverhagen

I think it is quite likely that the IDE stack never acknowleges the IRQ 11, and that is the reason why the system is stuck at the restore_interrupts() after dprintf.

I'll have a look at that.

01/10/08 16:29:14 changed by axeld

  • owner changed from axeld to marcusoverhagen.