From owner-freebsd-current Mon Sep 2 16: 0:33 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EFF2837B400 for ; Mon, 2 Sep 2002 16:00:25 -0700 (PDT) Received: from warez.scriptkiddie.org (uswest-dsl-142-38.cortland.com [209.162.142.38]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3DA3C43E6E for ; Mon, 2 Sep 2002 16:00:25 -0700 (PDT) (envelope-from lamont@scriptkiddie.org) Received: from [192.168.69.11] (unknown [192.168.69.11]) by warez.scriptkiddie.org (Postfix) with ESMTP id 7D61C62D1A for ; Mon, 2 Sep 2002 16:00:24 -0700 (PDT) Date: Mon, 2 Sep 2002 16:02:11 -0700 (PDT) From: Lamont Granquist To: FreeBSD-Current Subject: perl busted, spins, ignores SIGKILL In-Reply-To: <20020903002426.B1166-100000@nihil> Message-ID: <20020902153944.T4462-100000@coredump.scriptkiddie.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG i cvsup'd last night, and now i tried portupdate -a -f and debugging build problems with libtool i found that on my system i can make perl spin and consume 100% of a CPU just by: perl -pe s/foo/bar/g /tmp (turs out i can do this with any perl command, even perl --version...) i also can't kill this process, or attach to it with gdb. i can get an strace though which looks like: execve("<8A>^D(H^E(<^D^E(^?^R ", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = 0 mmap(0, 2664, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28061000 munmap(0x28061000, 2664) = 0 __sysctl([sysctl.debug], 2, "", [0], NULL, 0) = 0 mmap(0, 32768, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0x28061000 geteuid(0x28049000) = 0 getuid() = 0 (euid 0) getegid(0x28049000) = 0 getgid() = 0 (egid 0) open("/var/run/ld-elf.so.hints", O_RDONLY) = 3 read(3, " object\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 128) = 128 lseek(3, 549755813888, SEEK_SET) = 128 read(3, "/usr/lib:/usr/lib/compat:/usr/X1"..., 55) = 55 close(3) = 0 access("/usr/lib/libc.so.5", F_OK) = 0 open("/usr/lib/libc.so.5", O_RDONLY) = 3 fstat(3, {st_mode=0, st_size=0, ...}) = 0 read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 409 6 mmap(0, 794624, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0x28069000 mmap(0x28113000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3, 0xa90000 0000000) = 0x28113000 mmap(0x28118000, 77824, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANON, -1 , 0) = 0x28118000 close(3) = 0 mmap(0, 216, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x2812b000 munmap(0x2812b000, 216) = 0 mprotect(0x28069000, 696320, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 mmap(0, 18824, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x2812b000 munmap(0x2812b000, 18824) = 0 mprotect(0x28069000, 696320, PROT_READ|PROT_EXEC) = 0 sigaction(SIGILL, {SIG_DFL}, {SIG_DFL}) = 0 sigprocmask(SIG_BLOCK, NULL, []) = 0 sigaction(SIGILL, {SIG_DFL}, NULL) = 0 sigprocmask(SIG_BLOCK, ~[ILL TRAP ABRT EMT FPE BUS SEGV SYS], []) = 0 sigprocmask(SIG_SETMASK, [], NULL) = 0 execve("<8A>^D(H^E(D^L^E(^?^R ", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = -1 ENOENT (No such file or directory) execve("", [], [/* 0 vars */]) = 0 (wash, rinse, repeat endlessly..) strace sometimes fails with: PIOCWSTOP: Input/output error ahhh... the plot thickens, now its stopped consuming CPU, strace does this: coredump# strace -p 4432 --- SIGINT (Interrupt) --- --- SIGINT (Interrupt) --- coredump# strace -p 4432 strace: open("/proc/...", ...): No such file or directory trouble opening proc file coredump# strace -p 4432 strace: open("/proc/...", ...): No such file or directory trouble opening proc file To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message