You are not logged in.

#1 2005-03-20 21:14:53

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Segmentation fault error

I'm not very familiar with shell scripting in linux so bare with me...

I have wrote a script which calls on another to open up in a terminal and execute a virus scan via clamscan. I has worked fine for me for weeks, now all of the sudden it gets half way through the scan then it gives me:

5177 Segmentation fault       $clamscan -ri --bell / --exclude=/windows --exclude=/var/cache/pacman/pkg

the first script is this (name linux_scan1):

#!/bin/sh
konsole="/opt/kde/bin/konsole"
$konsole --noclose -e /home/emperor/clamav/linux_scan2
# end of file

which calls on this (named linux_scan2):

#!/bin/sh
clamscan="/usr/bin/clamscan"
$clamscan -ri --bell / --exclude=/windows --exclude=/var/cache/pacman/pkg
#end of file

Like I said this worked fine for me up until now. Any help or suggestions would be greatly appreciated.

Offline

#2 2005-03-20 21:48:47

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Segmentation fault error

try clamscan by itself... see if it's that that's segfaulting

Offline

#3 2005-03-20 21:51:32

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Segmentation fault error

Sorry, forgot to mention that.  I tried it and it went through fine. I'm almost positive it has something to do with recent updates, but I figured my code was wrong to begin with.

Offline

#4 2005-03-20 22:00:27

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Segmentation fault error

[Edit] just tried it again and it did give me the error.

//sys/module/scsi_mod/parameters/max_luns: OK
//sys/module/scsi_mod/parameters/scsi_logging_level: OK
//sys/module/ide_cd/parameters/ignore: Access denied.
//sys/module/8250/parameters/share_irqs: OK
//sys/module/i8042/parameters/panicblink: Access denied.
//sys/module/i8042/parameters/debug: Access denied.
Segmentation fault


...I tried reinstalling clam but it didn't help.[/code]

Offline

#5 2005-03-21 00:00:22

phrakture
Arch Overlord
From: behind you
Registered: 2003-10-29
Posts: 7,879
Website

Re: Segmentation fault error

are you running it as root? I might guess that it's trying to read a file in a directory which it doesn't have read access to (the C dirent type stuff will segfault there)

Offline

#6 2005-03-21 00:29:26

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Segmentation fault error

Just tried it as root and I still get the segmentation error.

I've run clamscan in a terminal several times now, sometimes it goes through fine but most often it does not.  I'm wondering if there is a bug some place messing it up.
Have you had any problems running clam after doing a full system update?

Offline

#7 2005-03-21 00:54:45

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: Segmentation fault error

since u using konsole to execute the bash script, i would suggest trying an alternate terminal (xterm/aterm/etc) just to try and minimize the cause of the problem (bash/konsole).
just thinking out loud...

Offline

#8 2005-03-21 01:21:11

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Segmentation fault error

I've tried loggin into vc/1, stopping kde and running it from there. Still segmentation errors. While I was doing this, I switched around into different consoles running pacman -Syu and links. I got strange errors in each. I'm not sure what the exact errors where, it was something like /proc/bus errors, cant initialize clam data base(after running it a second time) and a bunch of other weird stuff that looked like it had to do with kernel entries. I had to even reboot to get back into kde. So I'm thinking it has to do with kernel or memory problems, or clam is just completely fscked.

here's my errors log, if it helps any:

Mar 20 14:34:25 eLINUXe usb 3-2: device descriptor read/64, error -71
Mar 20 14:34:25 eLINUXe hub 3-0:1.0: hub_port_status failed (err = -19)
Mar 20 14:34:25 eLINUXe hub 3-0:1.0: cannot disable port 2 (err = -19)
Mar 20 14:34:25 eLINUXe hub 3-0:1.0: cannot reset port 2 (err = -19)
Mar 20 14:34:25 eLINUXe hub 3-0:1.0: cannot disable port 2 (err = -19)
Mar 20 14:34:25 eLINUXe hub 3-0:1.0: cannot disable port 2 (err = -19)
Mar 20 14:35:20 eLINUXe hal.hotplug[3074]: DEVPATH is not set
Mar 20 14:35:21 eLINUXe hal.hotplug[3098]: DEVPATH is not set
Mar 20 14:35:21 eLINUXe hal.hotplug[3131]: DEVPATH is not set
Mar 20 14:35:22 eLINUXe hal.hotplug[3282]: DEVPATH is not set
Mar 20 14:35:22 eLINUXe hal.hotplug[3307]: DEVPATH is not set
Mar 20 14:35:22 eLINUXe hal.hotplug[3338]: DEVPATH is not set
Mar 20 14:35:22 eLINUXe hal.hotplug[3369]: DEVPATH is not set
Mar 20 14:35:23 eLINUXe hal.hotplug[3430]: DEVPATH is not set
Mar 20 14:35:23 eLINUXe eth1394: eth1: IEEE-1394 IPv4 over 1394 Ethernet (fw-host0)
Mar 20 14:35:23 eLINUXe eth1394: eth2: IEEE-1394 IPv4 over 1394 Ethernet (fw-host1)
Mar 20 14:35:23 eLINUXe hal.hotplug[3540]: DEVPATH is not set
Mar 20 14:35:24 eLINUXe hal.hotplug[3669]: DEVPATH is not set
Mar 20 14:35:26 eLINUXe hal.hotplug[3958]: DEVPATH is not set
Mar 20 14:35:27 eLINUXe hal.hotplug[4027]: DEVPATH is not set
Mar 20 14:35:27 eLINUXe hal.hotplug[4073]: DEVPATH is not set
Mar 20 14:35:28 eLINUXe hal.hotplug[4206]: DEVPATH is not set
Mar 20 14:35:30 eLINUXe hal.hotplug[4356]: DEVPATH is not set
Mar 20 14:35:30 eLINUXe hal.hotplug[4380]: DEVPATH is not set
Mar 20 14:35:31 eLINUXe hal.hotplug[4404]: DEVPATH is not set
Mar 20 14:35:31 eLINUXe hal.hotplug[4666]: DEVPATH is not set
Mar 20 14:35:38 eLINUXe dhcpcd[5364]: dhcpConfig: ioctl SIOCADDRT: File exists
Mar 20 14:35:40 eLINUXe kdm_config[5545]: Unrecognized key 'UseLilo' in section [Shutdown] at /opt/kde/share/config/kdm/kdmrc:13
Mar 20 14:35:47 eLINUXe kdm: :0[5719]: PAM unable to dlopen(/lib/security/pam_console.so)
Mar 20 14:35:47 eLINUXe kdm: :0[5719]: PAM [dlerror: /lib/security/pam_console.so: cannot open shared object file: No such file or directory]
Mar 20 14:35:47 eLINUXe kdm: :0[5719]: PAM adding faulty module: /lib/security/pam_console.so
Mar 20 14:35:47 eLINUXe kde-np(pam_unix)[5719]: unrecognized option [service=system-auth]
Mar 20 14:35:47 eLINUXe kde-np(pam_unix)[5719]: unrecognized option [service=system-auth]
Mar 20 19:32:23 eLINUXe kde-np(pam_unix)[5719]: unrecognized option [service=system-auth]
Mar 20 20:06:25 eLINUXe kdm_config[7716]: Unrecognized key 'UseLilo' in section [Shutdown] at /opt/kde/share/config/kdm/kdmrc:13
Mar 20 20:06:30 eLINUXe kdm: :0[7719]: PAM unable to dlopen(/lib/security/pam_console.so)
Mar 20 20:06:30 eLINUXe kdm: :0[7719]: PAM [dlerror: /lib/security/pam_console.so: cannot open shared object file: No such file or directory]
Mar 20 20:06:30 eLINUXe kdm: :0[7719]: PAM adding faulty module: /lib/security/pam_console.so
Mar 20 20:06:30 eLINUXe kde-np(pam_unix)[7719]: unrecognized option [service=system-auth]
Mar 20 20:06:30 eLINUXe kde-np(pam_unix)[7719]: unrecognized option [service=system-auth]
Mar 20 20:06:50 eLINUXe kde-np(pam_unix)[7719]: unrecognized option [service=system-auth]
Mar 20 20:06:50 eLINUXe kdm[7715]: Unknown session exit code 0 (sig 9) from manager process
Mar 20 20:07:05 eLINUXe dhcpcd[5366]: terminating on signal 15

Offline

#9 2005-03-21 16:10:33

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: Segmentation fault error

i would say those errors doesnt look related, but i can be wrong. only thing i can suggest is try and see if using a diff kernel or diff bash, solves this. maybe colliding memory issues... iono. then ofcourse, as u already suggested, could be this damn clamscan is playing a trick on us... :S

Offline

#10 2005-03-21 16:27:37

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: Segmentation fault error

z4ziggy wrote:

see if using a diff kernel or diff bash, solves this.

what do you mean by using a different bash? Like I said I'm very unfamiliar with shell scriptiing. sad

z4ziggy wrote:

then ofcourse, as u already suggested, could be this damn clamscan is playing a trick on us... :S

have you been having problems too?


I've noticed someone has posted a thread concerning recent segfault errors after updates. http://bbs.archlinux.org/viewtopic.php?t=10951

He said he removed and reinstalled some libraries which took tare of it but it created other new problems as well. :? I guess I'll keep an eye on the thread and see if I can make any sense out of whats going on with this segfaulting..... I cant do anything until later today anyways when I have more free time to mess around with it.

Offline

Board footer

Powered by FluxBB