From owner-freebsd-current Thu Apr 20 04:12:30 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id EAA26039 for current-outgoing; Thu, 20 Apr 1995 04:12:30 -0700 Received: from utrhcs.cs.utwente.nl (utrhcs.cs.utwente.nl [130.89.10.247]) by freefall.cdrom.com (8.6.10/8.6.6) with SMTP id EAA26033 for ; Thu, 20 Apr 1995 04:12:27 -0700 Received: from utis156.cs.utwente.nl by utrhcs.cs.utwente.nl (5.0/csrelayMX-SVR4_1.0/RB) id AA05528; Thu, 20 Apr 1995 13:12:17 --100 Received: by utis156.cs.utwente.nl (4.1/RBCS-1.0.1) id AA12725; Thu, 20 Apr 95 13:12:09 +0200 To: current@FreeBSD.org Subject: Programs using kmem always dump core Date: Thu, 20 Apr 1995 13:12:08 +0200 Message-Id: <12724.798376328@utis156.cs.utwente.nl> From: Andras Olah content-length: 884 Sender: current-owner@FreeBSD.org Precedence: bulk Programs that use kvm (e.g. ifconfig, savecore, kvm_mkdb at bootup, but also netstat or ps) dump core on my current machine. I've supped the sources at Wed Apr 19 05:01:02 1995 (reported by sup -t) and did a 'make world -DCLOBBER', so I expect everything on the system to be up to date. Checking some of the core dumps shows that the problem is always in an strcmp call. Does anybody have a clue on what's going wrong. (I can supply more details if needed.) Andras (gdb) run -aux Starting program: /usr/src/bin/ps/obj/ps -aux USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND Program received signal SIGSEGV, Segmentation fault. 0xe106 in strcmp () (gdb) bt #0 0xe106 in strcmp () #1 0x6d40 in __fdnlist () #2 0x52d3 in kvm_nlist () #3 0x1cfb in donlist () #4 0x2885 in getpcpu () #5 0x3674 in pscomp () #6 0x9182 in qsort () #7 0x3373 in main ()