[Gllug] Bad file descriptor

Ian Norton bredroll at atari.org
Tue Apr 29 16:54:13 UTC 2003


has somthing funky happened like your passwd files gone funny? i had squid
going nuts frequently when nis was down, it wasnt happy, 

Ian

On Tue, Apr 29, 2003 at 04:18:30PM +0100, Xander D Harkness wrote:
> I am having all the fun this week! :-)
> 
> Well another marathon post, however I think that this is more of a Linux
> issue rather than a Squid issue.  I am throwing out a request for a few
> ideas.
> 
> I have a box that was running squid and squidGuard very poorly.
> 
> It was so bad yesterday that squid would crash approximately every 20
> minutes.  So I stuck an entry in inittab and set it to respawn.  (I am
> working off site and this was a temporary fix)
> 
> I guess it became worse until it brought the server down this afternoon.
> 
> I had to run through a manual fsck as it would not repair the journal on /y
> 
> I removed squid and squidguard, I then reistalled the Red Hat default
> squid and ran it with the default configuration with -N (no daemon) and -X
> (full debug)
> 
> Squid does not even start writing to the log before it dies - there are no
> logs and without the strace there is minimal output:
> 
> Debug output
> 2003/04/29 16:11:06| leave_suid: PID 4007 giving up root, becoming 'squid'
> Aborted
> 
> strace output
> open("/var/run/squid.pid", O_RDONLY)    = 3
> fstat64(3, {st_mode=S_IFREG|0644, st_size=0, ...}) = 0
> mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
> = 0x40014000
> read(3, "", 4096)                       = 0
> close(3)                                = 0
> munmap(0x40014000, 4096)                = 0
> getrlimit(0x7, 0xbffff1c8)              = 0
> setrlimit(RLIMIT_NOFILE, {rlim_cur=1024, rlim_max=1024}) = 0
> getrlimit(0x2, 0xbffff1c8)              = 0
> close(1024)                             = -1 EBADF (Bad file descriptor)
> close(1023)                             = -1 EBADF (Bad file descriptor)
> 
> 
> 
> More of the same upwards
> close(15)                               = -1 EBADF (Bad file descriptor)
> close(14)                               = -1 EBADF (Bad file descriptor)
> close(13)                               = -1 EBADF (Bad file descriptor)
> close(12)                               = -1 EBADF (Bad file descriptor)
> close(11)                               = -1 EBADF (Bad file descriptor)
> close(10)                               = -1 EBADF (Bad file descriptor)
> close(9)                                = -1 EBADF (Bad file descriptor)
> close(8)                                = -1 EBADF (Bad file descriptor)
> close(7)                                = -1 EBADF (Bad file descriptor)
> close(6)                                = -1 EBADF (Bad file descriptor)
> close(5)                                = -1 EBADF (Bad file descriptor)
> close(4)                                = -1 EBADF (Bad file descriptor)
> close(3)                                = -1 EBADF (Bad file descriptor)
> mmap2(NULL, 180224, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> 0) = 0x400fe000
> write(2, "2003/04/29 15:41:44| cachemgrReg"..., 642003/04/29 15:41:44|
> cachemgrRegister: registered comm_incoming
> ) = 64
> write(2, "2003/04/29 15:41:44| fd_open FD "..., 402003/04/29 15:41:44|
> fd_open FD 0 stdin
> ) = 40
> write(2, "2003/04/29 15:41:44| fd_open FD "..., 412003/04/29 15:41:44|
> fd_open FD 1 stdout
> ) = 41
> write(2, "2003/04/29 15:41:44| fd_open FD "..., 412003/04/29 15:41:44|
> fd_open FD 2 stderr
> ) = 41
> rt_sigaction(SIGSEGV, {0x400626d0, [], SA_RESTORER|SA_NOMASK|SA_ONESHOT,
> 0x42028558}, NULL, 8) = 0
> rt_sigaction(SIGBUS, {0x400626d0, [], SA_RESTORER|SA_NOMASK|SA_ONESHOT,
> 0x42028558}, NULL, 8) = 0
> rt_sigaction(SIGPIPE, {SIG_IGN}, NULL, 8) = 0
> rt_sigaction(SIGCHLD, {0x400626d0, [], SA_RESTORER|SA_RESTART|SA_NOMASK,
> 0x42028558}, NULL, 8) = 0
> getpid()                                = 3741
> write(2, "2003/04/29 15:41:44| leave_suid:"..., 492003/04/29 15:41:44|
> leave_suid: PID 3741 called
> ) = 49
> geteuid32()                             = 0
> setgroups32(0x1, 0x819b168)             = 0
> setgid32(0x17upeek: ptrace(PTRACE_PEEKUSER, ... ): Operation not permitted
> 
> 
> 
> 
> 
> -- 
> Gllug mailing list  -  Gllug at linux.co.uk
> http://list.ftech.net/mailman/listinfo/gllug

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS dpu s--: a-- C++++ UL++ P+++ L+++ E--- W-- N+ o K w---
O M-- V-- PS++ PE-- Y+ PGP+ t+++ 5++ X++ R+++ !tv b DI D----
G++ e+ h++ r++ y+++
------END GEEK CODE BLOCK------
----- Message of the Hour ------
Moooo :-)


-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list