Openmoko Bug #2238: CONFIG_FUNCTION_TRACER panics very early

Openmoko Public Trac bugs at docs.openmoko.org
Sun Feb 22 14:32:45 CET 2009


#2238: CONFIG_FUNCTION_TRACER panics very early
-----------------------------+----------------------------------------------
 Reporter:  lindi            |          Owner:  openmoko-kernel
     Type:  defect           |         Status:  new            
 Priority:  normal           |      Milestone:                 
Component:  System Software  |        Version:  unspecified    
 Severity:  normal           |       Keywords:                 
 Haspatch:  0                |      Blockedby:                 
Estimated:                   |    Patchreview:                 
 Blocking:                   |   Reproducible:                 
-----------------------------+----------------------------------------------

Comment(by lindi):

 With ftrace3.patch the phone boots successfully and ftrace works for a
 while. After a few minutes of playing around with ftrace the phone stops
 responding and watchdog apparently reboots it. After reboot I can recover
 the following kernel message:

 {{{
 [  247.810000] ------------[ cut here ]------------
 [  247.810000] WARNING: at kernel/trace/ring_buffer.c:1038
 trace+0x14/0x18()
 [  247.815000] Modules linked in: s3c2410_wdt g_ether
 [  247.820000] [<c03bd434>] (dump_stack+0x0/0x18) from [<c0056edc>]
 (warn_on_slowpath+0x50/0x6c)
 [  247.825000] [<c0056e8c>] (warn_on_slowpath+0x0/0x6c) from [<c008dbec>]
 (rb_reserve_next_event+0x6c/0x3c8)
 [  247.835000]  r6:c09cce48 r5:c7810ba0 r4:00000000
 [  247.840000] [<c008db80>] (rb_reserve_next_event+0x0/0x3c8) from
 [<c008e0f4>] (ring_buffer_lock_reserve+0x8c/0x114)
 [  247.850000] [<c008e068>] (ring_buffer_lock_reserve+0x0/0x114) from
 [<c00917e8>] (trace_function+0x3c/0x80)
 [  247.860000]  r4:c09cce68
 [  247.865000] [<c00917ac>] (trace_function+0x0/0x80) from [<c00918ac>]
 (function_trace_call+0x80/0xe4)
 [  247.870000]  r8:c00350ac r7:00000000 r6:c03beeb4 r5:20000013
 r4:c09cce68
 [  247.880000] [<c009182c>] (function_trace_call+0x0/0xe4) from
 [<c0034f9c>] (trace+0x14/0x18)
 [  247.885000]  r7:c7315680 r6:00000000 r5:00000002 r4:c09cce48
 [  247.890000] [<c03beea8>] (mutex_unlock+0x0/0x18) from [<c008e8b4>]
 (tracing_ctrl_write+0x114/0x144)
 [  247.900000] [<c008e7a0>] (tracing_ctrl_write+0x0/0x144) from
 [<c00bd9a0>] (vfs_write+0xbc/0x14c)
 [  247.910000]  r7:00000002 r6:c71cdf78 r5:000c3008 r4:c7315680
 [  247.915000] [<c00bd8e4>] (vfs_write+0x0/0x14c) from [<c00bdb00>]
 (sys_write+0x50/0x80)
 [  247.925000]  r7:00000004 r6:c7315680 r5:00000000 r4:00000000
 [  247.930000] [<c00bdab0>] (sys_write+0x0/0x80) from [<c0034ec0>]
 (ret_fast_syscall+0x0/0x2c)
 [  247.935000]  r6:401ab5e0 r5:000c3008 r4:00000002
 [  247.940000] ---[ end trace 00b32d9100000001 ]---
 [  457.120000] Unable to handle kernel paging request at virtual address
 736e6f63
 [  457.120000] pgd = c0004000
 [  457.120000] [736e6f63] *pgd=00000000
 [  457.120000] Internal error: Oops: 5 [#1] PREEMPT
 [  457.120000] Modules linked in: s3c2410_wdt g_ether
 [  457.120000] CPU: 0    Tainted: G        W   (2.6.28-GTA02_lindi-andy-
 tracking_b8b36e5ec3db71d5-mokodev #53)
 [  457.120000] PC is at strnlen+0x1c/0x34
 [  457.120000] LR is at string+0x34/0xbc
 [  457.120000] pc : [<c01baf64>]    lr : [<c01bbfbc>]    psr: a0000093
 [  457.120000] sp : c7bafac0  ip : 736e6f63  fp : c7bafacc
 [  457.120000] r10: c055e950  r9 : c055e550  r8 : ffffffff
 [  457.120000] r7 : 736e6f63  r6 : c055e950  r5 : ffffffff  r4 : c055e55f
 [  457.120000] r3 : ffffffff  r2 : 00000000  r1 : ffffffff  r0 : 736e6f63
 [  457.120000] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM
 Segment kernel
 [  457.120000] Control: c000717f  Table: 37168000  DAC: 00000017
 [  457.120000] Process ksdioirqd/mmc0 (pid: 1781, stack limit =
 0xc7bae268)
 [  457.120000] Stack: (0xc7bafac0 to 0xc7bb0000)
 [  457.120000] fac0: c7bafaec c7bafad0 c01bbfbc c01baf58 c7bafbec c0464b3d
 00000000 ffffffff
 [  457.120000] fae0: c7bafb34 c7bafaf0 c01bc48c c01bbf98 ffffffff 00000000
 ffffffff c7bafb4c
 [  457.120000] fb00: c7bafb0c 00000400 c04e1940 00000400 00000000 60000092
 ffffffff c0464b2d
 [  457.120000] fb20: 00000001 c7bafbec c7bafb4c c7bafb38 c01bc730 c01bc1ac
 ffff003c c7bafc10
 [  457.120000] fb40: c7bafbd4 c7bafb50 c0057bb8 c01bc728 c7bafb5c c00917e8
 c09cce68 c7bafb98
 [  457.120000] fb60: 00000000 c00917e8 00000004 80000093 c03c0264 00000000
 c09cce68 20000093
 [  457.120000] fb80: c03bd594 00000000 00000000 c7bafbc0 c7bafb9c c00918ac
 c00917bc 20000093
 [  457.120000] fba0: 00000001 c7bafc10 ffff003c c7bafc10 ffff003c 60000092
 ffffffff 00000000
 [  457.120000] fbc0: 00000001 c7bafdec c7bafbe4 c7bafbd8 c03bd5a4 c0057a44
 c7bafc0c c7bafbf8
 [  457.120000] fbe0: c0039808 c03bd598 c0464b2d 736e6f63 c04e1910 c03c1ddc
 c09cce68 c04e59ac
 [  457.120000] fc00: 00000000 c7bafc10 c03c0288 c00397dc c04e59ac 00000001
 ffffffff 60000013
 [  457.120000] fc20: c04e59ac 60000013 c04e5978 00000025 00000000 00000001
 c7bafdec c7bafc6c
 [  457.120000] fc40: c7bafc58 c7bafc10 c03c0288 ffff003c 60000092 ffffffff
 c04e59ac 60000013
 [  457.120000] fc60: c7bafc8c c7bafc70 c0086428 c03c0268 c70dc320 c7bafdac
 c70dc000 c7bafdec
 [  457.120000] fc80: c7bafcb4 c7bafc90 c02a1994 c00863d8 00000000 c70dc000
 c70dc320 c7bafdec
 [  457.120000] fca0: c7b82800 00000000 c7bafcd4 c7bafcb8 c02a1a84 c02a1700
 00000000 00000000
 [  457.120000] fcc0: c7bafdec c70dc000 c7bafd04 c7bafcd8 c0296bb8 c02a19c0
 c7bafd34 c7bafdec
 [  457.120000] fce0: c7bafd04 c7bafcf0 c7bafd54 c7bafd34 c7bafdec c70dc000
 c7bafd7c c7bafd08
 [  457.120000] fd00: c0296c68 c0296960 00000000 00000001 dead4ead ffffffff
 ffffffff c7bafd6c
 [  457.120000] fd20: c02958b4 c7bafd7c c7bafdec c7bafd58 c7bafd58 00000000
 00000001 dead4ead
 [  457.120000] fd40: ffffffff ffffffff c7bafd6c c02958b4 c7bafd7c c7bafdec
 c7bafd58 c7bafd58
 [  457.120000] fd60: c7bafdec c7bafd80 00000010 00000001 c7bafe24 c7bafd80
 c029aaa0 c0296bf0
 [  457.120000] fd80: 3b9aca00 00000000 00000010 00000001 00000000 00000200
 00000000 00000000
 [  457.120000] fda0: c7bafdec 00000001 c7bafdd8 00000035 14080010 00000000
 00000000 00000000
 [  457.120000] fdc0: 00000000 000001b5 00000000 00000000 c7bafd80 c7bafdec
 87654321 c0b55a02
 [  457.120000] fde0: 00000e54 00000000 00000010 c7bafdac c7bafd80 00000000
 c7bafd34 c0296fb4
 [  457.120000] fe00: 00000800 00000010 00000010 c7b8c400 c72d0e54 00000400
 c7bafe6c c7bafe28
 [  457.120000] fe20: c029bc30 c029a938 00000001 c72d0e54 00000001 00000010
 00000000 00000000
 [  457.120000] fe40: c72c51a0 00000000 c72c51a0 c72c51a0 00000400 00000259
 c72d0e54 00000010
 [  457.120000] fe60: c7bafe84 c7bafe70 c029bd98 c029bae4 c72d0e54 00000010
 c7bafe9c c7bafe88
 [  457.120000] fe80: c02a5038 c029bd84 00000000 c7078600 c7bafee4 c7bafea0
 c02a5b38 c02a4f9c
 [  457.120000] fea0: c7bafeac c00918ac c00917bc 20000013 00000000 c72d0e34
 c7baff20 c72d0e34
 [  457.120000] fec0: c7baff20 00000000 c7baff24 c7baff20 00000002 c7bae000
 c7baff1c c7bafee8
 [  457.120000] fee0: c02a2d28 c02a59a4 00000259 00000000 c7b8c400 c7078600
 c70dc000 c72d0e34
 [  457.120000] ff00: c7baff20 c7baff24 c70dc000 c7b82800 c7baff44 c7baff20
 c02a2ec0 c02a2ca4
 [  457.120000] ff20: 00000000 00000000 c7baff34 00000000 c7b8c400 c7078600
 c7baff64 c7baff48
 [  457.120000] ff40: c02a5370 c02a2e9c c7baff64 00000000 c7b8c400 c0a0354c
 c7baff84 c7baff68
 [  457.120000] ff60: c02a546c c02a52e8 c70dc000 00000000 00000000 00000001
 c7baffd4 c7baff88
 [  457.120000] ff80: c029c950 c02a53b0 00000000 c7baffa7 c7baffd4 c7b82914
 c70dc308 00000002
 [  457.120000] ffa0: 00000001 029c4d24 c004ebbc c7bae000 c70dc000 c029c7f0
 00000000 00000000
 [  457.120000] ffc0: 00000000 00000000 c7bafff4 c7baffd8 c006d20c c029c800
 00000000 00000000
 [  457.120000] ffe0: 00000000 00000000 00000000 c7bafff8 c005a914 c006d1b8
 ffffffff ffffffff
 [  457.120000] Backtrace:
 [  457.120000] [<c01baf48>] (strnlen+0x0/0x34) from [<c01bbfbc>]
 (string+0x34/0xbc)
 [  457.120000] [<c01bbf88>] (string+0x0/0xbc) from [<c01bc48c>]
 (vsnprintf+0x2f0/0x4d8)
 [  457.120000]  r7:ffffffff r6:00000000 r5:c0464b3d r4:c7bafbec
 [  457.120000] [<c01bc19c>] (vsnprintf+0x0/0x4d8) from [<c01bc730>]
 (vscnprintf+0x18/0x24)
 [  457.120000] [<c01bc718>] (vscnprintf+0x0/0x24) from [<c0057bb8>]
 (vprintk+0x184/0x4f8)
 [  457.120000]  r4:c7bafc10
 [  457.120000] [<c0057a34>] (vprintk+0x0/0x4f8) from [<c03bd5a4>]
 (printk+0x20/0x28)
 [  457.120000] [<c03bd584>] (printk+0x0/0x28) from [<c0039808>]
 (bad_mode+0x3c/0x5c)
 [  457.120000]  r3:c03c1ddc r2:c04e1910 r1:736e6f63 r0:c0464b2d
 [  457.120000] [<c00397cc>] (bad_mode+0x0/0x5c) from [<c03c0288>]
 (_spin_unlock_irqrestore+0x30/0x58)
 [  457.120000]  r4:c04e59a
  c
 [  457.120000] Code: e3a02000 e1510002 e080c002 0a000003 (e7d03002)
 [21474541.065000] ramconsole: old data ends here
 }}}

-- 
Ticket URL: <https://docs.openmoko.org/trac/ticket/2238#comment:4>
docs.openmoko.org <http://docs.openmoko.org/trac/>
openmoko trac


More information about the buglog mailing list