Jump to content

Segmentation fault with grep


zion
 Share

Recommended Posts

I've a mandrake 9.0 with mostly all updates (everything related to apache/mysql/php and other vital services for me) and lately, everytime I restart apache or bind using

 

service named restart

or

service httpd restart

 

I receive a segfault from grep:

Segmentation fault grep -q '^LIBSAFE=yes$' /etc/sysconfig/system

 

I tried some commands in the shell and the result is quite strange... But as I never use grep I don't know what could be broken :unsure:

 

[root@akretio root]# grep -q
Segmentation fault (core dumped)
[root@akretio root]# grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
[root@akretio root]# grep
Usage: grep [OPTION]... PATTERN [FILE]...
Try `grep --help' for more information.
[root@akretio root]# grep -v
Segmentation fault (core dumped)
[root@akretio root]#

 

Thanks for the help, I don't like to see this segfault :D

Link to comment
Share on other sites

There is no update, and I can't use urpme grep :D

 

[root@akretio root]# urpme grep
removing package initscripts-6.91-10mdk will break your system
removing package mkbootdisk-1.4.5-4mdk will break your system
removing package SysVinit-2.83-5mdk will break your system
removing package passwd-0.67-5mdk will break your system
removing package mkinitrd-3.1.6-31mdk will break your system
removing package basesystem-9.0-1mdk will break your system
removing package libsasl7-1.5.27-5mdk will break your system
removing package libuser-0.51-3mdk will break your system
removing package grep-2.5-5mdk will break your system
removing package kernel-2.4.19.16mdk-1-1mdk will break your system
removing package vixie-cron-3.0.1-54mdk will break your system
removing package util-linux-2.11u-1mdk will break your system
removing package sysklogd-1.4.1-3mdk will break your system
removing package console-tools-0.2.3-35mdk will break your system
removing package libuser1-0.51-3mdk will break your system
removing package libldap2-2.0.25-7mdk will break your system
removing package pam-0.75-25.2mdk will break your system
removing package sh-utils-2.0.15-2mdk will break your system

 

:o

Link to comment
Share on other sites

Hum, I forced a reinstall of grep, same problem :|

 

[root@akretio sbuysse]# grep --v

grep (GNU grep) 2.5

 

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.

This is free software; see the source for copying conditions. There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

[root@akretio sbuysse]# service named restart

Stopping named: [ OK ]

Starting named: /etc/init.d/named: line 95: 24245 Segmentation fault grep -q '^LIBSAFE=yes$' /etc/sysconfig/system

[ OK ]

[root@akretio sbuysse]# grep -q

Segmentation fault (core dumped)

[root@akretio sbuysse]# grep -rs

Segmentation fault (core dumped)

 

The grep is the original grep from the 9.0 cd :/

 

I'll try an auto update for all :D

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...