[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#425592: marked as done (grep segfaults and causes oops)



Your message dated Sat, 21 Feb 2009 19:15:52 +0100
with message-id <20090221181552.GA4012@galadriel.inutil.org>
and subject line Re: grep segfaults and causes oops
has caused the Debian Bug report #425592,
regarding grep segfaults and causes oops
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
425592: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=425592
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: base
Version: 4.0 (etch)
Severity: Important

Running the following command (as root)caused grep to cause a segmentation fault and a kernel oops.

	grep -ri "wiki" /

Below is the relevant dmesg output:

======================================[BEGIN PASTE]=====================================
BUG: unable to handle kernel paging request at virtual address 448910f0
 printing eip:
c018da88
*pde = 00000000
Oops: 0000 [#1]
SMP
Modules linked in: nfs ipv6 nfsd exportfs lockd nfs_acl sunrpc appletalk dm_snapshot dm_mirror dm_mod loop ad1848 uart401 sound snd_opl3_lib snd_hwdep snd_cs4231_lib snd_pcm snd_timer snd_page_alloc snd_mpu401_uart snd_rawmidi snd_seq_device ns558 snd gameport i2c_piix4 soundcore rtc parport_pc parport psmouse intel_agp i2c_core ide_floppy floppy shpchp pci_hotplug agpgart pcspkr evdev ext3 jbd mbcache ide_cd cdrom ide_disk generic piix ide_core 3c59x mii uhci_hcd usbcore processor
CPU:    0
EIP:    0060:[<c018da88>]    Not tainted VLI
EFLAGS: 00010202   (2.6.18-4-686 #1)
EIP is at sysfs_open_file+0x8d/0x166
eax: 448910ec   ebx: c1512114   ecx: c02dc014   edx: 00000000
esi: d7fb49e8   edi: d7fb49e8   ebp: e09857b4   esp: d7e1def8
ds: 007b   es: 007b   ss: 0068
Process grep (pid: 2589, ti=d7e1c000 task=d9162550 task.ti=d7e1c000)
Stack: d7a9f0e0 d7a9f0e0 d7fb49e8 b7fbaff4 c018d9fb c0158b69 c147a1a0 d7fb3a9c d7a9f0e0 d7e1df3c b7fbaff4 00000003 c0158cb1 d7a9f0e0 00000000 00008000 c0158ceb d7fb3a9c c147a1a0 0f1282d5 4652ef26 0f1282d5 00000101 00000001
Call Trace:
 [<c018d9fb>] sysfs_open_file+0x0/0x166
 [<c0158b69>] __dentry_open+0xc8/0x1ac
 [<c0158cb1>] nameidata_to_filp+0x19/0x28
 [<c0158ceb>] do_filp_open+0x2b/0x31
 [<c0161f5c>] sys_stat64+0x1e/0x23
 [<c0158d2f>] do_sys_open+0x3e/0xb3
 [<c0158dd1>] sys_open+0x16/0x18
 [<c0102c11>] sysenter_past_esp+0x56/0x79
Code: 04 85 d2 74 1f 89 e0 25 00 e0 ff ff 83 3a 02 8b 40 10 0f 84 cb 00 00 00 c1 e0 05 8d 84 10 20 01 00 00 ff 00 8b 45 28 85 c0 74 07 <8b> 40 04 85 c0 75 0c 8b 45 2c be 94 0a 2d c0 85 c0 74 07 8b 70
EIP: [<c018da88>] sysfs_open_file+0x8d/0x166 SS:ESP 0068:d7e1def8
======================================[END PASTE]===================================


This bug has been readily reproducible. My suspicion is that it is caused by grep improperly handling special system files. If there exists a trivial method of detecting these files it should probably be used to tell grep to ignore them until better error handling can be implemented.

-- System Information:
Debian Release: 4.0
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18-4-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)



--- End Message ---
--- Begin Message ---
On Tue, May 22, 2007 at 01:57:57PM -0400, Patrick Carter wrote:
> Package: base
> Version: 4.0 (etch)
> Severity: Important
>
> Running the following command (as root)caused grep to cause a 
> segmentation fault and a kernel oops.
>
> 	grep -ri "wiki" /
>
> Below is the relevant dmesg output:
>
> ======================================[BEGIN PASTE]=====================================
> BUG: unable to handle kernel paging request at virtual address 448910f0
>  printing eip:
> c018da88
> *pde = 00000000
> Oops: 0000 [#1]
> SMP
> Modules linked in: nfs ipv6 nfsd exportfs lockd nfs_acl sunrpc appletalk  
> dm_snapshot dm_mirror dm_mod loop ad1848 uart401 sound snd_opl3_lib  
> snd_hwdep snd_cs4231_lib snd_pcm snd_timer snd_page_alloc snd_mpu401_uart 
> snd_rawmidi snd_seq_device ns558 snd gameport i2c_piix4 soundcore rtc  
> parport_pc parport psmouse intel_agp i2c_core ide_floppy floppy shpchp  
> pci_hotplug agpgart pcspkr evdev ext3 jbd mbcache ide_cd cdrom ide_disk  
> generic piix ide_core 3c59x mii uhci_hcd usbcore processor
> CPU:    0
> EIP:    0060:[<c018da88>]    Not tainted VLI
> EFLAGS: 00010202   (2.6.18-4-686 #1)
> EIP is at sysfs_open_file+0x8d/0x166
> eax: 448910ec   ebx: c1512114   ecx: c02dc014   edx: 00000000
> esi: d7fb49e8   edi: d7fb49e8   ebp: e09857b4   esp: d7e1def8
> ds: 007b   es: 007b   ss: 0068
> Process grep (pid: 2589, ti=d7e1c000 task=d9162550 task.ti=d7e1c000)
> Stack: d7a9f0e0 d7a9f0e0 d7fb49e8 b7fbaff4 c018d9fb c0158b69 c147a1a0  
> d7fb3a9c
>        d7a9f0e0 d7e1df3c b7fbaff4 00000003 c0158cb1 d7a9f0e0 00000000  
> 00008000
>        c0158ceb d7fb3a9c c147a1a0 0f1282d5 4652ef26 0f1282d5 00000101  
> 00000001
> Call Trace:
>  [<c018d9fb>] sysfs_open_file+0x0/0x166
>  [<c0158b69>] __dentry_open+0xc8/0x1ac
>  [<c0158cb1>] nameidata_to_filp+0x19/0x28
>  [<c0158ceb>] do_filp_open+0x2b/0x31
>  [<c0161f5c>] sys_stat64+0x1e/0x23
>  [<c0158d2f>] do_sys_open+0x3e/0xb3
>  [<c0158dd1>] sys_open+0x16/0x18
>  [<c0102c11>] sysenter_past_esp+0x56/0x79
> Code: 04 85 d2 74 1f 89 e0 25 00 e0 ff ff 83 3a 02 8b 40 10 0f 84 cb 00 
> 00 00 c1 e0 05 8d 84 10 20 01 00 00 ff 00 8b 45 28 85 c0 74 07 <8b> 40 04 
> 85 c0 75 0c 8b 45 2c be 94 0a 2d c0 85 c0 74 07 8b 70
> EIP: [<c018da88>] sysfs_open_file+0x8d/0x166 SS:ESP 0068:d7e1def8
> ======================================[END PASTE]===================================
>
>
> This bug has been readily reproducible.  My suspicion is that it is  
> caused by grep improperly handling special system files.  If there exists 
> a trivial method of detecting these files it should probably be used to  
> tell grep to ignore them until better error handling can be implemented.

This bug report has been pinged at least twice for more
information, so I'm closing it now.

If anyone reencounters the problem, please reopen this
bug.

Cheers,
        Moritz


--- End Message ---

Reply to: