[2.2.13-pre15] null pointer exception in d_lookup

Peter Hanecak (hanecak@megaloman.com)
Tue, 5 Oct 1999 16:27:17 +0200 (CEST)


bug-report in "/usr/src/linux/REPORTING-BUGS" format

[1.]

i got an kernel oops in d_lookup

[2.]

when running image conversion (100% CPU usage, about 2-3 MB file copying
from local CD-ROM to local ext2 fs on SCSI drive in about every 3-5 minutes
then imagemagick's mogrify activity over copied file (again on same local
ext2 SCSI filesystem)) i experienced kernel problems: OOPs in d_lookup
(see below log entries).

symptoms were as follows:
- after first messages, system was running but any new process causes one
OOPs (first was produced by ical - as can be seen) and did not start
- when switching to console and pressing <Alt+Ctrl+Del> last oops to
console has been printed and machine went totaly frozen

no such error occured during usage of previous 2.2.13-preX kernels (tried
pre8, pre9, pre11 and pre14). also nothing similar when using 2.2.12 and
earlier (this do not means i did not encounter no errors at all :) - see my
previous posts regarding instant freezes).

[3.]

kernel, null pointer

[4.]

Linux version 2.2.13pre15 (root@m1.megaloman.sk) (gcc version egcs-2.91.66 \
19990314/Linux (egcs-1.1.2 release)) #3 Tue Oct 5 10:25:44 EDT 1999

[5.]

ksymoops 0.7c on i586 2.2.13pre15. Options used
-V (default)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.2.13pre15/ (default)
-m /boot/System.map-2.2.13-pre15 (specified)

No modules in ksyms, skipping objects
Warning (read_lsmod): no symbols in lsmod, is /proc/modules a valid lsmod file?
Oct 5 11:47:03 m1 kernel: Unable to handle kernel paging request at virtual address fc478b00
Oct 5 11:47:03 m1 kernel: current->tss.cr3 = 01c73000, %cr3 = 01c73000
Oct 5 11:47:03 m1 kernel: *pde = 00000000
Oct 5 11:47:03 m1 kernel: Oops: 0000
Oct 5 11:47:03 m1 kernel: CPU: 0
Oct 5 11:47:03 m1 kernel: EIP: 0010:[d_lookup+92/208]
Oct 5 11:47:03 m1 kernel: EFLAGS: 00010212
Oct 5 11:47:03 m1 kernel: eax: 00001e98 ebx: fc478ae8 ecx: 6b8b704d edx: 0000031c
Oct 5 11:47:03 m1 kernel: esi: 00000000 edi: c3b97026 ebp: fc478b00 esp: c1999f2c
Oct 5 11:47:03 m1 kernel: ds: 0018 es: 0018 ss: 0018
Oct 5 11:47:03 m1 kernel: Process ical (pid: 6510, process nr: 71, stackpage=c1999000)
Oct 5 11:47:03 m1 kernel: Stack: c3b97026 00000001 c0264a58 c3b9701c 6b8b704d 0000000a c0129f5c c63f1a20
Oct 5 11:47:03 m1 kernel: c1999f74 c1999f74 c012a1bb c63f1a20 c1999f74 00000001 c3b97000 c3b97000
Oct 5 11:47:03 m1 kernel: 00000004 bffff458 c3b9701c 0000000a 6b8b704d c012a2b8 c3b97000 c63f1a20
Oct 5 11:47:03 m1 kernel: Call Trace: [cached_lookup+16/84] [lookup_dentry+275/488] [__namei+40/88] [sys_access+144/260] [system_call+52/56]
Oct 5 11:47:03 m1 kernel: Code: 8b 6d 00 8b 4c 24 18 39 4b 48 75 54 8b 4c 24 24 39 4b 0c 75
Using defaults from ksymoops -t elf32-i386 -a i386

Code; 00000000 Before first symbol
00000000 <_EIP>:
Code; 00000000 Before first symbol
0: 8b 6d 00 movl 0x0(%ebp),%ebp
Code; 00000003 Before first symbol
3: 8b 4c 24 18 movl 0x18(%esp,1),%ecx
Code; 00000007 Before first symbol
7: 39 4b 48 cmpl %ecx,0x48(%ebx)
Code; 0000000a Before first symbol
a: 75 54 jne 60 <_EIP+0x60> 00000060 Before first symbol
Code; 0000000c Before first symbol
c: 8b 4c 24 24 movl 0x24(%esp,1),%ecx
Code; 00000010 Before first symbol
10: 39 4b 0c cmpl %ecx,0xc(%ebx)
Code; 00000013 Before first symbol
13: 75 00 jne 15 <_EIP+0x15> 00000015 Before first symbol

Oct 5 11:47:42 m1 kernel: Unable to handle kernel paging request at virtual address fc478b00
Oct 5 11:47:42 m1 kernel: current->tss.cr3 = 028a3000, %cr3 = 028a3000
Oct 5 11:47:42 m1 kernel: *pde = 00000000
Oct 5 11:47:42 m1 kernel: Oops: 0000
Oct 5 11:47:42 m1 kernel: CPU: 0
Oct 5 11:47:42 m1 kernel: EIP: 0010:[d_lookup+92/208]
Oct 5 11:47:42 m1 kernel: EFLAGS: 00010212
Oct 5 11:47:42 m1 kernel: eax: 00001e98 ebx: fc478ae8 ecx: 6b8b704d edx: 0000031c
Oct 5 11:47:42 m1 kernel: esi: 00000000 edi: c4128026 ebp: fc478b00 esp: c28a5f2c
Oct 5 11:47:42 m1 kernel: ds: 0018 es: 0018 ss: 0018
Oct 5 11:47:42 m1 kernel: Process ical (pid: 6523, process nr: 69, stackpage=c28a5000)
Oct 5 11:47:42 m1 kernel: Stack: c4128026 00000001 c0264a58 c412801c 6b8b704d 0000000a c0129f5c c63f1a20
Oct 5 11:47:42 m1 kernel: c28a5f74 c28a5f74 c012a1bb c63f1a20 c28a5f74 00000001 c4128000 c4128000
Oct 5 11:47:42 m1 kernel: 00000004 bffff458 c412801c 0000000a 6b8b704d c012a2b8 c4128000 c63f1a20
Oct 5 11:47:42 m1 kernel: Call Trace: [cached_lookup+16/84] [lookup_dentry+275/488] [__namei+40/88] [sys_access+144/260] [system_call+52/56]
Oct 5 11:47:42 m1 kernel: Code: 8b 6d 00 8b 4c 24 18 39 4b 48 75 54 8b 4c 24 24 39 4b 0c 75

Code; 00000000 Before first symbol
00000000 <_EIP>:
Code; 00000000 Before first symbol
0: 8b 6d 00 movl 0x0(%ebp),%ebp
Code; 00000003 Before first symbol
3: 8b 4c 24 18 movl 0x18(%esp,1),%ecx
Code; 00000007 Before first symbol
7: 39 4b 48 cmpl %ecx,0x48(%ebx)
Code; 0000000a Before first symbol
a: 75 54 jne 60 <_EIP+0x60> 00000060 Before first symbol
Code; 0000000c Before first symbol
c: 8b 4c 24 24 movl 0x24(%esp,1),%ecx
Code; 00000010 Before first symbol
10: 39 4b 0c cmpl %ecx,0xc(%ebx)
Code; 00000013 Before first symbol
13: 75 00 jne 15 <_EIP+0x15> 00000015 Before first symbol

Oct 5 11:48:39 m1 kernel: Unable to handle kernel paging request at virtual address fc478b00
Oct 5 11:48:39 m1 kernel: current->tss.cr3 = 057e1000, %cr3 = 057e1000
Oct 5 11:48:39 m1 kernel: *pde = 00000000
Oct 5 11:48:39 m1 kernel: Oops: 0000
Oct 5 11:48:39 m1 kernel: CPU: 0
Oct 5 11:48:39 m1 kernel: EIP: 0010:[d_lookup+92/208]
Oct 5 11:48:39 m1 kernel: EFLAGS: 00010212
Oct 5 11:48:39 m1 kernel: eax: 00001e98 ebx: fc478ae8 ecx: 6b8b704d edx: 0000031c
Oct 5 11:48:39 m1 kernel: esi: 00000000 edi: c4199026 ebp: fc478b00 esp: c485ff2c
Oct 5 11:48:39 m1 kernel: ds: 0018 es: 0018 ss: 0018
Oct 5 11:48:39 m1 kernel: Process save-session (pid: 6530, process nr: 52, stackpage=c485f000)
Oct 5 11:48:39 m1 kernel: Stack: c4199026 00000001 c0264a58 c419901c 6b8b704d 0000000a c0129f5c c63f1a20
Oct 5 11:48:39 m1 kernel: c485ff74 c485ff74 c012a1bb c63f1a20 c485ff74 00000001 c4199000 c4199000
Oct 5 11:48:39 m1 kernel: 00000004 bffff6d8 c419901c 0000000a 6b8b704d c012a2b8 c4199000 c63f1a20
Oct 5 11:48:39 m1 kernel: Call Trace: [cached_lookup+16/84] [lookup_dentry+275/488] [__namei+40/88] [sys_access+144/260] [system_call+52/56]
Oct 5 11:48:39 m1 kernel: Code: 8b 6d 00 8b 4c 24 18 39 4b 48 75 54 8b 4c 24 24 39 4b 0c 75

Code; 00000000 Before first symbol
00000000 <_EIP>:
Code; 00000000 Before first symbol
0: 8b 6d 00 movl 0x0(%ebp),%ebp
Code; 00000003 Before first symbol
3: 8b 4c 24 18 movl 0x18(%esp,1),%ecx
Code; 00000007 Before first symbol
7: 39 4b 48 cmpl %ecx,0x48(%ebx)
Code; 0000000a Before first symbol
a: 75 54 jne 60 <_EIP+0x60> 00000060 Before first symbol
Code; 0000000c Before first symbol
c: 8b 4c 24 24 movl 0x24(%esp,1),%ecx
Code; 00000010 Before first symbol
10: 39 4b 0c cmpl %ecx,0xc(%ebx)
Code; 00000013 Before first symbol
13: 75 00 jne 15 <_EIP+0x15> 00000015 Before first symbol

Oct 5 11:48:50 m1 kernel: Unable to handle kernel paging request at virtual address fc478b00
Oct 5 11:48:50 m1 kernel: current->tss.cr3 = 05756000, %cr3 = 05756000
Oct 5 11:48:50 m1 kernel: *pde = 00000000
Oct 5 11:48:50 m1 kernel: Oops: 0000
Oct 5 11:48:50 m1 kernel: CPU: 0
Oct 5 11:48:50 m1 kernel: EIP: 0010:[d_lookup+92/208]
Oct 5 11:48:50 m1 kernel: EFLAGS: 00010212
Oct 5 11:48:50 m1 kernel: eax: 00001e98 ebx: fc478ae8 ecx: 6b8b704d edx: 0000031c
Oct 5 11:48:50 m1 kernel: esi: 00000000 edi: c7aa9026 ebp: fc478b00 esp: c1ec3f2c
Oct 5 11:48:50 m1 kernel: ds: 0018 es: 0018 ss: 0018
Oct 5 11:48:50 m1 kernel: Process save-session (pid: 6532, process nr: 58, stackpage=c1ec3000)
Oct 5 11:48:50 m1 kernel: Stack: c7aa9026 00000001 c0264a58 c7aa901c 6b8b704d 0000000a c0129f5c c63f1a20
Oct 5 11:48:50 m1 kernel: c1ec3f74 c1ec3f74 c012a1bb c63f1a20 c1ec3f74 00000001 c7aa9000 c7aa9000
Oct 5 11:48:50 m1 kernel: 00000004 bffff6d8 c7aa901c 0000000a 6b8b704d c012a2b8 c7aa9000 c63f1a20
Oct 5 11:48:50 m1 kernel: Call Trace: [cached_lookup+16/84] [lookup_dentry+275/488] [__namei+40/88] [sys_access+144/260] [system_call+52/56]
Oct 5 11:48:50 m1 kernel: Code: 8b 6d 00 8b 4c 24 18 39 4b 48 75 54 8b 4c 24 24 39 4b 0c 75

Code; 00000000 Before first symbol
00000000 <_EIP>:
Code; 00000000 Before first symbol
0: 8b 6d 00 movl 0x0(%ebp),%ebp
Code; 00000003 Before first symbol
3: 8b 4c 24 18 movl 0x18(%esp,1),%ecx
Code; 00000007 Before first symbol
7: 39 4b 48 cmpl %ecx,0x48(%ebx)
Code; 0000000a Before first symbol
a: 75 54 jne 60 <_EIP+0x60> 00000060 Before first symbol
Code; 0000000c Before first symbol
c: 8b 4c 24 24 movl 0x24(%esp,1),%ecx
Code; 00000010 Before first symbol
10: 39 4b 0c cmpl %ecx,0xc(%ebx)
Code; 00000013 Before first symbol
13: 75 00 jne 15 <_EIP+0x15> 00000015 Before first symbol

Oct 5 11:48:55 m1 kernel: Unable to handle kernel paging request at virtual address fc478b00
Oct 5 11:48:55 m1 kernel: current->tss.cr3 = 057e1000, %cr3 = 057e1000
Oct 5 11:48:55 m1 kernel: *pde = 00000000
Oct 5 11:48:55 m1 kernel: Oops: 0000
Oct 5 11:48:55 m1 kernel: CPU: 0
Oct 5 11:48:55 m1 kernel: EIP: 0010:[d_lookup+92/208]
Oct 5 11:48:55 m1 kernel: EFLAGS: 00010212
Oct 5 11:48:55 m1 kernel: eax: 00001e98 ebx: fc478ae8 ecx: 6b8b704d edx: 0000031c
Oct 5 11:48:55 m1 kernel: esi: 00000000 edi: c4129026 ebp: fc478b00 esp: c485ff2c
Oct 5 11:48:55 m1 kernel: ds: 0018 es: 0018 ss: 0018
Oct 5 11:48:55 m1 kernel: Process save-session (pid: 6534, process nr: 52, stackpage=c485f000)
Oct 5 11:48:55 m1 kernel: Stack: c4129026 00000001 c0264a58 c412901c 6b8b704d 0000000a c0129f5c c63f1a20
Oct 5 11:48:55 m1 kernel: c485ff74 c485ff74 c012a1bb c63f1a20 c485ff74 00000001 c4129000 c4129000
Oct 5 11:48:55 m1 kernel: 00000004 bffff6d8 c412901c 0000000a 6b8b704d c012a2b8 c4129000 c63f1a20
Oct 5 11:48:55 m1 kernel: Call Trace: [cached_lookup+16/84] [lookup_dentry+275/488] [__namei+40/88] [sys_access+144/260] [system_call+52/56]
Oct 5 11:48:55 m1 kernel: Code: 8b 6d 00 8b 4c 24 18 39 4b 48 75 54 8b 4c 24 24 39 4b 0c 75

Code; 00000000 Before first symbol
00000000 <_EIP>:
Code; 00000000 Before first symbol
0: 8b 6d 00 movl 0x0(%ebp),%ebp
Code; 00000003 Before first symbol
3: 8b 4c 24 18 movl 0x18(%esp,1),%ecx
Code; 00000007 Before first symbol
7: 39 4b 48 cmpl %ecx,0x48(%ebx)
Code; 0000000a Before first symbol
a: 75 54 jne 60 <_EIP+0x60> 00000060 Before first symbol
Code; 0000000c Before first symbol
c: 8b 4c 24 24 movl 0x24(%esp,1),%ecx
Code; 00000010 Before first symbol
10: 39 4b 0c cmpl %ecx,0xc(%ebx)
Code; 00000013 Before first symbol
13: 75 00 jne 15 <_EIP+0x15> 00000015 Before first symbol

1 warning issued. Results may not be reliable.

*** following is reproduced from notes on paper (well, i do not have serial
console :) ***

ksymoops 0.7c on i586 2.2.13pre15. Options used
-V (default)
-k /proc/ksyms (default)
-l /proc/modules (default)
-o /lib/modules/2.2.13pre15/ (default)
-m /boot/System.map-2.2.13-pre15 (specified)

No modules in ksyms, skipping objects
Warning (read_lsmod): no symbols in lsmod, is /proc/modules a valid lsmod file?
Oct 5 11:55:03 m1 kernel: Unable to handle kernel paging request at virtual address fc478b00
Oct 5 11:55:03 m1 kernel: current->tss.cr3 = 07fa8000, %cr3 = 07fa8000
Oct 5 11:55:03 m1 kernel: *pde = 00000000
Oct 5 11:55:03 m1 kernel: Oops: 0000
Oct 5 11:55:03 m1 kernel: CPU: 0
Oct 5 11:55:03 m1 kernel: EIP: 0010:[<c012ef4c>]
Using defaults from ksymoops -t elf32-i386 -a i386
Oct 5 11:55:03 m1 kernel: EFLAGS: 00010212
Oct 5 11:55:03 m1 kernel: eax: 00001e98 ebx: fc478ae8 ecx: 6f8e3272 edx: 00000378
Oct 5 11:55:03 m1 kernel: esi: 00000000 edi: c1dfb00c ebp: fc478b00 esp: c1dfb00c
Oct 5 11:55:03 m1 kernel: ds: 0018 es: 0018 ss: 0018
Oct 5 11:55:03 m1 kernel: Process init (pid: 1, process nr: 1, stackpage=c7ff9000)
Oct 5 11:55:03 m1 kernel: Stack: c1dfb00c 00000001 c0264a58 c1dfb005 6f8e3272d 00000007 c0129f5c c7fbb460
Oct 5 11:55:03 m1 kernel: c7ff9f54 c7ff9f54 c012a1bb c7fbb460 c7ff9f54 00000001 c7fb9140 ffffffe9
Oct 5 11:55:03 m1 kernel: 00000001 bffff608 c1dfb005 00000007 6f8e3272 c012a34e c1dfb000 c7fbb460
Oct 5 11:55:03 m1 kernel: Call Trace: [<c0129f5c>] [<c012a1bb>] [<c012a34e>] [<c0122edc>] [<c012311e>] [<c01086d8>]
Oct 5 11:55:03 m1 kernel: Code: 8b 6d 00 8b 4c 24 18 39 4b 48 75 54 8b 4c 24 24 39 4b 0c 75

>>EIP; c012ef4c <d_lookup+5c/d0> <=====
Trace; c0129f5c <cached_lookup+10/54>
Trace; c012a1bb <lookup_dentry+113/1e8>
Trace; c012a34e <open_namei+66/350>
Trace; c0122edc <filp_open+44/f0>
Trace; c012311e <sys_open+36/94>
Trace; c01086d8 <system_call+34/38>
Code; c012ef4c <d_lookup+5c/d0>
00000000 <_EIP>:
Code; c012ef4c <d_lookup+5c/d0> <=====
0: 8b 6d 00 movl 0x0(%ebp),%ebp <=====
Code; c012ef4f <d_lookup+5f/d0>
3: 8b 4c 24 18 movl 0x18(%esp,1),%ecx
Code; c012ef53 <d_lookup+63/d0>
7: 39 4b 48 cmpl %ecx,0x48(%ebx)
Code; c012ef56 <d_lookup+66/d0>
a: 75 54 jne 60 <_EIP+0x60> c012efac <d_lookup+bc/d0>
Code; c012ef58 <d_lookup+68/d0>
c: 8b 4c 24 24 movl 0x24(%esp,1),%ecx
Code; c012ef5c <d_lookup+6c/d0>
10: 39 4b 0c cmpl %ecx,0xc(%ebx)
Code; c012ef5f <d_lookup+6f/d0>
13: 75 00 jne 15 <_EIP+0x15> c012ef61 <d_lookup+71/d0>

1 warning issued. Results may not be reliable.

[6.]

image conversion program (probably) - i.e. intensive operations on ext2
filesystem?

when running connversion, error occured about 10 minutes after start of
conversion. but when running conversion second time (after reboot), to see
whether i can reproduce this crash, after about 4 hour is system still up
(and converting) without any oops messages.

[7.]

[7.1.]

-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Linux m1.megaloman.sk 2.2.13pre15 #3 Tue Oct 5 10:25:44 EDT 1999 i586
unknown
Kernel modules 2.1.121
Gnu C egcs-2.91.66
Binutils 2.9.1.0.23
Linux C Library 2.1.2
Dynamic linker ldd (GNU libc) 2.1.2
Procps 2.0.2
Mount 2.9s
Net-tools 1.53
Console-tools 1999.03.02
Sh-utils 1.16
Modules Loaded

[7.2.]

processor : 0
vendor_id : GenuineIntel
cpu family : 5
model : 4
model name : Pentium MMX
stepping : 3
cpu MHz : 200.458734
fdiv_bug : no
hlt_bug : no
sep_bug : no
f00f_bug : yes
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 1
wp : yes
flags : fpu vme de pse tsc msr mce cx8 mmx
bogomips : 399.77

[7.3.]

no modules

[7.4.]

Attached devices:
Host: scsi0 Channel: 00 Id: 01 Lun: 00
Vendor: SEAGATE Model: ST51080N Rev: 0913
Type: Direct-Access ANSI SCSI revision: 02

hany

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/