Opened 12 years ago

Last modified 11 years ago

#492 closed defect

btrace kcon command panics on arm32. — at Version 2

Reported by: Jan Vesely Owned by: Jiri Svoboda
Priority: major Milestone: 0.6.0
Component: helenos/kernel/arm32 Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description (last modified by Jakub Jermář)

I tried to see btrace of compositor thread
kconsole> btrace 29
Scheduling thread stack trace.
kconsole> Thread 29 stack trace:
0x0002bd0c: 0x00000000()
0xe28db00c: test/thread/thread1.o:threads_fi?R???d'?()+0x6e5a61c8

######> Kernel panic on cpu0 due to a failed assertion: <######
waitq_sleep_timeout() at generic/src/synch/waitq.c:264:

(!PREEMPTION_DISABLED)
(PARAM_NON_BLOCKING(flags, usec))

THE=0x81956000: pe=1 thr=0x80564600 task=0x80624000 cpu=0x81955000 as=0x818c45a0 magic=0xfacefeed
cpu0: halted

Change History (3)

by Jan Vesely, 12 years ago

Attachment: am64-btrace-panic.png added

pnic on adm64

comment:1 by Jan Vesely, 12 years ago

Looks like btrace of live threads is a problem on other arches too.

comment:2 by Jakub Jermář, 11 years ago

Description: modified (diff)

The problem (on arm32) is that istate_get() in syscall_handler(), for some reason, returns an address, which is 8 bytes off the actual istate_t structure on the kernel stack.

Note: See TracTickets for help on using tickets.