Hi,  
 
This is from Motorola android kernel team.
 
We met an issue that with new android toolchain(arm-eabi-4.4.0), kernel(2.6.29) will panic when creating nodes for gcov proc filesystem. 
The panic happens at strncmp(filename, gcov_objectpath, objectpath_len) from get_proc_file(const char *filename),  filename get an incorrect address point.  Please see panic log below:
 
[    7.979095] gcov-core: initializing core module: format=gcc_3.4
[    7.985412] gcov-core: init done
[    7.988769] gcov-proc: initializing proc module: persist=0 link=1 format=gcc 3.4
[    7.996612] Unable to handle kernel paging request at virtual address f0167933
[    8.004180] pgd = c0004000
[    8.007049] [f0167933] *pgd=00000000
[    8.010803] Internal error: Oops: 5 [#1]
[    8.014892] Modules linked in:
[    8.018096] CPU: 0    Not tainted  (2.6.29-omap1 #3)
[    8.023315] PC is at strncmp+0x14/0x50
[    8.027252] LR is at create_node+0x34/0x480
[    8.031616] pc : [<c015643c>]    lr : [<c00a327c>]    psr: 20000013
[    8.031616] sp : cec3fedc  ip : cec3fef0  fp : cec3feec
[    8.043640] r10: 00000000  r9 : 00000000  r8 : 00000000
[    8.049102] r7 : c04d3888  r6 : c04d3888  r5 : 0000005f  r4 : f0167933
[    8.055938] r3 : 00000000  r2 : 0000005f  r1 : c0443e4a  r0 : f0167933
[    8.062774] Flags: nzCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
[    8.070434] Control: 10c5387d  Table: 80c04019  DAC: 00000017
[    8.076446]
[    8.076477] PC: 0xc01563bc:
[    8.080932] 63bc  1a000003 e3a02000 e5c32000 e89da830 e1a05003 e7d1400c e2833001 e3540000
[    8.089538] 63dc  e7c5400c e28cc001 1afffff3 e89da830 e1a0c00d e92dd800 e24cb004 e3a03000
[    8.098114] 63fc  e7d0c003 e7d12003 e2833001 e062200c e6ef2072 e3520000 1a000001 e35c0000
[    8.106719] 641c  1afffff6 e6af0072 e89da800 e1a0c00d e92dd810 e24cb004 e3a03000 ea000009
[    8.115295] 643c  e7d04003 e2422001 e7d1c003 e2833001 e06cc004 e6efc07c e35c0000 1a000004
[    8.123901] 645c  e3540000 0a000002 e3520000 1afffff3 e1a0c002 e6af007c e89da810 e1a0c00d
[    8.132507] 647c  e92dd800 e24cb004 e6ef2072 ea000002 e1530002 089da800 e2800001 e3510000
[    8.141082] 649c  e2411001 0a000002 e5d03000 e3530000 1afffff6 e3a00000 e89da800 e1a0c00d
[    8.149688]
[    8.149688] LR: 0xc00a31fc:
[    8.154174] 31fc  eb02ccd0 e3a010d0 e2800001 eb00893f e2505000 0a000001 e1a01006 eb02cc33
[    8.162750] 321c  e3550000 e5845000 13a03000 15847020 1584303c 1a000002 e1a00004 e1a04005
[    8.171356] 323c  eb008472 e1a00004 e89da8f0 e1a0c00d e92ddff0 e24cb004 e24dd024 e59f3440
[    8.179931] 325c  e1a07000 e590400c e5935060 e1a00004 e59f3430 e1a02005 e5931000 eb02cc6a
[    8.188537] 327c  e3500000 1a00000b e2855001 e0844005 e1a00004 eb02ccab e3a010d0 e2800001
[    8.197143] 329c  eb00891a e250a000 0a0000f5 e1a01004 eb02cc0e ea0000f6 e1a00004 eb02cca1
[    8.205718] 32bc  e3a010d0 e2800007 eb008910 e250a000 0a0000eb e59f13d0 eb02cc04 e1a0000a
[    8.214324] 32dc  e1a01004 eb02cc19 ea0000e9 e1580006 15c69000 15954008 1a000001 ea000025
[    8.222930]
[    8.222930] SP: 0xcec3fe5c:
[    8.227386] fe5c  cec3fe68 c00c456c c00c3e90 c052c520 cec03718 ffffffff cec3fec4 c04d3888
[    8.235992] fe7c  c04d3888 cec3feec cec3fe90 c004496c c00441bc f0167933 c0443e4a 0000005f
[    8.244567] fe9c  00000000 f0167933 0000005f c04d3888 c04d3888 00000000 00000000 00000000
[    8.253173] febc  cec3feec cec3fef0 cec3fedc c00a327c c015643c 20000013 ffffffff c01521d8
[    8.261779] fedc  f0167933 cec3ff3c cec3fef0 c00a327c c0156434 cecbcdc8 c0443f70 c0528878
[    8.270355] fefc  000002b9 cecbcd50 c04bbf8c 00000000 00000000 cec3ff3c c0528878 c04bbf90
[    8.278961] ff1c  c04d3888 00000000 00000000 00000000 00000000 cec3ff5c cec3ff40 c0017cb8
[    8.287536] ff3c  c00a3254 c0030d50 c0017bd8 00000000 00000000 cec3ffd4 cec3ff60 c00442ac
[    8.296142]
[    8.296142] IP: 0xcec3fe70:
[    8.300628] fe70  ffffffff cec3fec4 c04d3888 c04d3888 cec3feec cec3fe90 c004496c c00441bc
[    8.309204] fe90  f0167933 c0443e4a 0000005f 00000000 f0167933 0000005f c04d3888 c04d3888
[    8.317810] feb0  00000000 00000000 00000000 cec3feec cec3fef0 cec3fedc c00a327c c015643c
[    8.326385] fed0  20000013 ffffffff c01521d8 f0167933 cec3ff3c cec3fef0 c00a327c c0156434
[    8.334991] fef0  cecbcdc8 c0443f70 c0528878 000002b9 cecbcd50 c04bbf8c 00000000 00000000
[    8.343597] ff10  cec3ff3c c0528878 c04bbf90 c04d3888 00000000 00000000 00000000 00000000
[    8.352172] ff30  cec3ff5c cec3ff40 c0017cb8 c00a3254 c0030d50 c0017bd8 00000000 00000000
[    8.360778] ff50  cec3ffd4 cec3ff60 c00442ac c0017be4 cec3ff8c cec3ff70 c0109f28 c0109c88
[    8.369354]
[    8.369384] FP: 0xcec3fe6c:
[    8.373840] fe6c  cec03718 ffffffff cec3fec4 c04d3888 c04d3888 cec3feec cec3fe90 c004496c
[    8.382446] fe8c  c00441bc f0167933 c0443e4a 0000005f 00000000 f0167933 0000005f c04d3888
[    8.391021] feac  c04d3888 00000000 00000000 00000000 cec3feec cec3fef0 cec3fedc c00a327c
[    8.399627] fecc  c015643c 20000013 ffffffff c01521d8 f0167933 cec3ff3c cec3fef0 c00a327c
[    8.408203] feec  c0156434 cecbcdc8 c0443f70 c0528878 000002b9 cecbcd50 c04bbf8c 00000000
[    8.416809] ff0c  00000000 cec3ff3c c0528878 c04bbf90 c04d3888 00000000 00000000 00000000
[    8.425415] ff2c  00000000 cec3ff5c cec3ff40 c0017cb8 c00a3254 c0030d50 c0017bd8 00000000
[    8.433990] ff4c  00000000 cec3ffd4 cec3ff60 c00442ac c0017be4 cec3ff8c cec3ff70 c0109f28
[    8.442596]
[    8.442596] R0: 0xf01678b3:
[    8.447052] 78b0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.455657] 78d0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.464263] 78f0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.472869] 7910  ******** ******** ******** ******** ******** ******** ******** ********
[    8.481445] 7930  ******** ******** ******** ******** ******** ******** ******** ********
[    8.490051] 7950  ******** ******** ******** ******** ******** ******** ******** ********
[    8.498657] 7970  ******** ******** ******** ******** ******** ******** ******** ********
[    8.507263] 7990  ******** ******** ******** ******** ******** ******** ******** ********
[    8.515838] 79b0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.524444]
[    8.524444] R1: 0xc0443dca:
[    8.528930] 3dc8  673e363c 2d766f63 65726f63 6e69203a 61697469 697a696c 6320676e 2065726f
[    8.537506] 3de8  75646f6d 203a656c 6d726f66 253d7461 3c000a73 63673e36 632d766f 3a65726f
[    8.546112] 3e08  696e6920 6f642074 000a656e 6f72702f 65722f6a 33316f70 726f772f 6170736b
[    8.554718] 3e28  662f6563 38337262 48532f37 5f534c4f 305f3255 33342e30 6b2f302e 656e7265
[    8.563293] 3e48  752f006c 702f7273 2f646f72 61726373 30686374 62662f34 37383372 74756f2f
[    8.571899] 3e68  7261742f 2f746567 646f7270 2f746375 656e6567 2f636972 2f6a626f 54524150
[    8.580505] 3e88  4f495449 6b2f534e 656e7265 6e695f6c 6d726574 61696465 2f736574 6c697562
[    8.589080] 3ea8  63670064 2e335f63 363c0034 6f63673e 72702d76 203a636f 636f7270 646f6d20
[    8.597686] 3ec8  20656c75 6e207369 7520776f 616f6c6e 0a646564 3e363c00 766f6367 6f72702d
[    8.606262]
[    8.606292] R4: 0xf01678b3:
[    8.610748] 78b0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.619354] 78d0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.627929] 78f0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.636535] 7910  ******** ******** ******** ******** ******** ******** ******** ********
[    8.645141] 7930  ******** ******** ******** ******** ******** ******** ******** ********
[    8.653747] 7950  ******** ******** ******** ******** ******** ******** ******** ********
[    8.662353] 7970  ******** ******** ******** ******** ******** ******** ******** ********
[    8.670928] 7990  ******** ******** ******** ******** ******** ******** ******** ********
[    8.679534] 79b0  ******** ******** ******** ******** ******** ******** ******** ********
[    8.688140]
[    8.688140] R6: 0xc04d3808:
[    8.692596] 3808  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.701202] 3828  00000000 00000001 c0475170 c047518e 00000000 00000008 00000008 c045bb8a
[    8.709777] 3848  c045b9ef c045b9f8 c045ba36 c0473745 c047377b c045bac0 c045bb11 c045bb92
[    8.718383] 3868  c045bba5 c045bbb1 c045bbc7 c045bbcc c045bbe0 c04751e4 c047520c 00000000
[    8.726989] 3888  00000000 c04d3798 00000000 f0167933 c0475233 00000000 00000009 c03bd434
[    8.735565] 38a8  00000001 0000003b c0552e78 c00a20b8 00000000 00000000 00000000 c027e290
[    8.744171] 38c8  c027e6f0 00000000 00000000 00000000 00000000 00000000 c043e9d9 00000000
[    8.752746] 38e8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.761352]
[    8.761352] R7: 0xc04d3808:
[    8.765838] 3808  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.774414] 3828  00000000 00000001 c0475170 c047518e 00000000 00000008 00000008 c045bb8a
[    8.783020] 3848  c045b9ef c045b9f8 c045ba36 c0473745 c047377b c045bac0 c045bb11 c045bb92
[    8.791595] 3868  c045bba5 c045bbb1 c045bbc7 c045bbcc c045bbe0 c04751e4 c047520c 00000000
[    8.800201] 3888  00000000 c04d3798 00000000 f0167933 c0475233 00000000 00000009 c03bd434
[    8.808776] 38a8  00000001 0000003b c0552e78 c00a20b8 00000000 00000000 00000000 c027e290
[    8.817382] 38c8  c027e6f0 00000000 00000000 00000000 00000000 00000000 c043e9d9 00000000
[    8.825988] 38e8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.834564] Process swapper (pid: 1, stack limit = 0xcec3e2e0)
[    8.840667] Stack: (0xcec3fedc to 0xcec40000)
[    8.845245] fec0:                                                                f0167933
[    8.853912] fee0: cec3ff3c cec3fef0 c00a327c c0156434 cecbcdc8 c0443f70 c0528878 000002b9
[    8.862609] ff00: cecbcd50 c04bbf8c 00000000 00000000 cec3ff3c c0528878 c04bbf90 c04d3888
[    8.871276] ff20: 00000000 00000000 00000000 00000000 cec3ff5c cec3ff40 c0017cb8 c00a3254
[    8.879974] ff40: c0030d50 c0017bd8 00000000 00000000 cec3ffd4 cec3ff60 c00442ac c0017be4
[    8.888671] ff60: cec3ff8c cec3ff70 c0109f28 c0109c88 cec3ff00 cec9f0c8 c010a028 c04bbab4
[    8.897338] ff80: cec3ffbc cec3ff90 c00a1ed4 c0109eb0 c01af138 00313533 00000000 c0030000
[    8.906036] ffa0: 00000170 c04bbeb0 00000000 00000000 c0030d50 c003127c 00000000 00000000
[    8.914703] ffc0: 00000000 00000000 cec3fff4 cec3ffd8 c0008420 c004425c 00000000 00000001
[    8.923400] ffe0: 00000000 00000000 00000000 cec3fff8 c0076e40 c00083a4 00000000 00000000
[    8.932067] Backtrace:
[    8.934631] [<c0156428>] (strncmp+0x0/0x50) from [<c00a327c>] (create_node+0x34/0x480)
[    8.942962]  r4:f0167933
[    8.945617] [<c00a3248>] (create_node+0x0/0x480) from [<c0017cb8>] (gcov_init_module+0xe0/0x1a4)
[    8.954833] [<c0017bd8>] (gcov_init_module+0x0/0x1a4) from [<c00442ac>] (do_one_initcall+0x5c/0x194)
[    8.964416]  r7:00000000 r6:00000000 r5:c0017bd8 r4:c0030d50
[    8.970367] [<c0044250>] (do_one_initcall+0x0/0x194) from [<c0008420>] (kernel_init+0x88/0xf8)
[    8.979400]  r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c003127c
[    8.986236] r4:c0030d50
[    8.988983] [<c0008398>] (kernel_init+0x0/0xf8) from [<c0076e40>] (do_exit+0x0/0x65c)
[    8.997222]  r5:00000000 r4:00000000
[    9.000946] Code: e92dd810 e24cb004 e3a03000 ea000009 (e7d04003)
[    9.007446] ---[ end trace da227214a82491b7 ]---
[    9.012298] Kernel panic - not syncing: Attempted to kill init!
[    9.018524] Rebooting in 1 seconds..
 
Gcov was working well with old android toolchain(arm-eabi-4.3.1). Does anybody met the same issue, is there a fix patch.
 
Thanks,
Wagner Chen