Kernel bug -jffs2
"Mads leMaire" <[email protected]> Tue, 22 Nov 2005 12:12:00 +0100
| Newsgroups | gmane.linux.file-systems.jffs |
|---|---|
| Message-ID | <[email protected]> |
Hi,
While booting my embedded system I may run into the following bug depending on the order I start my applications:
----------------------------------------------------------------------------------------------------------------------
....kernel boot messages........
Checked all inodes but still 0x1e0dd8 bytes of unchecked space?
kernel BUG at gc.c:138!
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0004000
[00000000] *pgd=00000000, *pmd = 00000000
Internal error: Oops: 807
CPU: 0
pc : [<c0032d20>] lr : [<c003b09c>] Tainted: PF
sp : c3be1ee4 ip : c3be1eb0 fp : c3be1ef4
r10: 00000000 r9 : c03641d8 r8 : c3be1f1c
r7 : c036411c r6 : c03640ec r5 : c3be1f0c r4 : 00000000
r3 : 00000000 r2 : 00000001 r1 : 00000001 r0 : 00000001
Flags: nZCv IRQs on FIQs on Mode SVC_32 Segment user
Control: 397F Table: A3B14000 DAC: 00000015
Process jffs2_gcd_mtd3 (pid: 14, stack limit = 0xc3be036c)
Stack: (0xc3be1ee4 to 0xc3be2000)
1ee0: c3be0000 c3be1f54 c3be1ef8 c009b220 c0032cec c3be1f04 c0054ca4
1f00: c0055494 c3faa0a0 c3be1f38 00000000 c3be0000 00000000 00000000 00000000
1f20: c3be0000 00000000 00000000 c3be0000 c3be0000 c03640ec c3be1f58 00000000
1f40: c3c0de94 c0364000 c3be1ff4 c3be1f58 c009e220 c009b034 00000001 00000000
1f60: 00000080 00000000 00000000 00000000 00000000 00000001 fffe67b7 ffdfdff6
1f80: 00000000 00000000 00000013 00000000 00000000 00000000 00000000 00000000
1fa0: 00000000 c3be1fb0 c002d84c c00377e8 00000000 00000000 00000600 00000001
1fc0: c009e0b4 c3c0c000 00000000 c126da00 00000000 c3c0de94 c009e0b4 c3c0c000
1fe0: 00000000 c126da00 00000000 c3be1ff8 c002f0b4 c009e0c0 fbfefff7 fff6ffff
Backtrace:
Function entered at [<c0032ce0>] from [<c009b220>]
r4 = C3BE0000
Function entered at [<c009b028>] from [<c009e220>]
Function entered at [<c009e0b4>] from [<c002f0b4>]
r7 = C126DA00 r6 = 00000000 r5 = C3C0C000 r4 = C009E0B4
Code: 1b00208f e59f0014 eb00208d e3a03000 (e5833000)
------------------------------------------------------------------------------------------------------------------
In the case above, my startup script starts three applications as background processes, they are all located on the jff2 filesystem:
1. The first app is QT-embedded based and requires a big dynamic library also located on the jffs2 filesystem.
2. The next app is a multithreaded app, reading a config file located on the jff2 filesystem.
3. The third app is a multithreaded app, also reading config from jff2 filesystem
I noticed that when I do not start the first App, everything works fine. Also when sleeping a second after the first application is started no error occures. I can even move the first application to start after 2 and 3 and things are working fine.
Although I can easily get around my problem, I am a bit worried for the roboustness of the system.
The target system is a PXA255 card running kernel 2.4.25 (Elinos)
MOLM
___________________________________________________________
This e-mail, including attachments if any, have been scanned
for viruses using Guinevere and Norman Virus Control.
To unsubscribe from this list: send the line "unsubscribe jffs-dev" in
the body of a message to [email protected]