kayws426 / embox

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

ti816x task_get_main causing exception #689

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.r13480,arm/ti816x
2.build/run embox

What is the expected output? What do you see instead?
---EMBOX---
Welcome to Embox and have a lot of fun!
embox>telnetd 
EXCEPTION:
r0=00000014 r1=fffffffe r2=00000000 r3=00000014
r4=00000020 r5=00000052 r6=00000041 r7=0000002a
r8=0000007f r9=00000002 r10=00000115 r11=81271de4
r12=81271de8 r14=810152ec
cpsr=20000197 spsr=2000011f

---HOST---
$ telnet 192.168.0.102
Trying 192.168.0.102...
Connected to 192.168.0.102.
Escape character is '^]'.
embox>thread -s

   id  tid priority   state       time
    0    0      127       W         4s
  270    0      127     R           0s
  258    0      127       W         0s
    1    0        0     R          35s
  271    1      127       W         0s
  277    2  
telnet> quit
Connection closed.

---DISASSEMBLER---
 20796 static inline struct thread * task_get_main(const struct task *tsk) {
 20797 810152ac:   e1a0c00d    mov ip, sp
 20798 810152b0:   e92dd800    push    {fp, ip, lr, pc}
 20799 810152b4:   e24cb004    sub fp, ip, #4
 20800 810152b8:   e24dd008    sub sp, sp, #8
 20801 810152bc:   e50b0010    str r0, [fp, #-16]
 20802     assert(tsk != NULL);
 20803 810152c0:   e51b3010    ldr r3, [fp, #-16]
 20804 810152c4:   e3530000    cmp r3, #0
 20805 810152c8:   03a03000    moveq   r3, #0
 20806 810152cc:   13a03001    movne   r3, #1
 20807 810152d0:   e6ef3073    uxtb    r3, r3
 20808 810152d4:   e3530000    cmp r3, #0
 20809 810152d8:   1a000002    bne 810152e8 <task_get_main+0x3c>
 20810 810152dc:   e30f00bc    movw    r0, #61628  ; 0xf0bc
 20811 810152e0:   e3480118    movt    r0, #33048  ; 0x8118
 20812 810152e4:   eb059cac    bl  8117c59c <__assertion_handle_failure>
 20813     return tsk->tsk_main;
 20814 810152e8:   e51b3010    ldr r3, [fp, #-16]
 20815 810152ec:   e5933018    ldr r3, [r3, #24]            <-- there
 20816 }
 20817 810152f0:   e1a00003    mov r0, r3
 20818 810152f4:   e24bd00c    sub sp, fp, #12
 20819 810152f8:   e89da800    ldm sp, {fp, sp, pc}

Please use labels and text to provide additional information.

Original issue reported on code.google.com by ki.stfu on 17 Apr 2014 at 9:29

GoogleCodeExporter commented 9 years ago
What prints 
`printk("%s %p", __func__, tsk)`
placed after assert?

Original comment by drakon.m...@gmail.com on 17 Apr 2014 at 10:03

GoogleCodeExporter commented 9 years ago
possible fixed by r13564

Original comment by ki.stfu on 24 Apr 2014 at 12:02

GoogleCodeExporter commented 9 years ago

Original comment by ki.stfu on 24 Apr 2014 at 1:39