Opened 17 years ago

Closed 16 years ago

#1511 closed bug (fixed)

PANIC: ASSERT FAILED (src/system/kernel/arch/x86/arch_thread.c:68): stack->index < 4

Reported by: marcusoverhagen Owned by: axeld
Priority: normal Milestone: R1
Component: System/Kernel Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

occured with hrev22394 (but might be related to the ahci driver)

PANIC: ASSERT FAILED (src/system/kernel/arch/x86/arch_thread.c:68): stack->index < 4

Welcome to Kernel Debugging Land... Running on CPU 0 kdebug> bt stack trace for thread 0xa1 "w>add-ons"

kernel stack: 0x947c4000 to 0x947c8000

user stack: 0x70249000 to 0x70289000

frame caller <image>:function + offset 947c70c0 (+ 52) 80083321 <kernel>:invoke_command + 0x0075 947c70f4 (+ 48) 80083572 <kernel>:kernel_debugger + 0x020e 947c7124 (+ 176) 80083609 <kernel>:panic + 0x002d 947c71d4 (+ 32) 8008c3ef <kernel>:x86_push_iframe + 0x0026 947c71f4 (+ 128) 8008b641 <kernel>:i386_handle_trap + 0x002a 947c7274 (+ 88) 8008e34e <kernel>:kernel_stack + 0x0005 (nearest) 947c72cc (+ 216) 8005b5ec <kernel>:_Z13vm_soft_faultmbb + 0x008e 947c73a4 (+ 48) 8005c412 <kernel>:vm_page_fault + 0x0034 947c73d4 (+ 144) 8008b878 <kernel>:i386_handle_trap + 0x0261 iframe at 0x947c746c (end = 0x947c74c0)

eax 0x815be82b ebx 0x908b0000 ecx 0xe8458000 edx 0xe8458d00 esi 0x0 edi 0xe8458d04 ebp 0x947c74bc esp 0x947c749c eip 0x80055fb4 eflags 0x10286 vector: 0xe, error code: 0x0

947c7464 (+ 88) 80055fb4 <kernel>:vm_area_lookup + 0x0026 947c74bc (+ 216) 8005b5ec <kernel>:_Z13vm_soft_faultmbb + 0x008e 947c7594 (+ 48) 8005c412 <kernel>:vm_page_fault + 0x0034 947c75c4 (+ 144) 8008b878 <kernel>:i386_handle_trap + 0x0261 iframe at 0x947c765c (end = 0x947c76b0)

eax 0x815be82b ebx 0x908b0000 ecx 0xe8458000 edx 0xe8458d00 esi 0x0 edi 0xe8458d04 ebp 0x947c76ac esp 0x947c768c eip 0x80055fb4 eflags 0x10286 vector: 0xe, error code: 0x0

947c7654 (+ 88) 80055fb4 <kernel>:vm_area_lookup + 0x0026 947c76ac (+ 216) 8005b5ec <kernel>:_Z13vm_soft_faultmbb + 0x008e 947c7784 (+ 48) 8005c412 <kernel>:vm_page_fault + 0x0034 947c77b4 (+ 144) 8008b878 <kernel>:i386_handle_trap + 0x0261 iframe at 0x947c784c (end = 0x947c78a0)

eax 0x815be82b ebx 0x908b0000 ecx 0x947c7000 edx 0xe8458d00 esi 0x908b0000 edi 0x947c790b ebp 0x947c789c esp 0x947c787c eip 0x80055fb4 eflags 0x10286 vector: 0xe, error code: 0x0

947c7844 (+ 88) 80055fb4 <kernel>:vm_area_lookup + 0x0026 947c789c (+ 40) 800560b5 <kernel>:_Z16test_lock_memoryP16vm_address_spacemRb + 0x0029 947c78c4 (+ 96) 8005c2a7 <kernel>:lock_memory + 0x0087 947c7924 (+ 64) 8026ae79 <block_io>:block_io_readv + 0x0039 947c7964 (+ 144) 80043677 <kernel>:_Z16devfs_read_pagesPvS_S_xPK5iovecmPmb + 0x00f7 947c79f4 (+ 64) 80047fa8 <kernel>:vfs_read_pages + 0x0034 947c7a34 (+ 752) 80063b10 <kernel>:_Z8pages_ioP14file_cache_refxPK5iovecmPmb + 0x00c0 947c7d24 (+ 32) 80063f73 <kernel>:file_cache_read_pages + 0x001f 947c7d44 (+ 64) 80259605 <bfs>:_Z14bfs_read_pagesPvS_S_xPK5iovecmPmb + 0x00fb 947c7d84 (+ 64) 80047fa8 <kernel>:vfs_read_pages + 0x0034 947c7dc4 (+ 64) 80065024 <kernel>:_Z10store_readP8vm_storexPK5iovecmPmb + 0x0032 947c7e04 (+ 224) 8005b980 <kernel>:_Z13vm_soft_faultmbb + 0x0422 947c7ee4 (+ 48) 8005c412 <kernel>:vm_page_fault + 0x0034 947c7f14 (+ 144) 8008b878 <kernel>:i386_handle_trap + 0x0261 iframe at 0x947c7fac (end = 0x947c8000)

eax 0x4 ebx 0x6232a4 ecx 0x70288af0 edx 0x0 esi 0x70288af0 edi 0x18106b10 ebp 0x70288acc esp 0x947c7fdc eip 0x5cb480 eflags 0x10206 user esp 0x70288a90 vector: 0xe, error code: 0x4

947c7fa4 (+ 0) 005cb480 </boot/beos/system/lib/libtracker.so@0x00498000>:unknown + 0x133480 70288acc (+ 96) 005895fc </boot/beos/system/lib/libtracker.so@0x00498000>:unknown + 0xf15fc 70288b2c (+ 128) 0058b138 </boot/beos/system/lib/libtracker.so@0x00498000>:unknown + 0xf3138 70288bac (+ 64) 0051c1b0 </boot/beos/system/lib/libtracker.so@0x00498000>:unknown + 0x841b0 70288bec (+ 48) 0051b060 </boot/beos/system/lib/libtracker.so@0x00498000>:unknown + 0x83060 70288c1c (+ 128) 002b6226 </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb4226 70288c9c (+ 32) 002b6273 </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb4273 70288cbc (+ 640) 0035d175 </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0x15b175 70288f3c (+ 96) 00359904 </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0x157904 70288f9c (+ 32) 002b79ee </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb59ee 70288fbc (+ 32) 0064690e </boot/beos/system/lib/libroot.so@0x00625000>:unknown + 0x2190e 70288fdc (+ 0) 70288fec 1416:w>TrackerWindow_a1_stack@0x70249000 + 0x3ffec kdebug>

Change History (3)

comment:1 by marcusoverhagen, 17 years ago

The problem happens less frequently when underclocking the CPU to 900 MHz

Here are some other back traces for the same ASSERT, made at full CPU speed.

CPU 1 halted!
PANIC: ASSERT FAILED (src/system/kernel/arch/x86/arch_thread.c:68): stack->index < 4

Welcome to Kernel Debugging Land...
Running on CPU 0
kdebug> bt
stack trace for thread 0xac "w>TrackerWindow"
    kernel stack: 0x90707000 to 0x9070b000
      user stack: 0x70000000 to 0x70040000
frame            caller     <image>:function + offset
9070a5f0 (+  52) 80083321   <kernel>:invoke_command + 0x0075
9070a624 (+  48) 80083572   <kernel>:kernel_debugger + 0x020e
9070a654 (+ 176) 80083609   <kernel>:panic + 0x002d
9070a704 (+  32) 8008c3ef   <kernel>:x86_push_iframe + 0x0026
9070a724 (+ 128) 8008b641   <kernel>:i386_handle_trap + 0x002a
9070a7a4 (+  88) 8008e34e   <kernel>:kernel_stack + 0x0005 (nearest)
9070a7fc (+ 216) 8005b5ec   <kernel>:_Z13vm_soft_faultmbb + 0x008e
9070a8d4 (+  48) 8005c412   <kernel>:vm_page_fault + 0x0034
9070a904 (+ 144) 8008b878   <kernel>:i386_handle_trap + 0x0261
iframe at 0x9070a99c (end = 0x9070a9f0)
 eax 0x815be82b     ebx 0x908b0000      ecx 0xe8458000   edx 0xe8458d00
 esi 0x0            edi 0xe8458d04      ebp 0x9070a9ec   esp 0x9070a9cc
 eip 0x80055fb4  eflags 0x10286
 vector: 0xe, error code: 0x0
9070a994 (+  88) 80055fb4   <kernel>:vm_area_lookup + 0x0026
9070a9ec (+ 216) 8005b5ec   <kernel>:_Z13vm_soft_faultmbb + 0x008e
9070aac4 (+  48) 8005c412   <kernel>:vm_page_fault + 0x0034
9070aaf4 (+ 144) 8008b878   <kernel>:i386_handle_trap + 0x0261
iframe at 0x9070ab8c (end = 0x9070abe0)
 eax 0x815be82b     ebx 0x908b0000      ecx 0xe8d44000   edx 0xe8458d00
 esi 0x0            edi 0xe8d44595      ebp 0x9070abdc   esp 0x9070abbc
 eip 0x80055fb4  eflags 0x10286
 vector: 0xe, error code: 0x0
9070ab84 (+  88) 80055fb4   <kernel>:vm_area_lookup + 0x0026
9070abdc (+ 216) 8005b5ec   <kernel>:_Z13vm_soft_faultmbb + 0x008e
9070acb4 (+  48) 8005c412   <kernel>:vm_page_fault + 0x0034
9070ace4 (+ 144) 8008b878   <kernel>:i386_handle_trap + 0x0261
iframe at 0x9070ad7c (end = 0x9070add0)
 eax 0x1            ebx 0xe8d44589      ecx 0x93f5f000   edx 0xe8d44595
 esi 0x1            edi 0x9466c7b5      ebp 0x9070ade4   esp 0x9070adac
 eip 0x800911d5  eflags 0x10286
 vector: 0xe, error code: 0x2
9070ad74 (+ 112) 800911d5   <kernel>:atomic_add + 0x0008 (nearest)
9070ade4 (+  48) 80059625   <kernel>:vm_area_get_locked_cache + 0x002b
9070ae14 (+ 208) 8005b691   <kernel>:_Z13vm_soft_faultmbb + 0x0133
9070aee4 (+  48) 8005c412   <kernel>:vm_page_fault + 0x0034
9070af14 (+ 144) 8008b878   <kernel>:i386_handle_trap + 0x0261
iframe at 0x9070afac (end = 0x9070b000)
 eax 0x3f           ebx 0x6c0100        ecx 0x18189ba0   edx 0x18189ba0
 esi 0x1818a068     edi 0x9             ebp 0x7003f75c   esp 0x9070afdc
 eip 0x64f6dc    eflags 0x10202    user esp 0x7003f734
 vector: 0xe, error code: 0x6
9070afa4 (+   0) 0064f6dc   </boot/beos/system/lib/libroot.so@0x00625000>:unknown + 0x2a6dc
7003f75c (+  48) 0064fc76   </boot/beos/system/lib/libroot.so@0x00625000>:unknown + 0x2ac76
7003f78c (+  80) 0064febc   </boot/beos/system/lib/libroot.so@0x00625000>:unknown + 0x2aebc
7003f7dc (+  48) 006510d7   </boot/beos/system/lib/libroot.so@0x00625000>:unknown + 0x2c0d7
7003f80c (+  32) 002bbe9a   </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb9e9a
7003f82c (+  32) 002bbf7b   </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb9f7b
7003f84c (+  48) 002bbfac   </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb9fac
7003f87c (+ 320) 00517eae   </boot/beos/system/lib/libtracker.so@0x00498000>:unknown + 0x7feae
7003f9bc (+ 736) 0051cbf6   </boot/beos/system/lib/libtracker.so@0x00498000>:unknown + 0x84bf6
7003fc9c (+  32) 002b6282   </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb4282
7003fcbc (+ 640) 0035d175   </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0x15b175
7003ff3c (+  96) 00359904   </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0x157904
7003ff9c (+  32) 002b79ee   </boot/beos/system/lib/libbe.so@0x00202000>:unknown + 0xb59ee
7003ffbc (+  32) 0064690e   </boot/beos/system/lib/libroot.so@0x00625000>:unknown + 0x2190e
7003ffdc (+   0) 7003ffecPANIC: ASSERT FAILED (src/system/kernel/arch/x86/arch_thread.c:68): stack->index < 4
CPU 0 halted!
PANIC: ASSERT FAILED (src/system/kernel/arch/x86/arch_thread.c:68): stack->index < 4

Welcome to Kernel Debugging Land...
Running on CPU 1
kdebug> sc
stack trace for thread 0x33 "main_mime"
    kernel stack: 0x803d7000 to 0x803db000
      user stack: 0x70082000 to 0x700c2000
frame            caller     <image>:function + offset
803d9c60 (+  52) 80083321   <kernel>:invoke_command + 0x0075
803d9c94 (+  48) 80083572   <kernel>:kernel_debugger + 0x020e
803d9cc4 (+ 176) 80083609   <kernel>:panic + 0x002d
803d9d74 (+  32) 8008c3ef   <kernel>:x86_push_iframe + 0x0026
803d9d94 (+ 128) 8008b641   <kernel>:i386_handle_trap + 0x002a
803d9e14 (+  88) 8008e34e   <kernel>:kernel_stack + 0x0005 (nearest)
803d9e6c (+ 216) 8005b5ec   <kernel>:_Z13vm_soft_faultmbb + 0x008e
803d9f44 (+  48) 8005c412   <kernel>:vm_page_fault + 0x0034
803d9f74 (+ 144) 8008b878   <kernel>:i386_handle_trap + 0x0261
iframe at 0x803da00c (end = 0x803da060)
 eax 0x815be82b     ebx 0x908b0000      ecx 0xe8458000   edx 0xe8458d00
 esi 0x0            edi 0xe8458d04      ebp 0x803da05c   esp 0x803da03c
 eip 0x80055fb4  eflags 0x10286
 vector: 0xe, error code: 0x0
803da004 (+  88) 80055fb4   <kernel>:vm_area_lookup + 0x0026
803da05c (+ 216) 8005b5ec   <kernel>:_Z13vm_soft_faultmbb + 0x008e
803da134 (+  48) 8005c412   <kernel>:vm_page_fault + 0x0034
803da164 (+ 144) 8008b878   <kernel>:i386_handle_trap + 0x0261
iframe at 0x803da1fc (end = 0x803da250)
 eax 0x815be82b     ebx 0x908b0000      ecx 0xe8458000   edx 0xe8458d00
 esi 0x0            edi 0xe8458d04      ebp 0x803da24c   esp 0x803da22c
 eip 0x80055fb4  eflags 0x10286
 vector: 0xe, error code: 0x0
803da1f4 (+  88) 80055fb4   <kernel>:vm_area_lookup + 0x0026
803da24c (+ 216) 8005b5ec   <kernel>:_Z13vm_soft_faultmbb + 0x008e
803da324 (+  48) 8005c412   <kernel>:vm_page_fault + 0x0034
803da354 (+ 144) 8008b878   <kernel>:i386_handle_trap + 0x0261
iframe at 0x803da3ec (end = 0x803da440)
 eax 0x815be82b     ebx 0x908b0000      ecx 0xa0243000   edx 0xe8458d00
 esi 0x908b0000     edi 0x803da4ab      ebp 0x803da43c   esp 0x803da41c
 eip 0x80055fb4  eflags 0x10286
 vector: 0xe, error code: 0x0
803da3e4 (+  88) 80055fb4   <kernel>:vm_area_lookup + 0x0026
803da43c (+  40) 800560b5   <kernel>:_Z16test_lock_memoryP16vm_address_spacemRb + 0x0029
803da464 (+  96) 8005c2a7   <kernel>:lock_memory + 0x0087
803da4c4 (+ 192) 8026a979   <block_io>:block_io_readwrite + 0x0495
803da584 (+  48) 8026ae0c   <block_io>:block_io_readv_int + 0x0025
803da5b4 (+  48) 8026ae3e   <block_io>:block_io_read + 0x002b
803da5e4 (+  48) 80055511   <kernel>:_ZN11IOScheduler7ProcessER9IORequest + 0x0047
803da614 (+ 128) 80043546   <kernel>:_Z10devfs_readPvS_S_xS_Pm + 0x00d4
803da694 (+  48) 80048084   <kernel>:_Z9file_readP15file_descriptorxPvPm + 0x002e
803da6c4 (+  64) 8004715f   <kernel>:_kern_read + 0x009f
803da704 (+  48) 800960f8   <kernel>:read_pos + 0x0036
803da734 (+  80) 80061443   <kernel>:_Z16get_cached_blockP11block_cachexPbb + 0x00f3
803da784 (+  64) 80061583   <kernel>:_Z25get_writable_cached_blockP11block_cachexxxlb + 0x0063
803da7c4 (+  80) 80061f5a   <kernel>:block_cache_get_writable_etc + 0x00a2
803da814 (+  48) 80061fb3   <kernel>:block_cache_get_writable + 0x001f
803da844 (+  96) 8024323d   <bfs>:_ZN10CachedNode13InternalSetToEP11Transactionx + 0x013b
803da8a4 (+  48) 80243323   <bfs>:_ZN10CachedNode19SetToWritableHeaderER11Transaction + 0x0065
803da8d4 (+  80) 80243ab1   <bfs>:_ZN9BPlusTree5SetToER11TransactionP5Inodel + 0x0095
803da924 (+  32) 80243c72   <bfs>:_ZN9BPlusTreeC1ER11TransactionP5Inodel + 0x0056
803da944 (+ 112) 8024afe7   <bfs>:_ZN14InodeAllocator10CreateTreeEv + 0x005d
803da9b4 (+ 208) 8025029e   <bfs>:_ZN5Inode6CreateER11TransactionPS_PKclimPbPxPS2_ + 0x0544
803daa84 (+ 112) 802506df   <bfs>:_ZN5Inode15CreateAttributeER11TransactionPKcmPPS_ + 0x004f
803daaf4 (+ 384) 802509f4   <bfs>:_ZN5Inode14WriteAttributeER11TransactionPKclxPKhPm + 0x0228
803dac74 (+  64) 80247877   <bfs>:_ZN9Attribute5WriteER11TransactionP11attr_cookiexPKhPm + 0x0055
803dacb4 (+ 128) 80259d59   <bfs>:_Z14bfs_write_attrPvS_S_xPKvPm + 0x0079
803dad34 (+  64) 80048457   <kernel>:_Z10attr_writeP15file_descriptorxPKvPm + 0x0043
803dad74 (+  64) 80047592   <kernel>:_user_write + 0x00b2
803dadb4 (+ 368) 80038c93   <kernel>:syscall_dispatcher + 0x0e59
803daf24 (+ 128) 8008b92c   <kernel>:i386_handle_trap + 0x0315
iframe at 0x803dafac (end = 0x803db000)
 eax 0x65           ebx 0x576100        ecx 0x0          edx 0x0
 esi 0xd            edi 0x1802ff5b      ebp 0x700c1c3c   esp 0x803dafdc
 eip 0xffff0102  eflags 0x216
 vector: 0x63, error code: 0x0
803dafa4 (+   0) ffff0102
700c1c3c (+  64) 003bb01e   </boot/beos/system/lib/libbe.so@0x00245000>:unknown + 0x17601e
700c1c7c (+ 144) 003cf88d   </boot/beos/system/lib/libbe.so@0x00245000>:unknown + 0x18a88d
700c1d0c (+  48) 003cf9da   </boot/beos/system/lib/libbe.so@0x00245000>:unknown + 0x18a9da
700c1d3c (+ 224) 0021e552   </boot/beos/system/servers/registrar@0x00200000>:unknown + 0x1e552
700c1e1c (+ 288) 0021e822   </boot/beos/system/servers/registrar@0x00200000>:unknown + 0x1e822
700c1f3c (+  32) 002f9282   </boot/beos/system/lib/libbe.so@0x00245000>:unknown + 0xb4282
700c1f5c (+  64) 002fa924   </boot/beos/system/lib/libbe.so@0x00245000>:unknown + 0xb5924
700c1f9c (+  32) 002fa9ee   </boot/beos/system/lib/libbe.so@0x00245000>:unknown + 0xb59ee
700c1fbc (+  32) 004fc90e   </boot/beos/system/lib/libroot.so@0x004db000>:unknown + 0x2190e
700c1fdc (+   0) 700c1fec   346:main_mime_33_stack@0x70082000 + 0x3ffec
kdebug>

comment:2 by marcusoverhagen, 17 years ago

This problem is not reproduceable with GCC 2.95.3, only with GCC4

comment:3 by axeld, 16 years ago

Resolution: fixed
Status: newclosed

Seems to be gone, too.

Note: See TracTickets for help on using tickets.