kayws426 / embox

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

tish in powerpc/microblaze #598

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.ppc/debug, r9481
2.include only tish shell im mods.conf:
 29     @Runlevel(3) include embox.init.start_script
 30     include embox.cmd.sh.tish
 31     //include embox.cmd.shell
3.run embox and before you can typing anything you will see:

What is the expected output? What do you see instead?
Starting shell [] at device []
loading start script:
embox>
ASSERTION FAILED at ./src/include/../kernel/thread/state_impl.h : 96,
    in function thread_state_do_outcpu:

thread_state_oncpu(state)
kernel debug panic

BACKTRACE:
#0  arch_shutdown (mode=ARCH_SHUTDOWN_MODE_ABORT)
    at src/arch/ppc/kernel/arch.c:17
#1  0x000435f4 in __assertion_handle_failure (
    point=0x64fa8 <__assertion_point.2368>) at src/lib/assert.c:36
#2  0x0001d3e0 in thread_state_do_outcpu (state=0)
    at ./src/include/../kernel/thread/state_impl.h:96
#3  0x0001e1a0 in runq_switch (rq=0x8cbac <rq>)
    at src/kernel/thread/sched_strategy/simple_queue.c:198
#4  0x0001c30c in sched_switch () at src/kernel/thread/sched.c:326
#5  0x00005d48 in critical_dispatch_pending () at src/kernel/critical.c:35
#6  0x0000379c in irq_handler (irq=10) at src/arch/ppc/kernel/irq_handler.c:30
#7  0x00003578 in irq_stub () at src/arch/ppc/kernel/irq_entry.S:17

---------------------------------------------------------------------
or that:
Starting shell [] at device []
loading start script:
embox>
ASSERTION FAILED at src/kernel/thread/sched.c : 190,
    in function sched_sleep_locked:

thread_state_running(current->state)
kernel debug panic

BACKTRACE:
#0  arch_shutdown (mode=ARCH_SHUTDOWN_MODE_ABORT)
    at src/arch/ppc/kernel/arch.c:17
#1  0x000435f4 in __assertion_handle_failure (
    point=0x6495c <__assertion_point.2769>) at src/lib/assert.c:36
#2  0x0001bc64 in sched_sleep_locked (sq=0x8ca38 <diag_uart+100>, 
    timeout=4294967295) at src/kernel/thread/sched.c:190
#3  0x0001abe4 in event_wait (e=0x8ca38 <diag_uart+100>, timeout=4294967295)
    at src/kernel/thread/event.c:23
#4  0x000195c0 in tty_wait_input (t=0x8c9ec <diag_uart+24>)
    at src/drivers/tty/tty.c:288
#5  0x000196d4 in tty_read (t=0x8c9ec <diag_uart+24>, buff=0x490c18 "", size=1)
    at src/drivers/tty/tty.c:317
#6  0x00023b2c in iodev_read (desc=0x4902b8 <__pool_storageidx_pool>, 
    buf=0x490c18, nbyte=1) at src/init/bs_posix_env.c:40
#7  0x00058dc8 in read (fd=0, buf=0x490c18, nbyte=1)
    at src/compat/posix/fs/file_ops.c:84
#8  0x0002656c in linenoiseEdit (fdin=0, fdout=1, buf=0x490c98 "", buflen=4095, 
    prompt=0x5b184 "embox>") at third-party/lib/linenoise/linenoise_1.c:616
#9  0x00026bd0 in linenoiseRaw (buf=0x490c98 "", buflen=4096, 
    prompt=0x5b184 "embox>") at third-party/lib/linenoise/linenoise_1.c:752
---Type <return> to continue, or q <return> to quit---
#10 0x00026d38 in linenoise (prompt=0x5b184 "embox>")
    at third-party/lib/linenoise/linenoise_1.c:781
#11 0x000248c8 in readline (prompt=0x5b184 "embox>")
    at src/lib/readline/linenoise.c:19
#12 0x00008ca8 in tish_run () at src/cmds/shell/tish.c:310
#13 0x00007f9c in shell_run (
    shell=0x6bdc8 <__array_spread____shell_registry__element_at_line_362>)
    at ./src/include/cmd/shell.h:37
#14 0x00008234 in run_script () at src/init/start_script.c:91
#15 0x0002b61c in unit_mod_enable (
    mod_info=0x5b0a4 <__mod_info__embox__init__start_script>)
    at src/framework/unit.c:35
#16 0x00029b04 in invoke_mod_enable (
    mod=0x66ec4 <__mod__embox__init__start_script>)
    at src/framework/mod/core.c:181
#17 0x00029d60 in do_enable (mod=0x66ec4 <__mod__embox__init__start_script>)
    at src/framework/mod/core.c:230
#18 0x00029930 in mod_traverse_rec_safe (
    mod=0x66ec4 <__mod__embox__init__start_script>, op=true, 
    recursive_safe=false) at src/framework/mod/core.c:148
---Type <return> to continue, or q <return> to quit---
#19 0x000292e8 in mod_enable_rec_safe (
    mod=0x66ec4 <__mod__embox__init__start_script>, recursive_safe=false)
    at src/framework/mod/core.c:48
#20 0x0002932c in mod_enable (mod=0x66ec4 <__mod__embox__init__start_script>)
    at src/framework/mod/core.c:53
#21 0x0002b134 in rl_mod_enable (
    mod_info=0x68be4 <__mod_info__generic__runlevel3>)
    at src/framework/runlevel.c:66
#22 0x00029b04 in invoke_mod_enable (mod=0x688a8 <__mod__generic__runlevel3>)
    at src/framework/mod/core.c:181
#23 0x00029d60 in do_enable (mod=0x688a8 <__mod__generic__runlevel3>)
    at src/framework/mod/core.c:230
#24 0x00029930 in mod_traverse_rec_safe (
    mod=0x688a8 <__mod__generic__runlevel3>, op=true, recursive_safe=false)
    at src/framework/mod/core.c:148
#25 0x000292e8 in mod_enable_rec_safe (mod=0x688a8 <__mod__generic__runlevel3>, 
    recursive_safe=false) at src/framework/mod/core.c:48
#26 0x0002932c in mod_enable (mod=0x688a8 <__mod__generic__runlevel3>)
    at src/framework/mod/core.c:53
#27 0x0002b458 in runlevel_enter (level=3) at src/framework/runlevel.c:126
---Type <return> to continue, or q <return> to quit---
#28 0x0002b370 in runlevel_set (level=3) at src/framework/runlevel.c:111
#29 0x00003520 in init () at src/kernel/init.c:58
#30 0x000034b0 in kernel_start () at src/kernel/init.c:28
#31 0x00000000 in ?? ()

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ki.stfu on 7 Apr 2013 at 12:27

GoogleCodeExporter commented 9 years ago

Original comment by Eldar.Abusalimov on 7 Apr 2013 at 1:31

GoogleCodeExporter commented 9 years ago
the same picture in microblaze/petalogix:
Starting shell [] at device []
loading start script:
embox>
ASSERTION FAILED at src/kernel/thread/sched.c : 190,
    in function sched_sleep_locked:

thread_state_running(current->state)
kernel debug panicQEMU: Terminated

or so:
Starting shell [] at device []
loading start script:
embox>
ASSERTION FAILED at src/kernel/thread/sched_strategy/simple_queue.c : 157,
    in function runq_sleep:

current->runq == rq
kernel debug panicQEMU: Terminated

Original comment by ki.stfu on 7 Apr 2013 at 3:14

GoogleCodeExporter commented 9 years ago

Original comment by Eldar.Abusalimov on 7 Apr 2013 at 3:37

GoogleCodeExporter commented 9 years ago
don't reproduce at r14792

Original comment by ki.stfu on 17 Sep 2014 at 8:27