SmallLonlyWolf / embox

Automatically exported from code.google.com/p/embox
0 stars 0 forks source link

dlist_debug_check assertion failed in timers_need_schedule #672

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.r12379,ppc/debug
2.patch conf/mods.config as follow:
$ diff conf/mods.config templates/ppc/debug/mods.config 
24d23
<   include embox.driver.tty.tty
32c31,32
< 

---
>   @Runlevel(3) include embox.init.start_script
>   //include embox.cmd.sh.tish
34,35d33
<   @Runlevel(3) include embox.cmd.sh.tish(prompt="$ ", rich_prompt_support=1, 
builtin_commands="cd export mount")
<   @Runlevel(3) include embox.init.start_script(shell_name="tish", 
tty_dev="ttyS0", input_buffer=80, shell_start=1)
3.run embox

What is the expected output? What do you see instead?
Embox kernel start
runlevel: init level is 0
    test: running embox.test.kernel.softirq_test ..... done
    unit: initializing embox.kernel.work: done
    unit: initializing embox.mem.static_heap: done
    unit: initializing embox.mem.heap_bm: done
    unit: initializing embox.driver.serial.i8250: done
    unit: initializing embox.driver.interrupt.ppc_intc: done
    unit: initializing embox.driver.clock.ppc_clk: done
    unit: initializing embox.kernel.time.jiffies: done
    unit: initializing embox.kernel.time.timer: done
    test: running embox.test.kernel.timer_test 

  ______
 |  ____|                                            __          __
 | |___  _ __ ___            ____  ____  ____  _____/ /   _____ / /
 |  ___|| '_ ` _ \          / __ \/ __ \/ __ \/ ___/ /   |_____| |
 | |____| | | | | |_ _ _   / /_/ / /_/ / /_/ (__  )_/    |_____| |
 |______|_| |_| |_(_|_|_)  \____/\____/ .___/____(_)           | |
                                     /_/                        \_\
 ASSERTION FAILED on CPU 0
    at src/util/dlist_debug.c:26
    in function __dlist_debug_check

(!poison || (void *) ~poison == head) && n->prev == head && p->next == head

    (
head: 0x00078d90, poison: 0x00000000
prev: 0x0009e000, n: 0x00078d90, p: 0x00078d90
next: 0x00078d90, n: 0x00078d90, p: 0x0009e000
)

Backtrace:
(gdb) bt
#0  arch_shutdown (mode=ARCH_SHUTDOWN_MODE_ABORT)
    at src/arch/ppc/kernel/arch.c:17
#1  0x000435cc in __assertion_handle_failure (
    point=0x75aa8 <__assertion_point.1538>)
    at src/lib/libc/assert/assert.c:63
#2  0x000479cc in __dlist_debug_check (head=0x78d90 <sys_timers_list>)
    at src/util/dlist_debug.c:17
#3  0x00005158 in dlist_empty (head=0x78d90 <sys_timers_list>)
    at src/include/util/dlist.h:125
#4  0x00005494 in timers_need_schedule ()
    at src/kernel/time/timer/strategy/head_timer.c:55
#5  0x00005674 in timer_strat_sched ()
    at src/kernel/time/timer/strategy/head_timer.c:90
#6  0x00022a48 in soft_clock_handler (softirq_nr=0, data=0x0)
    at src/kernel/time/timer.c:35
#7  0x00010fec in softirq_dispatch () at src/kernel/softirq.c:94
#8  0x00006560 in critical_dispatch_pending ()
    at src/kernel/critical.c:35
#9  0x000037f4 in irq_handler (irq=10)
---Type <return> to continue, or q <return> to quit---    at 
src/arch/ppc/kernel/irq_handler.c:30
#10 0x00003570 in irq_stub () at src/arch/ppc/kernel/irq_entry.S:17

Please use labels and text to provide additional information.
qemu 1.7.50, gcc 4.8.2

Original issue reported on code.google.com by ki.stfu on 15 Jan 2014 at 6:50

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r12396.

Original comment by ki.stfu on 16 Jan 2014 at 8:40

GoogleCodeExporter commented 9 years ago
fixed by r12396

Original comment by ki.stfu on 16 Jan 2014 at 8:41