zion Posted February 17, 2004 Report Share Posted February 17, 2004 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 Quote Link to comment Share on other sites More sharing options...
Qchem Posted February 17, 2004 Report Share Posted February 17, 2004 Your copy of grep somehow appears to be broken. Trying check if there is an update or if not force re-install the original rpm. Quote Link to comment Share on other sites More sharing options...
zion Posted February 17, 2004 Author Report Share Posted February 17, 2004 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 Quote Link to comment Share on other sites More sharing options...
ramfree17 Posted February 18, 2004 Report Share Posted February 18, 2004 find the package containing grep and then reinstall it via rpm. there is an option that (forcefully) refreshes the files in the package. sorry, my linux memory is waning so you would have to read the manpage of rpm. ciao! Quote Link to comment Share on other sites More sharing options...
neutro Posted February 18, 2004 Report Share Posted February 18, 2004 If you're sure you replace the exact same package, just do rpm -ivh --force Or just to be sure not erasing a newer package with an older one, rpm -ivh --replacefiles --replacepkgs You may also check out the rpmfix.sh script from this thread. Quote Link to comment Share on other sites More sharing options...
zion Posted February 18, 2004 Author Report Share Posted February 18, 2004 Thanks for the answers :) Quote Link to comment Share on other sites More sharing options...
zion Posted February 18, 2004 Author Report Share Posted February 18, 2004 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 Quote Link to comment Share on other sites More sharing options...
Qchem Posted February 19, 2004 Report Share Posted February 19, 2004 What happens when you give grep an actual file to look at, I'm guessing the same thing? Quote Link to comment Share on other sites More sharing options...
zion Posted February 19, 2004 Author Report Share Posted February 19, 2004 The problem seems more important, grep is broken, gunzip is broken and I can't update any list with urpmi... And now the machine is freezed, I'm waiting for someone to hardly reset the machine and I pray it will reboot Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.