From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 24 09:56:00 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37F2F16A4CE for ; Sat, 24 Apr 2004 09:56:00 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id D4BC743D4C for ; Sat, 24 Apr 2004 09:55:59 -0700 (PDT) (envelope-from sam@errno.com) Received: from [66.127.85.89] ([66.127.85.89]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i3OGttWR039964 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Sat, 24 Apr 2004 09:55:55 -0700 (PDT) (envelope-from sam@errno.com) In-Reply-To: References: Mime-Version: 1.0 (Apple Message framework v613) Content-Type: multipart/mixed; boundary=Apple-Mail-2--708136844 Message-Id: <44658B20-9610-11D8-AAEB-000A95AD0668@errno.com> From: Sam Leffler Date: Sat, 24 Apr 2004 09:56:01 -0700 To: "Oldach, Helge" X-Mailer: Apple Mail (2.613) X-Mailman-Approved-At: Sun, 25 Apr 2004 04:47:53 -0700 cc: freebsd-hackers@freebsd.org cc: 'Mike Tancsa' Subject: Re: FAST_IPSEC bug fix X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2004 16:56:00 -0000 --Apple-Mail-2--708136844 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Apr 24, 2004, at 9:03 AM, Oldach, Helge wrote: > Hi list, > > this is a month-old mail about the lack of a FAST_IPSEC feature > compared > to legacy IPSEC. Including a working patch. I haven't seen this being > committed, or is it? Please also MFC to STABLE. The fix was not quite right for -current (where it needs to go in first). I sent out the attached patch for testing but received no feedback. Until I can get it tested and committed to -current it won't be MFC'd. Sam --Apple-Mail-2--708136844 Content-Transfer-Encoding: 7bit Content-Type: application/octet-stream; x-unix-mode=0644; name="key.patch" Content-Disposition: attachment; filename=key.patch Index: key.c =================================================================== RCS file: /usr/ncvs/src/sys/netipsec/key.c,v retrieving revision 1.11 diff -u -r1.11 key.c --- key.c 16 Feb 2004 17:09:53 -0000 1.11 +++ key.c 5 Apr 2004 16:16:05 -0000 @@ -173,12 +173,11 @@ #define SPACQ_LOCK_ASSERT() mtx_assert(&spacq_lock, MA_OWNED) /* search order for SAs */ -static u_int saorder_state_valid[] = { +static const u_int saorder_state_valid_prefer_old[] = { SADB_SASTATE_DYING, SADB_SASTATE_MATURE, - /* - * This order is important because we must select the oldest SA - * for outbound processing. For inbound, This is not important. - */ +}; +static const u_int saorder_state_valid_prefer_new[] = { + SADB_SASTATE_MATURE, SADB_SASTATE_DYING, }; static u_int saorder_state_alive[] = { /* except DEAD */ @@ -285,6 +284,7 @@ SYSCTL_INT(_net_key, KEYCTL_AH_KEYMIN, ah_keymin, CTLFLAG_RW, \ &ipsec_ah_keymin, 0, ""); +/* XXX change should be protected with SAHTREE_LOCK */ /* perfered old SA rather than new SA */ SYSCTL_INT(_net_key, KEYCTL_PREFERED_OLDSA, preferred_oldsa, CTLFLAG_RW,\ &key_preferred_oldsa, 0, ""); @@ -821,15 +821,24 @@ static struct secasvar * key_allocsa_policy(const struct secasindex *saidx) { +#define N(a) _ARRAYLEN(a) struct secashead *sah; struct secasvar *sav; - u_int stateidx, state; + u_int stateidx, arraysize; + const u_int *state_valid; SAHTREE_LOCK(); LIST_FOREACH(sah, &sahtree, chain) { if (sah->state == SADB_SASTATE_DEAD) continue; if (key_cmpsaidx(&sah->saidx, saidx, CMP_MODE_REQID)) { + if (key_preferred_oldsa) { + state_valid = saorder_state_valid_prefer_old; + arraysize = N(saorder_state_valid_prefer_old); + } else { + state_valid = saorder_state_valid_prefer_new; + arraysize = N(saorder_state_valid_prefer_new); + } SAHTREE_UNLOCK(); goto found; } @@ -839,20 +848,15 @@ return NULL; found: - /* search valid state */ - for (stateidx = 0; - stateidx < _ARRAYLEN(saorder_state_valid); - stateidx++) { - - state = saorder_state_valid[stateidx]; - - sav = key_do_allocsa_policy(sah, state); + for (stateidx = 0; stateidx < arraysize; stateidx++) { + sav = key_do_allocsa_policy(sah, state_valid[stateidx]); if (sav != NULL) return sav; } return NULL; +#undef N } /* @@ -1012,7 +1016,8 @@ { struct secashead *sah; struct secasvar *sav; - u_int stateidx, state; + u_int stateidx, arraysize, state; + const u_int *saorder_state_valid; IPSEC_ASSERT(dst != NULL, ("null dst address")); @@ -1026,11 +1031,16 @@ * encrypted so we can't check internal IP header. */ SAHTREE_LOCK(); + if (key_preferred_oldsa) { + saorder_state_valid = saorder_state_valid_prefer_old; + arraysize = _ARRAYLEN(saorder_state_valid_prefer_old); + } else { + saorder_state_valid = saorder_state_valid_prefer_new; + arraysize = _ARRAYLEN(saorder_state_valid_prefer_new); + } LIST_FOREACH(sah, &sahtree, chain) { /* search valid state */ - for (stateidx = 0; - stateidx < _ARRAYLEN(saorder_state_valid); - stateidx++) { + for (stateidx = 0; stateidx < arraysize; stateidx++) { state = saorder_state_valid[stateidx]; LIST_FOREACH(sav, &sah->savtree[state], chain) { /* sanity check */ --Apple-Mail-2--708136844 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed --Apple-Mail-2--708136844-- From owner-freebsd-hackers@FreeBSD.ORG Sat Apr 24 12:58:09 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 700D116A4CE for ; Sat, 24 Apr 2004 12:58:09 -0700 (PDT) Received: from ebb.errno.com (ebb.errno.com [66.127.85.87]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3E19743D4C for ; Sat, 24 Apr 2004 12:58:09 -0700 (PDT) (envelope-from sam@errno.com) Received: from [66.127.85.89] ([66.127.85.89]) (authenticated bits=0) by ebb.errno.com (8.12.9/8.12.6) with ESMTP id i3OJw5WR040398 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Sat, 24 Apr 2004 12:58:05 -0700 (PDT) (envelope-from sam@errno.com) In-Reply-To: <6.0.3.0.0.20040424142123.07bf3db0@64.7.153.2> References: <44658B20-9610-11D8-AAEB-000A95AD0668@errno.com> <6.0.3.0.0.20040424142123.07bf3db0@64.7.153.2> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Sam Leffler Date: Sat, 24 Apr 2004 12:58:14 -0700 To: Mike Tancsa X-Mailer: Apple Mail (2.613) X-Mailman-Approved-At: Sun, 25 Apr 2004 04:47:53 -0700 cc: freebsd-hackers@freebsd.org cc: "Oldach, Helge" Subject: Re: FAST_IPSEC bug fix X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Apr 2004 19:58:09 -0000 On Apr 24, 2004, at 11:24 AM, Mike Tancsa wrote: > > At 12:56 PM 24/04/2004, Sam Leffler wrote: >> On Apr 24, 2004, at 9:03 AM, Oldach, Helge wrote: >> >>> Hi list, >>> >>> this is a month-old mail about the lack of a FAST_IPSEC feature >>> compared >>> to legacy IPSEC. Including a working patch. I haven't seen this being >>> committed, or is it? Please also MFC to STABLE. >> >> The fix was not quite right for -current (where it needs to go in >> first). I sent out the attached patch for testing but received no >> feedback. Until I can get it tested and committed to -current it >> won't be MFC'd. > > We dont run -current here, so I dont have anything to test it on. > Also, due to the bugs in the driver with HiFn 7955, we have had to > abandon FAST_IPSEC :( Running FAST IPSEC w/o h/w crypto is still faster than KAME IPsec. See the results in my BSDCon paper. Sam From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 25 11:42:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2539016A4CE for ; Sun, 25 Apr 2004 11:42:11 -0700 (PDT) Received: from blurp.one.pl (blurp.t4.ds.pwr.wroc.pl [156.17.226.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9736D43D1F for ; Sun, 25 Apr 2004 11:42:10 -0700 (PDT) (envelope-from gizmen@blurp.one.pl) Received: by blurp.one.pl (Postfix, from userid 1001) id 2499A9C7; Sun, 25 Apr 2004 20:42:07 +0200 (CEST) Date: Sun, 25 Apr 2004 20:42:07 +0200 From: GiZmen To: freebsd-hackers@freebsd.org Message-ID: <20040425184207.GB15348@blurp.one.pl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: problem with gdb X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2004 18:42:11 -0000 Hello, I have problem with gdb. When i start gdb as a regular user or even user i wheel group, i cant debug program that i want. I start gdb with my program and i set breakpoint and i run this program. And i do not stop i this breakpoint. gdb prints output and this message: Program exited normally. You can't do that without a process to debug. and it return to gdb prompt. When i do the the same as root it works perfectly. I dont have any idea what is the cause of this problem. I am runnig FreeBSD 5.2.1-p3 and my user do not have any limits. thx for any adise. -- Best Regards: GiZmen UNIX is user-friendly; it's just picky about its friends UNIX is simple; it just takes a genius to understand its simplicity From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 25 13:02:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 680E916A4CE for ; Sun, 25 Apr 2004 13:02:50 -0700 (PDT) Received: from TRANG.nuxi.com (trang.nuxi.com [66.93.134.19]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2A1F043D2D for ; Sun, 25 Apr 2004 13:02:50 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: from dragon.nuxi.com (obrien@localhost [127.0.0.1]) by TRANG.nuxi.com (8.12.11/8.12.10) with ESMTP id i3PK2kZx004338; Sun, 25 Apr 2004 13:02:46 -0700 (PDT) (envelope-from obrien@dragon.nuxi.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.12.11/8.12.11/Submit) id i3PK2jDL004337; Sun, 25 Apr 2004 13:02:45 -0700 (PDT) (envelope-from obrien) Date: Sun, 25 Apr 2004 13:02:45 -0700 From: "David O'Brien" To: Ryan Sommers Message-ID: <20040425200245.GA97921@dragon.nuxi.com> Mail-Followup-To: David O'Brien , Ryan Sommers , hackers@freebsd.org References: <49216.63.226.178.14.1082755139.squirrel@www2.neuroflux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49216.63.226.178.14.1082755139.squirrel@www2.neuroflux.com> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 5.2-CURRENT Organization: The NUXI BSD Group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 cc: hackers@freebsd.org Subject: Re: Method of compiling boot0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: obrien@freebsd.org List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 25 Apr 2004 20:02:50 -0000 On Fri, Apr 23, 2004 at 03:18:59PM -0600, Ryan Sommers wrote: > I was browsing over the boot0 makefiles and source when I was playing with > some boot sector code of mine and I was wondering why the designers chose > to use objcopy to output a binary file instead of just using the --oformat > option when it's run over the linker. I converted most i386 boot things to use the linker options. I was unable to us them on boot2.bin. Rather using them to produce boot2.bin produced a different file than what is in CVS right now. I didn't have time to track down why, but if you'd like to analyis this I'd appreciate it. Index: i386/boot2/Makefile =================================================================== RCS file: /home/ncvs/src/sys/boot/i386/boot2/Makefile,v retrieving revision 1.55 diff -u -r1.55 Makefile --- i386/boot2/Makefile 17 Feb 2004 07:13:03 -0000 1.55 +++ i386/boot2/Makefile 25 Apr 2004 19:53:01 -0000 @@ -53,7 +53,7 @@ boot1.out: boot1.o ${LD} ${LDFLAGS} -e start -Ttext ${ORG1} -o ${.TARGET} boot1.o -CLEANFILES+= boot2 boot2.ld boot2.ldr boot2.bin boot2.out boot2.o \ +CLEANFILES+= boot2 boot2.ld boot2.ldr boot2.bin boot2.o \ boot2.s boot2.s.tmp boot2.h sio.o boot2: boot2.ld @@ -68,11 +68,8 @@ boot2.ldr: dd if=/dev/zero of=${.TARGET} bs=276 count=1 -boot2.bin: boot2.out - objcopy -S -O binary boot2.out ${.TARGET} - -boot2.out: ${BTXCRT} boot2.o sio.o - ${LD} ${LDFLAGS} -Ttext ${ORG2} -o ${.TARGET} ${.ALLSRC} +boot2.bin: ${BTXCRT} boot2.o sio.o + ${LD} ${LDFLAGS} -Ttext ${ORG2} -S --oformat binary -o ${.TARGET} ${.ALLSRC} boot2.o: boot2.s -- -- David (obrien@FreeBSD.org) From owner-freebsd-hackers@FreeBSD.ORG Sun Apr 25 18:20:54 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2BC4916A4DD for ; Sun, 25 Apr 2004 18:20:54 -0700 (PDT) Received: from ozlabs.org (ozlabs.org [203.10.76.45]) by mx1.FreeBSD.org (Postfix) with ESMTP id 310D843E95 for ; Sun, 25 Apr 2004 17:50:14 -0700 (PDT) (envelope-from grog@lemis.com) Received: from blackwater.lemis.com (blackwater.lemis.com [192.109.197.80]) by ozlabs.org (Postfix) with ESMTP id BF1AD2BD83 for ; Mon, 26 Apr 2004 10:50:11 +1000 (EST) Received: by blackwater.lemis.com (Postfix, from userid 1004) id 0CA6951227; Mon, 26 Apr 2004 10:20:09 +0930 (CST) Date: Mon, 26 Apr 2004 10:20:08 +0930 From: Greg 'groggy' Lehey To: GiZmen Message-ID: <20040426005008.GR70766@wantadilla.lemis.com> References: <20040425184207.GB15348@blurp.one.pl> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4PJudQiuYY5+cwwi" Content-Disposition: inline In-Reply-To: <20040425184207.GB15348@blurp.one.pl> User-Agent: Mutt/1.4.1i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 9A1B 8202 BCCE B846 F92F 09AC 22E6 F290 507A 4223 cc: freebsd-hackers@freebsd.org Subject: Re: problem with gdb X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 01:20:54 -0000 --4PJudQiuYY5+cwwi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Sunday, 25 April 2004 at 20:42:07 +0200, GiZmen wrote: > Hello, > > I have problem with gdb. When i start gdb as a regular user or even user > i wheel group, i cant debug program that i want. I start gdb with my program > and i set breakpoint and i run this program. And i do not stop i this > breakpoint. gdb prints output and this message: > > Program exited normally. > You can't do that without a process to debug. > > and it return to gdb prompt. > > When i do the the same as root it works perfectly. I dont have any > idea what is the cause of this problem. Looks like you're debugging a setuid executable. By the time you hit the breakpoint, the process has changed its euid, and you can no longer stop it. Greg -- Note: I discard all HTML mail unseen. Finger grog@FreeBSD.org for PGP public key. See complete headers for address and phone numbers. --4PJudQiuYY5+cwwi Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQFAjFzAIubykFB6QiMRApPhAJ0bxYoTQ8YCXeidQEoq0lrYFeoNHACeJi3G sVx0idfLrD69CHP+aendyP4= =ynBW -----END PGP SIGNATURE----- --4PJudQiuYY5+cwwi-- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 02:33:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8A38A16A4CE for ; Mon, 26 Apr 2004 02:33:26 -0700 (PDT) Received: from tri-e2k.ethz.ch (tri-e2k.ethz.ch [129.132.112.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1CF143D48 for ; Mon, 26 Apr 2004 02:33:25 -0700 (PDT) (envelope-from guerillero@arcor.de) Received: from xfe1.d.ethz.ch ([192.168.36.10]) by tri-e2k.ethz.ch with Microsoft SMTPSVC(5.0.2195.6713); Mon, 26 Apr 2004 11:33:25 +0200 Received: from arcor.de ([129.132.170.134]) by xfe1.d.ethz.ch with Microsoft SMTPSVC(6.0.3790.0); Mon, 26 Apr 2004 11:33:24 +0200 Message-ID: <408CD764.4010403@arcor.de> Date: Mon, 26 Apr 2004 11:33:24 +0200 From: guerillero User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031007 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-OriginalArrivalTime: 26 Apr 2004 09:33:24.0855 (UTC) FILETIME=[85C14070:01C42B71] X-Mailman-Approved-At: Mon, 26 Apr 2004 05:00:00 -0700 Subject: Promise 20378 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 09:33:26 -0000 Hello, i sucessfully installed FreeBSD 5.21 on a Tyan Trinity 2099 with a 20276 RAID onboard controller. Linux SuSE 9 does not support the RAID by default. Nevertheless, there´s something special about it if you use two new or low level formatted HDD: it is not sufficiant to create an array via bios without mirroring the image of one HDD to the other. Of course, this makes no sense from the "data view" (there are no data on the HDD), but this is a necessary step for the detection of the array in the installation process. The installation detects 3 HDD: each physical HDD as a single HDD, and the array, containing both HDD. Select only the array for the installation. -- ||| (°J°) guerillero! O~~~~~~~* From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 10:38:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A52416A4CF for ; Mon, 26 Apr 2004 10:38:49 -0700 (PDT) Received: from ack.Berkeley.EDU (ack.berkeley.edu [128.32.206.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2B09E43D58 for ; Mon, 26 Apr 2004 10:38:49 -0700 (PDT) (envelope-from mhunter@ack.Berkeley.EDU) Received: (from mhunter@localhost) by ack.Berkeley.EDU (8.11.3/8.11.3) id i3QHcmG25822 for freebsd-hackers@freebsd.org; Mon, 26 Apr 2004 10:38:48 -0700 (PDT) Date: Mon, 26 Apr 2004 10:38:48 -0700 From: Mike Hunter To: freebsd-hackers@freebsd.org Message-ID: <20040426173848.GA24490@ack.Berkeley.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: Core dump with tip (ucom0 -> external modem) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 17:38:49 -0000 Hey everybody, I am trying to set up a FBSD 5.2.1-RELEASE machine to be able to dial a number via tip as described here: http://docs.freebsd.org/doc/5.1-RELEASE/usr/share/doc/faq/serial.html (That page is a bit out of date, at least in that it says it applies to FBSD 2, 3, and 4.) My HW setup is an old pentium box with a USB to Serial cable attaching to a USR external 56k Modem. I added this to my /etc/remote tip115200|Dial any phone number at 115200 bps:\ :dv=/dev/ucom0:br#115200:at=hayes:pa=none:du: tip57600|Dial any phone number at 57600 bps:\ :dv=/dev/ucom0:br#57600:at=hayes:pa=none:du: cu115200|Use cu to dial any number at 115200bps:\ :dv=/dev/ucom0:br#57600:at=hayes:pa=none:du: tip9600|Dial any phone number at 9600 bps:\ :dv=/dev/ucom0:br#9600:at=hayes:pa=none:du: But the suggested command gives me core: tip -115200 23645 Segmentation fault (core dumped) Same result with -57600, -9600 and with cu syntax I have an entry for the usb serial device: usb1:dv=/dev/ucom0:br#9600:pa=none: And if I say tip usb1 I can issue dialer commands and it works. The ultimate goal here is having somebody be able to run a shell-script named "dial-funkybox" and have it dial and connect them. Sorry if I left out something important. Any thoughts? Thanks, Mike From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 11:46:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EE13916A4CE for ; Mon, 26 Apr 2004 11:46:52 -0700 (PDT) Received: from ms-smtp-02-eri0.texas.rr.com (ms-smtp-02.texas.rr.com [24.93.47.41]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3743343D2D for ; Mon, 26 Apr 2004 11:46:52 -0700 (PDT) (envelope-from shocking@houston.rr.com) Received: from bleep.craftncomp.com (cs68201234-207.houston.rr.com [68.201.234.207])i3QIknHv021467 for ; Mon, 26 Apr 2004 13:46:50 -0500 (CDT) Received: from bleep.craftncomp.com (localhost.craftncomp.com [127.0.0.1]) by bleep.craftncomp.com (8.12.11/8.12.3) with ESMTP id i3QIkmZV002230 for ; Mon, 26 Apr 2004 13:46:49 -0500 (CDT) (envelope-from shocking@bleep.craftncomp.com) Message-Id: <200404261846.i3QIkmZV002230@bleep.craftncomp.com> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 26 Apr 2004 13:46:48 -0500 From: Stephen Hocking X-Virus-Scanned: Symantec AntiVirus Scan Engine Subject: Vendors of multi-port PCI ethernet cards? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 18:46:53 -0000 All, Does anyone know where I can lay my hands on one of those 4 port ethernet cards that used to be around a while back? Stephen -- "Opiates are the religion of the masses." - David Cameron Staples From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 12:57:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 56C1B16A4CE for ; Mon, 26 Apr 2004 12:57:53 -0700 (PDT) Received: from multiplay.co.uk (www1.multiplay.co.uk [212.42.16.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id A006A43D54 for ; Mon, 26 Apr 2004 12:57:52 -0700 (PDT) (envelope-from killing@multiplay.co.uk) Received: from vader ([212.135.219.179]) by multiplay.co.uk (multiplay.co.uk [212.42.16.7]) (MDaemon.PRO.v7.0.1.R) with ESMTP id md50000152867.msg for ; Mon, 26 Apr 2004 20:55:58 +0100 Message-ID: <002201c42bc8$9cccd660$b3db87d4@multiplay.co.uk> From: "Steven Hartland" To: , "Stephen Hocking" References: <200404261846.i3QIkmZV002230@bleep.craftncomp.com> Date: Mon, 26 Apr 2004 20:56:48 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Spam-Processed: multiplay.co.uk, Mon, 26 Apr 2004 20:55:58 +0100 (not processed: message from valid local sender) X-MDRemoteIP: 212.135.219.179 X-Return-Path: killing@multiplay.co.uk X-MDaemon-Deliver-To: hackers@freebsd.org X-MDAV-Processed: multiplay.co.uk, Mon, 26 Apr 2004 20:56:03 +0100 Subject: Re: Vendors of multi-port PCI ethernet cards? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 19:57:53 -0000 Intel still do iirc. ----- Original Message ----- From: "Stephen Hocking" > Does anyone know where I can lay my hands on one of those 4 port ethernet > cards that used to be around a while back? ================================================ This e.mail is private and confidential between Multiplay (UK) Ltd. and the person or entity to whom it is addressed. In the event of misdirection, the recipient is prohibited from using, copying, printing or otherwise disseminating it or any information contained in it. In the event of misdirection, illegible or incomplete transmission please telephone (023) 8024 3137 or return the E.mail to postmaster@multiplay.co.uk. From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 18:07:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 44F2816A4D0 for ; Mon, 26 Apr 2004 18:07:52 -0700 (PDT) Received: from blurp.one.pl (blurp.t4.ds.pwr.wroc.pl [156.17.226.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B86B843D2F for ; Mon, 26 Apr 2004 18:07:51 -0700 (PDT) (envelope-from gizmen@blurp.one.pl) Received: by blurp.one.pl (Postfix, from userid 1001) id 3E52F9C7; Tue, 27 Apr 2004 00:19:00 +0200 (CEST) Date: Tue, 27 Apr 2004 00:19:00 +0200 From: GiZmen To: freebsd-hackers@freebsd.org Message-ID: <20040426221900.GA26440@blurp.one.pl> References: <20040425184207.GB15348@blurp.one.pl> <20040426005008.GR70766@wantadilla.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040426005008.GR70766@wantadilla.lemis.com> User-Agent: Mutt/1.5.6i Subject: Re: problem with gdb X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 01:07:52 -0000 > On Sunday, 25 April 2004 at 20:42:07 +0200, GiZmen wrote: > > Hello, > > > > I have problem with gdb. When i start gdb as a regular user or even user > > i wheel group, i cant debug program that i want. I start gdb with my program > > and i set breakpoint and i run this program. And i do not stop i this > > breakpoint. gdb prints output and this message: > > > > Program exited normally. > > You can't do that without a process to debug. > > > > and it return to gdb prompt. > > > > When i do the the same as root it works perfectly. I dont have any > > idea what is the cause of this problem. > > Looks like you're debugging a setuid executable. By the time you hit > the breakpoint, the process has changed its euid, and you can no > longer stop it. > ---end quoted text--- no i do not have suid bit on this binary. I tried on other freebsd box and on other boxes it works good. i dont know what is wrong with this gdb :( -rwxr-xr-x 1 gizmen gizmen - 128189 26 Kwi 01:40 rect_matrix* so what else can be wrong ? -- Best Regards: GiZmen UNIX is user-friendly; it's just picky about its friends UNIX is simple; it just takes a genius to understand its simplicity From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 18:14:32 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8320D16A4CE for ; Mon, 26 Apr 2004 18:14:32 -0700 (PDT) Received: from cain.gsoft.com.au (cain.gsoft.com.au [203.31.81.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E52F843D41 for ; Mon, 26 Apr 2004 18:14:29 -0700 (PDT) (envelope-from doconnor@gsoft.com.au) Received: from inchoate.gsoft.com.au (localhost [127.0.0.1]) (authenticated bits=0) by cain.gsoft.com.au (8.12.11/8.12.10) with ESMTP id i3R1ECDK025275; Tue, 27 Apr 2004 10:44:12 +0930 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: freebsd-hackers@freebsd.org Date: Tue, 27 Apr 2004 10:44:04 +0930 User-Agent: KMail/1.6.1 References: <20040426173848.GA24490@ack.Berkeley.EDU> In-Reply-To: <20040426173848.GA24490@ack.Berkeley.EDU> MIME-Version: 1.0 Content-Disposition: inline Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Message-Id: <200404271044.11474.doconnor@gsoft.com.au> X-Spam-Score: -4.9 () CARRIAGE_RETURNS,IN_REP_TO,PGP_SIGNATURE,QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_00_01,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.16 (www . roaringpenguin . com / mimedefang) cc: Mike Hunter Subject: Re: Core dump with tip (ucom0 -> external modem) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 01:14:32 -0000 =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tue, 27 Apr 2004 03:08, Mike Hunter wrote: > tip -115200 23645 > Segmentation fault (core dumped) > > Same result with -57600, -9600 and with cu syntax > > I have an entry for the usb serial device: > > usb1:dv=3D/dev/ucom0:br#9600:pa=3Dnone: > > And if I say > > tip usb1 > > I can issue dialer commands and it works. > > The ultimate goal here is having somebody be able to run a shell-script > named "dial-funkybox" and have it dial and connect them. > > Sorry if I left out something important. Any thoughts? Can you generate a back trace from the coredump? gdb `which tip` tip.core then bt at the gdb prompt. BTW for this sort of thing I use expect and kermit.. =2D --=20 Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAjbPi5ZPcIHs/zowRAtv7AJwLc2wlgBpf/rIiTjO/biYHyM8ERwCfWwvt 1H4t3oxS6BqpR736xOtSGas=3D =3Dlfjn =2D----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 18:40:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4CFFB16A4CE for ; Mon, 26 Apr 2004 18:40:52 -0700 (PDT) Received: from web10501.mail.yahoo.com (web10501.mail.yahoo.com [216.136.130.151]) by mx1.FreeBSD.org (Postfix) with SMTP id 17D4543D5C for ; Mon, 26 Apr 2004 18:40:52 -0700 (PDT) (envelope-from b_oshea@yahoo.com) Message-ID: <20040427014052.6433.qmail@web10501.mail.yahoo.com> Received: from [156.153.254.42] by web10501.mail.yahoo.com via HTTP; Mon, 26 Apr 2004 18:40:52 PDT Date: Mon, 26 Apr 2004 18:40:52 -0700 (PDT) From: Brian O'Shea To: GiZmen , freebsd-hackers@freebsd.org In-Reply-To: <20040426221900.GA26440@blurp.one.pl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: problem with gdb X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 01:40:52 -0000 --- GiZmen wrote: > > On Sunday, 25 April 2004 at 20:42:07 +0200, GiZmen wrote: > > > Hello, > > > > > > I have problem with gdb. When i start gdb as a regular user or even user > > > i wheel group, i cant debug program that i want. I start gdb with my > program > > > and i set breakpoint and i run this program. And i do not stop i this > > > breakpoint. gdb prints output and this message: > > > > > > Program exited normally. > > > You can't do that without a process to debug. > > > > > > and it return to gdb prompt. > > > > > > When i do the the same as root it works perfectly. I dont have any > > > idea what is the cause of this problem. When you run the program in a debugger as root, the program also runs as root. Is it possible that there are some other permission problems (such as file permissions that the program relies upon) that change the logic of your program when it is run by root, vs. by another user? For example, if the breakpoint is set in code that is only executed when a file open succeeds, it might not reach the code where the breakpoint is set (but it would reach the breakpoint if run by a priveleged user such as root). if ((fd = open("/etc/passwd", O_RDWT) != -1) { ... /* your breakpoint set in here somewhere */ ... } Cheers, -brian __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 22:12:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3904516A4CE for ; Mon, 26 Apr 2004 22:12:37 -0700 (PDT) Received: from ack.Berkeley.EDU (ack.berkeley.edu [128.32.206.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D2AD43D31 for ; Mon, 26 Apr 2004 22:12:37 -0700 (PDT) (envelope-from mhunter@ack.Berkeley.EDU) Received: (from mhunter@localhost) by ack.Berkeley.EDU (8.11.3/8.11.3) id i3R5B3d09493; Mon, 26 Apr 2004 22:11:03 -0700 (PDT) Date: Mon, 26 Apr 2004 22:11:03 -0700 From: Mike Hunter To: "Daniel O'Connor" Message-ID: <20040427051102.GA7662@ack.Berkeley.EDU> References: <20040426173848.GA24490@ack.Berkeley.EDU> <200404271044.11474.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404271044.11474.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Core dump with tip (ucom0 -> external modem) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 05:12:37 -0000 On Apr 27, "Daniel O'Connor" wrote: > -----BEGIN PGP SIGNED MESSAGE----- > On Tue, 27 Apr 2004 03:08, Mike Hunter wrote: > > tip -115200 23645 > > Segmentation fault (core dumped) > > > > Same result with -57600, -9600 and with cu syntax > > > > I have an entry for the usb serial device: > > > > usb1:dv=/dev/ucom0:br#9600:pa=none: > > > > And if I say > > > > tip usb1 > > > > I can issue dialer commands and it works. > > > > The ultimate goal here is having somebody be able to run a shell-script > > named "dial-funkybox" and have it dial and connect them. > > > > Sorry if I left out something important. Any thoughts? > > Can you generate a back trace from the coredump? > > gdb `which tip` tip.core > > then bt at the gdb prompt. Thanks for taking a look at it. GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... (no debugging symbols found)... Core was generated by `tip'. Program terminated with signal 11, Segmentation fault. Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done. Loaded symbols for /lib/libc.so.5 Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)... done. Loaded symbols for /libexec/ld-elf.so.1 #0 0x08049bd2 in connect () (gdb) bt #0 0x08049bd2 in connect () #1 0x0804d055 in send () #2 0x08049942 in sigprocmask () (gdb) Any way I can get more info for you? > BTW for this sort of thing I use expect and kermit.. I started toying around with kermit when I was getting to depressed with tip...I'll give it more of a shot tomorrow. Mike From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 23:55:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6F9916A4CE for ; Mon, 26 Apr 2004 23:55:50 -0700 (PDT) Received: from ack.Berkeley.EDU (ack.berkeley.edu [128.32.206.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id A030D43D46 for ; Mon, 26 Apr 2004 23:55:50 -0700 (PDT) (envelope-from mhunter@ack.Berkeley.EDU) Received: (from mhunter@localhost) by ack.Berkeley.EDU (8.11.3/8.11.3) id i3R6tkX14683; Mon, 26 Apr 2004 23:55:46 -0700 (PDT) Date: Mon, 26 Apr 2004 23:55:46 -0700 From: Mike Hunter To: "Daniel O'Connor" Message-ID: <20040427065545.GA14636@ack.Berkeley.EDU> References: <20040426173848.GA24490@ack.Berkeley.EDU> <200404271044.11474.doconnor@gsoft.com.au> <20040427051102.GA7662@ack.Berkeley.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040427051102.GA7662@ack.Berkeley.EDU> User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Core dump with tip (ucom0 -> external modem) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 06:55:50 -0000 On Apr 26, "To Daniel O'Connor" wrote: > > then bt at the gdb prompt. > > Thanks for taking a look at it. > > GNU gdb 5.2.1 (FreeBSD) > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i386-unknown-freebsd"... > (no debugging symbols found)... > Core was generated by `tip'. > Program terminated with signal 11, Segmentation fault. > Reading symbols from /lib/libc.so.5...(no debugging symbols found)...done. > Loaded symbols for /lib/libc.so.5 > Reading symbols from /libexec/ld-elf.so.1...(no debugging symbols found)... > done. > Loaded symbols for /libexec/ld-elf.so.1 > #0 0x08049bd2 in connect () > (gdb) bt > #0 0x08049bd2 in connect () > #1 0x0804d055 in send () > #2 0x08049942 in sigprocmask () > (gdb) I went and built tip with debugging symbols... (gdb) set args -9600 33230 (gdb) run Starting program: /usr/src/usr.bin/tip/tip/tip -9600 33230 Stale lock on ucom0 PID=6696... overriding. Program received signal SIGSEGV, Segmentation fault. 0x08049cd7 in connect () at acu.c:110 110 if (*cp != '\0') (gdb) bt 10 #0 0x08049cd7 in connect () at acu.c:110 #1 0x0804d4bd in main (argc=1, argv=0xbfbfec48) at tip.c:202 #2 0x08049a42 in _start () (gdb) checking for cp != NULL fixes the seg fault, but it still hangs for me...sigh. Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 27 01:41:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E2C416A4CE for ; Tue, 27 Apr 2004 01:41:19 -0700 (PDT) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 8A14343D4C for ; Tue, 27 Apr 2004 01:41:17 -0700 (PDT) (envelope-from roam@ringlet.net) Received: (qmail 15944 invoked from network); 27 Apr 2004 08:34:24 -0000 Received: from office.sbnd.net (HELO straylight.m.ringlet.net) (217.75.140.130) by gandalf.online.bg with SMTP; 27 Apr 2004 08:34:23 -0000 Received: (qmail 56129 invoked by uid 1000); 27 Apr 2004 08:41:12 -0000 Date: Tue, 27 Apr 2004 11:41:12 +0300 From: Peter Pentchev To: Dag-Erling Sm?rgrav Message-ID: <20040427084112.GF966@straylight.m.ringlet.net> Mail-Followup-To: Dag-Erling Sm?rgrav , James Housley , freebsd-hackers@freebsd.org References: <406C8F4F.1040306@Thehousleys.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="d6Gm4EdcadzBjdND" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i cc: freebsd-hackers@freebsd.org Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 08:41:19 -0000 --d6Gm4EdcadzBjdND Content-Type: text/plain; charset=windows-1251 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Apr 02, 2004 at 05:19:42PM +0200, Dag-Erling Sm?rgrav wrote: > James Housley writes: > > I have a program that I have the is supposed to run forever. I log > > any output to a log file. It is run in a startup script like thie: > > > > program_name >> $err_log 2>&1 > > > > The problem is that after newsyslog rotates the $err_log file, no more > > data is written to the file. I can not stop and restart the program. > > I can accept a signal. But what do I need to do in "program_name" to > > allow the data to be written after the "rotation" of the file. >=20 > There is not much you can do unless you modify your program to write > directly to the log file instead of stdout (in which case you just > need to re-open the log file when you get a SIGHUP), or use something > like Apache's logrotate instead of newsyslog (pipe the program's > output to logrotate, which takes care of the rest) Or, as an alternative to Apache's logrotate, there is multilog from djb's daemontools package - ports/sysutils/daemontools, http://cr.yp.to/daemontools.html G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@sbnd.net roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 because I didn't think of a good beginning of it. --d6Gm4EdcadzBjdND Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAjhyo7Ri2jRYZRVMRAshnAJ92NkvppN43in2ME8Hxcnivs2gE+wCgqAkJ g81DAJgLpjccJpXutIjupg8= =Q+Jc -----END PGP SIGNATURE----- --d6Gm4EdcadzBjdND-- From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 27 02:27:56 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35CEB16A4CE for ; Tue, 27 Apr 2004 02:27:56 -0700 (PDT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BE83D43D58 for ; Tue, 27 Apr 2004 02:27:55 -0700 (PDT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 92A855312; Tue, 27 Apr 2004 11:27:54 +0200 (CEST) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id E8105530F; Tue, 27 Apr 2004 11:27:47 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id 8FFA533C71; Tue, 27 Apr 2004 11:27:47 +0200 (CEST) To: James Housley References: <406C8F4F.1040306@Thehousleys.net> <20040427084112.GF966@straylight.m.ringlet.net> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Tue, 27 Apr 2004 11:27:47 +0200 In-Reply-To: <20040427084112.GF966@straylight.m.ringlet.net> (Peter Pentchev's message of "Tue, 27 Apr 2004 11:41:12 +0300") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-hackers@freebsd.org Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 09:27:56 -0000 Peter Pentchev writes: > Or, as an alternative to Apache's logrotate, there is multilog from > djb's daemontools package - ports/sysutils/daemontools, > http://cr.yp.to/daemontools.html Anything DJB has written is a last resort, not an alternative. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Mon Apr 26 11:22:44 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 083DB16A4CF for ; Mon, 26 Apr 2004 11:22:44 -0700 (PDT) Received: from web13506.mail.yahoo.com (web13506.mail.yahoo.com [216.136.175.85]) by mx1.FreeBSD.org (Postfix) with SMTP id E09E443D54 for ; Mon, 26 Apr 2004 11:22:43 -0700 (PDT) (envelope-from dyeske@yahoo.com) Message-ID: <20040426182243.59597.qmail@web13506.mail.yahoo.com> Received: from [216.162.35.42] by web13506.mail.yahoo.com via HTTP; Mon, 26 Apr 2004 11:22:43 PDT Date: Mon, 26 Apr 2004 11:22:43 -0700 (PDT) From: David Yeske To: net@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailman-Approved-At: Tue, 27 Apr 2004 04:56:50 -0700 Subject: netgraph arp issues vs linux veth X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Apr 2004 18:22:44 -0000 I made another attempt with netgraph and I think I'm almost there, but I'm still having some issues. I found a linux solution called veth http://www.geocities.com/nestorjpg/veth/ which might do the job, but I would prefer to use netgraph if possible. Here is some more detailed config information. I ran this on the spoof machine # ngctl mkpeer . eiface hook ether # ifconfig ngeth0 link 00:bd:03:12:12:12 # ifconfig ngeth0 192.168.10.3 netmask 255.255.255.0 # ngctl mkpeer ngeth0: bridge lower link0 # ngctl name ngeth0:lower broken # ngctl connect fxp0: broken: lower link1 # ngctl connect fxp0: broken: upper link2 # ngctl connect ngeth0: broken: upper link3 # ngctl msg ngeth0: setpromisc 1 # ngctl msg ngeth0: setautosrc 0 # ngctl msg fxp0: setpromisc 1 # ngctl msg fxp0: setautosrc 0 # ngctl show broken: Name: broken Type: bridge ID: 00000046 Num hooks: 4 Local hook Peer name Peer type Peer ID Peer hook ---------- --------- --------- ------- --------- link3 ngeth0 ether 00000005 upper link2 fxp0 ether 00000004 upper link1 fxp0 ether 00000004 lower link0 ngeth0 ether 00000005 lower on the remote machine an arp -a lists this ? (192.168.10.3) at 00:bd:03:12:12:12 on rl0 [ethernet] ? (192.168.10.1) at 00:00:e8:5b:13:44 on rl0 permanent [ethernet] on the spoof machine an arp -a lists this ? (192.168.10.1) at (incomplete) on ngeth0 [ethernet] ? (192.168.10.3) at 00:bd:03:12:12:12 on ngeth0 permanent [ethernet] a sniff on the spoof machine listed this while pinging the remote machine # tcpdump -i ngeth0 'ether host 00:00:e8:5b:13:44' tcpdump: listening on ngeth0 14:03:30.519263 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 14:03:33.416568 192.168.10.1 > 192.168.10.3: icmp: echo request 14:03:40.530562 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 14:03:43.427175 192.168.10.1 > 192.168.10.3: icmp: echo request 14:03:50.540805 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 14:03:53.437845 192.168.10.1 > 192.168.10.3: icmp: echo request 14:04:00.550960 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 14:04:03.448383 192.168.10.1 > 192.168.10.3: icmp: echo request a sniff on the remote machine listed this while pinging the spoof machine # tcpdump -i rl0 'ether host 00:bd:03:12:12:12' tcpdump: listening on rl0 14:02:24.918804 192.168.10.1 > 192.168.10.3: icmp: echo request 14:02:29.179263 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 14:02:34.929051 192.168.10.1 > 192.168.10.3: icmp: echo request 14:02:44.939136 192.168.10.1 > 192.168.10.3: icmp: echo request 14:02:52.052260 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 14:02:54.949402 192.168.10.1 > 192.168.10.3: icmp: echo request 14:03:02.063079 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 14:03:04.959534 192.168.10.1 > 192.168.10.3: icmp: echo request 14:03:12.072830 arp reply 192.168.10.1 is-at 0:0:e8:5b:13:44 Any clues or pointers are greatly appreciated and will mean I get to deploy FreeBSD with netgraph rather than linux with veth. Regards, David Yeske From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 27 11:28:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CFC7F16A4CE for ; Tue, 27 Apr 2004 11:28:23 -0700 (PDT) Received: from ack.Berkeley.EDU (ack.berkeley.edu [128.32.206.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id B80EF43D48 for ; Tue, 27 Apr 2004 11:28:23 -0700 (PDT) (envelope-from mhunter@ack.Berkeley.EDU) Received: (from mhunter@localhost) by ack.Berkeley.EDU (8.11.3/8.11.3) id i3RISNu21997 for freebsd-hackers@freebsd.org; Tue, 27 Apr 2004 11:28:23 -0700 (PDT) Date: Tue, 27 Apr 2004 11:28:23 -0700 From: Mike Hunter To: freebsd-hackers@freebsd.org Message-ID: <20040427182823.GA21687@ack.Berkeley.EDU> References: <20040426173848.GA24490@ack.Berkeley.EDU> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040426173848.GA24490@ack.Berkeley.EDU> User-Agent: Mutt/1.5.6i Subject: plot.thickness++ (Re: Core dump with tip (ucom0 -> external modem)) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 18:28:23 -0000 I got an interesting clue by trying ECU. Check this out: ECU is a dialer type program. I told it to use /dev/ucom0 to dial my desk phone number, and it showed itself trying to issue a bunch of commands to the modem, but each time they came back and said "missed expected carriage return". It eventually gave up, but my phone then started ringing! Dialing on /dev/ucom0 at 9600 baud (10:24:25) Trying ecu dialer /usr/local/lib/ecu/ucom0.mi: No such file or directory modem init string not found (using default 'ATE1Q0V1') modem dial string not found (using default 'ATDT') ATE1Q0V1 missed expected carriage return got nothing ATE1Q0V1 missed expected carriage return got nothing ATE1Q0V1 missed expected carriage return got nothing ATE1Q0V1 missed expected carriage return got nothing /usr/local/lib/ecu/ucom0.mi: No such file or directory modem init string not found (using default 'ATE1Q0V1') modem dial string not found (using default 'ATDT') ATE1Q0V1 missed expected carriage return got nothing ATE1Q0V1 missed expected carriage return got nothing ATE1Q0V1 missed expected carriage return got nothing ATE1Q0V1 missed expected carriage return got nothing ATDT23645 missed expected carriage return Cannot talk to modem When it was over, I did a tip on the same device and it spewed a bunch of garbage at me: OK AT OK ATQ0V1E1 OK ATE1Q0V1 OK AT OK ATQ0V1E1 OK ATE1Q0V1 OK AT OK ATQ0V1E1 OK ATE1Q0V1 OK ATE1Q0V1 OK AT OK ATQ0V1E1 OK ATE1Q0V1 OK AT OK ATQ0V1E1 OK ATE1Q0V1 OK AT OK ATQ0V1E1 OK ATE1Q0 So all the commands were going through, but somehow being buffered...? Any knobs I can play with to help with this situation? Thanks, Mike From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 27 14:43:40 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C18416A4CE for ; Tue, 27 Apr 2004 14:43:40 -0700 (PDT) Received: from mail.gulfgate-inc.com (mail.gulfgate-inc.com [64.1.98.180]) by mx1.FreeBSD.org (Postfix) with ESMTP id D14E043D41 for ; Tue, 27 Apr 2004 14:43:39 -0700 (PDT) (envelope-from mpf@inodes.us) Received: (qmail 68387 invoked by uid 85); 27 Apr 2004 21:49:14 -0000 Received: from mpf@inodes.us by mail.gulfgate-inc.com by uid 89 with qmail-scanner-1.20 Clear:RC:1(192.168.0.4):. Processed in 0.046534 secs); 27 Apr 2004 21:49:14 -0000 Received: from unknown (HELO inodes.us) (192.168.0.4) by 192.168.0.40 with SMTP; 27 Apr 2004 21:49:13 -0000 Message-ID: <408ED401.3080803@inodes.us> Date: Tue, 27 Apr 2004 16:43:29 -0500 From: Matt Freitag User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20031013 Thunderbird/0.3 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org References: <406C8F4F.1040306@Thehousleys.net> <20040427084112.GF966@straylight.m.ringlet.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit cc: =?ISO-8859-1?Q?Dag-Erling_Sm=F8rgrav?= Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Apr 2004 21:43:40 -0000 DJB's code, a last resort? I surely wouldn't refer to all of it as a last resort, not in the least. To each his own - of course. Although I certainly think you're belittling someone with plenty of skill. Do you regard Qmail as a "last resort" MTA? I'd have to disagree strongly there. -mpf Dag-Erling Smørgrav wrote: >Peter Pentchev writes: > > >>Or, as an alternative to Apache's logrotate, there is multilog from >>djb's daemontools package - ports/sysutils/daemontools, >>http://cr.yp.to/daemontools.html >> >> > >Anything DJB has written is a last resort, not an alternative. > >DES > > From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 27 19:12:48 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B6ABF16A4CF for ; Tue, 27 Apr 2004 19:12:48 -0700 (PDT) Received: from antivirus1.tbc.net (antivirus1.tbc.net [207.112.224.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4ABAA43D2F for ; Tue, 27 Apr 2004 19:12:48 -0700 (PDT) (envelope-from harrison@tbc.net) Received: from tbc.net (adsl-183-65.tbcnet.com [209.100.183.65]) by antivirus1.tbc.net (8.12.9/8.12.9) with ESMTP id i3S2Ckv6013023 for ; Tue, 27 Apr 2004 21:12:46 -0500 Message-ID: <408F131D.6090506@tbc.net> Date: Tue, 27 Apr 2004 21:12:45 -0500 From: Shawn Harrison User-Agent: Mozilla Thunderbird 0.5 (Windows/20040207) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-hackers@freebsd.org References: <406C8F4F.1040306@Thehousleys.net> <20040427084112.GF966@straylight.m.ringlet.net> <408ED401.3080803@inodes.us> In-Reply-To: <408ED401.3080803@inodes.us> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS - amavis-milter (http://www.amavis.org/) Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 02:12:48 -0000 >> Peter Pentchev writes: >> >> Anything DJB has written is a last resort, not an alternative. >> >> DES >> >> Are you speaking with regard to the code or the license? If the code, what are your reasons for saying this? If the license, nevermind. -- Shawn From owner-freebsd-hackers@FreeBSD.ORG Tue Apr 27 22:53:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 79D9916A4CE for ; Tue, 27 Apr 2004 22:53:13 -0700 (PDT) Received: from europa.AD.HartBrothers.Com (europa.ad.hartbrothers.com [63.102.100.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 05E0D43D5E for ; Tue, 27 Apr 2004 22:53:13 -0700 (PDT) (envelope-from freebsd-hackers@davehart.net) MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-class: urn:content-classes:message Date: Wed, 28 Apr 2004 05:53:12 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Message-ID: <255A839665EA24408EB27A6AAE15518EACC5@europa.ad.hartbrothers.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Loosing STDOUT after file rotation Thread-Index: AcQsxleHwVb5X6tlQH6ljeoS5wPGTgAHpYlg From: To: , "Shawn Harrison" , "Dave Hart" Subject: RE: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 05:53:13 -0000 > >> Anything DJB has written is a last resort, not an alternative. > >> > >> DES Shawn Harrison wrote: > Are you speaking with regard to the code or the license? If=20 > the code, what are your reasons for saying this? If the=20 > license, nevermind. I'm not DES, but I have a couple of examples in qmail 1.03 of code problems. If I had any expectation that djb would update qmail, I would address these to him instead of to you and to individuals I SMTP with who use qmail. 1. qmail violates SMTP RFCs in the name of being picky about line endings in SMTP DATA. I saw it operating a different MTA as backup MX for someone using qmail on their primary inbound MX. Someone dropped off some spam on my MTA which had a "bare LF" in qmail parlance, which may be a problem in that legitimate SMTP line endings are required to pair CR and LF. My MTA attempted to deliver the mail to the primary MX for the domain in question, triggering qmail's poorly coded "bare LF" check, which writes a 451 temporary failure response with a pointer to a djb web page shaking fingers over line endings: =20 451 See http://pobox.com/~djb/docs/smtplf.html. However, the SMTP violation comes in here. First of all, the response comes in immediately, not after the . termination of the DATA payload. RFC821/STD0010 section 4.4 states regarding DATA payload: "Note that the 'data' here here is a series of lines sent from the sender to the receiver with no response expected until the last line is sent." More seriously, qmail then simply terminates the process and thereby closes the SMTP connection, which clearly violates RFCs 821 and 2821, section 4.1.1 on command semantics, which says regarding QUIT: The receiver should not close the transmission channel until it receives and replies to a QUIT command (even if there was an error). The sender should not close the transmission channel until it send a QUIT command and receives the reply (even if there was an error response to a previous command). If the connection is closed prematurely the receiver should act as if a RSET command had been received (canceling any pending transaction, but not undoing any previously completed transaction), the sender should act as if the command or transaction in progress had received a temporary error (4xx). So a standards-compliant MTA sending a "bare LF" bomb to qmail engages in a race between recognizing the premature 451 response to the DATA command, or noticing the socket has been dropped by the server in violation of spec. Such a sender will in either case treat this as a temporary failure and retry after some interval. If the sender is an innocent backup MX, the resulting behavior is wasteful repeated resending of the bare LF bomb, terminally receiving a hopeful "temporary" failure. If you use qmail, please consider simply editing out the bare LF check entirely, nothing else goes haywire in the experience of several of my friends. At least for inbound MXes, if not for customer-facing outbound relays. 2. Yes, despite two or three RFC violations above, there's another bone I have to pick with qmail. In today's world of massive worm-infested-sender spam, joe-job spam backscatter, and worm infection attempts via email and their backscatter, it is irresponsible though not violating any RFCs to blindly accept any and all RCPT email addresses "@" a domain name qmail handles mail for, only to generate bounce emails later on for mails addressed to non-existent local parts. That is, even though qmail is in a position to know that, say, davehart@distributed.net is not a valid email address, instead of responding to a RCPT TO: command with an error, qmail chooses to accept the address and the accompanying mail traffic, then quickly turn around a bounce email message to the purported sender including a copy of the message. Why do I care if qmail is accept-then-bounce instead of refusing to accept the address? Because worms forge my email addresses as purported sender after finding it on someone else's computer. One of my former email addresses (davehart@distributed.net again) is handled by qmail, and to do my part I'd like to see worm bounces and other wasteful traffic refused before DATA rather than using the bandwidth of the distributed.net mailserver twice over. Similarly, I'd rather see worm attempts to infect davehart@distributed.net result in the worm failing to send the email in the first place, rather than having it send it successfully only to have distributed.net's mailserver send a helpful bounce to an innocent purported sender (remember, worms lie about sender habitually) containing a copy of the infection vector. I hear wonderful things about Postfix, and my impression is it has a license that won't leave you down a dead-end road like qmail's does. Dave Hart davehart@davehart.com From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 00:27:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 575B816A4CE for ; Wed, 28 Apr 2004 00:27:11 -0700 (PDT) Received: from dazed.slacker.com (dazed.slacker.com [68.93.27.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 024FB43D5C for ; Wed, 28 Apr 2004 00:27:11 -0700 (PDT) (envelope-from nugget@slacker.com) Received: by dazed.slacker.com (Postfix, from userid 1000) id 7E3F4BDE60; Wed, 28 Apr 2004 02:27:10 -0500 (CDT) Resent-From: nugget@slacker.com Resent-Date: Wed, 28 Apr 2004 02:27:10 -0500 Resent-Message-ID: <20040428072710.GA22618@slacker.com> Resent-To: freebsd-hackers@freebsd.org In-Reply-To: <255A839665EA24408EB27A6AAE15518EACC5@europa.ad.hartbrothers.com> References: <255A839665EA24408EB27A6AAE15518EACC5@europa.ad.hartbrothers.com> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-5--401780888; protocol="application/pkcs7-signature" Message-Id: <8EC6A6D7-98D9-11D8-9BA8-000393DB55E6@slacker.com> X-Image-Url: http://slacker.com/~nugget/images/me64.jpg From: David McNett Date: Wed, 28 Apr 2004 01:01:57 -0500 To: X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Dave Hart cc: Shawn Harrison Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 07:27:11 -0000 --Apple-Mail-5--401780888 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed On Apr 28, 2004, at 12:53 AM, wrote: > over. Similarly, I'd rather see worm attempts to infect > davehart@distributed.net result in the worm failing to send the email > in > the first place, rather than having it send it successfully only to > have > distributed.net's mailserver send a helpful bounce to an innocent > purported sender (remember, worms lie about sender habitually) > containing a copy > of the infection vector. Speaking on behalf of the poor distributed.net mailserver in question, this is only half the story when it comes to the damage done by qmail's behavior in this case. Not only is the accept-then-bounce behavior generating annoying and irrelevant bounces for innocent email addresses, it's also generated an outbound queue of bounces to domains and emails which don't exist which numbers in the tens of thousands. These mails clog up the outbound queue for 7 days with qmail dutifully attempting delivery periodically never quite coming to grips with the fact that the addresses are pure bunk. I switched my home server to postfix this past weekend and plan to do the same to the distributed.net servers now that I know how the conversion is done. -- David McNett http://www.slacker.com/~nugget/ --Apple-Mail-5--401780888-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 03:01:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 825C116A4CF for ; Wed, 28 Apr 2004 03:01:13 -0700 (PDT) Received: from ms-dienst.rz.rwth-aachen.de (ms-2.rz.RWTH-Aachen.DE [134.130.3.131]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAAE143D5F for ; Wed, 28 Apr 2004 03:01:12 -0700 (PDT) (envelope-from chris@unixpages.org) Received: from r220-1 (r220-1.rz.RWTH-Aachen.DE [134.130.3.31]) by ms-dienst.rz.rwth-aachen.de (iPlanet Messaging Server 5.2 HotFix 1.12 (built Feb 13 2003)) with ESMTP id <0HWV00JSWKYX9L@ms-dienst.rz.rwth-aachen.de> for hackers@freebsd.org; Wed, 28 Apr 2004 11:56:58 +0200 (MEST) Received: from relay.RWTH-Aachen.DE ([134.130.3.1]) by r220-1 (MailMonitor for SMTP v1.2.2 ) ; Wed, 28 Apr 2004 11:56:57 +0200 (MEST) Received: from haakonia.hitnet.rwth-aachen.de (haakonia.hitnet.RWTH-Aachen.DE [137.226.181.92])i3S9uuYT014977; Wed, 28 Apr 2004 11:56:56 +0200 (MEST) Received: from gondor.middleearth (gondor.middleearth [192.168.1.42]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))(Postfix) with ESMTP id 02BF428418; Wed, 28 Apr 2004 11:56:56 +0200 (CEST) Received: by gondor.middleearth (Postfix, from userid 1001) id C28306138; Wed, 28 Apr 2004 11:56:55 +0200 (CEST) Date: Wed, 28 Apr 2004 11:56:55 +0200 From: Christian Brueffer In-reply-to: <200404261846.i3QIkmZV002230@bleep.craftncomp.com> To: Stephen Hocking Message-id: <20040428095655.GB53993@unixpages.org> MIME-version: 1.0 Content-type: multipart/signed; boundary=xgyAXRrhYN0wYx8y; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-disposition: inline User-Agent: Mutt/1.5.5.1i X-Operating-System: FreeBSD 5.2-CURRENT X-PGP-Key: http://people.freebsd.org/~brueffer/brueffer.key.asc X-PGP-Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D References: <200404261846.i3QIkmZV002230@bleep.craftncomp.com> cc: hackers@freebsd.org Subject: Re: Vendors of multi-port PCI ethernet cards? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 10:01:13 -0000 --xgyAXRrhYN0wYx8y Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 26, 2004 at 01:46:48PM -0500, Stephen Hocking wrote: > All, >=20 >=20 > Does anyone know where I can lay my hands on one of those 4 port ethernet= =20 > cards that used to be around a while back? >=20 Adaptec sells the ANA-64044LV, a 4 port card. I'm running the 2 port version of the old revision here, which performs well. =20 - Christian --=20 Christian Brueffer chris@unixpages.org brueffer@FreeBSD.org GPG Key: http://people.freebsd.org/~brueffer/brueffer.key.asc GPG Fingerprint: A5C8 2099 19FF AACA F41B B29B 6C76 178C A0ED 982D --xgyAXRrhYN0wYx8y Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAj3/nbHYXjKDtmC0RArBMAKCdrejxVJWkqjVr4wUlmRwwHaIMVQCggzAp G6kET61i9PKPfPmwGC6yPi8= =ld1e -----END PGP SIGNATURE----- --xgyAXRrhYN0wYx8y-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 10:38:39 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1F76316A4CE for ; Wed, 28 Apr 2004 10:38:39 -0700 (PDT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id DB41343D58 for ; Wed, 28 Apr 2004 10:38:38 -0700 (PDT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id CF455530A; Wed, 28 Apr 2004 19:38:37 +0200 (CEST) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id 0750E5309; Wed, 28 Apr 2004 19:38:25 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id A110B33C71; Wed, 28 Apr 2004 19:38:25 +0200 (CEST) To: Shawn Harrison References: <406C8F4F.1040306@Thehousleys.net> <20040427084112.GF966@straylight.m.ringlet.net> <408ED401.3080803@inodes.us> <408F131D.6090506@tbc.net> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Wed, 28 Apr 2004 19:38:25 +0200 In-Reply-To: <408F131D.6090506@tbc.net> (Shawn Harrison's message of "Tue, 27 Apr 2004 21:12:45 -0500") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-hackers@freebsd.org Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 17:38:39 -0000 Shawn Harrison writes: > Are you speaking with regard to the code or the license? the code. > If the code, > what are your reasons for saying this? RTFS. DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 14:40:46 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4116E16A4CE for ; Wed, 28 Apr 2004 14:40:46 -0700 (PDT) Received: from alpha.xerox.com (alpha.Xerox.COM [13.1.64.93]) by mx1.FreeBSD.org (Postfix) with SMTP id 312DB43D49 for ; Wed, 28 Apr 2004 14:40:46 -0700 (PDT) (envelope-from juhlig@parc.com) Received: from parc.com ([13.1.103.2]) by alpha.xerox.com with SMTP id <512525(1)>; Wed, 28 Apr 2004 14:40:38 PDT Message-ID: <409024D6.7090800@parc.com> Date: Wed, 28 Apr 2004 14:40:38 PDT From: John Uhlig User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20030225 X-Accept-Language: en-us, en MIME-Version: 1.0 To: hackers@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: sunsa@parc.com Subject: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 21:40:46 -0000 Hi. We are running FreeBSD 5.2.1-RELEASE-p5 with a fairly generic kernel on a Dell PowerEdge 2650 with 1/2TB of disk RAID arrays. It recently crashed at about 3AM while running the daily /etc/periodic/security/100.chksetuid script. I am able to crash this system at will (takes about 5-10 minutes by running the security scripts in a loop and using gtar to copy files to the server at the same time. I have included output from one core dump below. The other core dumps I have so far are almost exactly the same e.g. "Error accessing memory address 0xf8b7983c" is the same in all core dumps so far. On the web, freebsd mailing lists and bug lists, I have seen existing thread about "kmem_malloc and kmem_map too small" problems - but no evidence of a fix or patch. We experienced the same problem running 4.9 but were able to fix it by setting the MAXMEM option in our kernel conf file to a value 1GB less than actual physical memory size. This does not help with 5.2.1-RELEASE-p5. My group is under pressure to bring 3 of these servers on-line for our user community by the end of the month and would greatly appreciate any help in resolving this problem. thanks, John Uhlig. (coredump output)--------------------------------------------------------------------------- lifeboat# gdb -k kernel.debug /crash/vmcore.7 GNU gdb 5.2.1 (FreeBSD) Copyright 2002 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i386-unknown-freebsd"... panic: kmem_malloc(4096): kmem_map too small: 275251200 total allocated panic messages: --- dmesg: kvm_read: --- warning: failed to read linker file data at 0xca29b100 #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 240 dumping++; (kgdb) backtrace #0 doadump () at /usr/src/sys/kern/kern_shutdown.c:240 can not access 0xf8b7983c, invalid address (f8b7983c) can not access 0xf8b7983c, invalid address (f8b7983c) Error accessing memory address 0xf8b7983c: Invalid argument. (kgdb) list *0xf8b6783c No source file for address 0xf8b6783c. From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 17:01:59 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EDFE316A4CE for ; Wed, 28 Apr 2004 17:01:59 -0700 (PDT) Received: from mtaw4.prodigy.net (mtaw4.prodigy.net [64.164.98.52]) by mx1.FreeBSD.org (Postfix) with ESMTP id DFA2343D41 for ; Wed, 28 Apr 2004 17:01:59 -0700 (PDT) (envelope-from kris@obsecurity.org) Received: from obsecurity.dyndns.org (fad986123a8e9afe9ac506b34088370b@adsl-67-115-73-128.dsl.lsan03.pacbell.net [67.115.73.128]) by mtaw4.prodigy.net (8.12.10/8.12.10) with ESMTP id i3T01wOH004029; Wed, 28 Apr 2004 17:01:59 -0700 (PDT) Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id CCFCC5220D; Wed, 28 Apr 2004 17:01:58 -0700 (PDT) Date: Wed, 28 Apr 2004 17:01:58 -0700 From: Kris Kennaway To: John Uhlig Message-ID: <20040429000158.GA61693@xor.obsecurity.org> References: <409024D6.7090800@parc.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oyUTqETQ0mS9luUI" Content-Disposition: inline In-Reply-To: <409024D6.7090800@parc.com> User-Agent: Mutt/1.4.2.1i cc: sunsa@parc.com cc: hackers@freebsd.org Subject: Re: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 00:02:00 -0000 --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Apr 28, 2004 at 02:40:38PM -0700, John Uhlig wrote: > Hi. >=20 > We are running FreeBSD 5.2.1-RELEASE-p5 with a fairly generic kernel on a > Dell PowerEdge 2650 with 1/2TB of disk RAID arrays. It recently crashed at > about 3AM while running the daily /etc/periodic/security/100.chksetuid=20 > script. >=20 > I am able to crash this system at will (takes about 5-10 minutes by=20 > running the > security scripts in a loop and using gtar to copy files to the server at= =20 > the same > time. I have included output from one core dump below. The other core dum= ps > I have so far are almost exactly the same e.g. "Error accessing memory=20 > address > 0xf8b7983c" is the same in all core dumps so far. >=20 > On the web, freebsd mailing lists and bug lists, I have seen existing=20 > thread about > "kmem_malloc and kmem_map too small" problems - but no evidence of a fix > or patch. We experienced the same problem running 4.9 but were able to=20 > fix it > by setting the MAXMEM option in our kernel conf file to a value 1GB less= =20 > than > actual physical memory size. This does not help with 5.2.1-RELEASE-p5. >=20 > My group is under pressure to bring 3 of these servers on-line for our us= er > community by the end of the month and would greatly appreciate any help > in resolving this problem. See PR 53416. You just need to tune your kernel resource allocation to deal with the large amount of memory your system has. Kris --oyUTqETQ0mS9luUI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAkEX2Wry0BWjoQKURAoRYAJ47tYUJTpJXREpY5t8TZphwK7MgvACfVKOM +iH0o1aIlPsTFMkshfW3Z2k= =+b00 -----END PGP SIGNATURE----- --oyUTqETQ0mS9luUI-- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 22:16:27 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7BA5F16A4CE; Wed, 28 Apr 2004 22:16:27 -0700 (PDT) Received: from harmony.village.org (rover.bsdimp.com [204.144.255.66]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DB8943D3F; Wed, 28 Apr 2004 22:16:27 -0700 (PDT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.10/8.12.9) with ESMTP id i3T5GQgr072906; Wed, 28 Apr 2004 23:16:26 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 28 Apr 2004 23:16:48 -0600 (MDT) Message-Id: <20040428.231648.61847948.imp@bsdimp.com> To: scottp@tznet.com From: "M. Warner Losh" In-Reply-To: <20040428131439.C46625@mail.tznet.com> References: <20040428131439.C46625@mail.tznet.com> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: freebsd-mobile@freebsd.org Subject: Re: hostap TX fix in 5.x X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 05:16:27 -0000 In message: <20040428131439.C46625@mail.tznet.com> Scott Pilz writes: : Has anyone found a fix for this problem yet? No. Turns out that OpenBSD has a fix for it, but I've not had a chance to integrate it into FreeBSD. Unless I'm confusing this with something else. Warner From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 08:59:30 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3423616A4CE for ; Wed, 28 Apr 2004 08:59:30 -0700 (PDT) Received: from 15pc221.sshunet.nl (15pc221.sshunet.nl [131.211.221.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 62A3B43D2D for ; Wed, 28 Apr 2004 08:59:29 -0700 (PDT) (envelope-from pieter@thelostparadise.com) Received: from thedarkside.nl ([172.16.0.4]) by 15pc221.sshunet.nl (8.12.8p2/8.12.8) with ESMTP id i3SFxNKM098032 for ; Wed, 28 Apr 2004 17:59:23 +0200 (CEST) (envelope-from pieter@thelostparadise.com) Received: from [10.0.0.3] (edinburgh [10.0.0.3]) by thedarkside.nl (8.12.8p2/8.12.8) with ESMTP id i3SFxMPQ011311 for ; Wed, 28 Apr 2004 17:59:22 +0200 (CEST) (envelope-from pieter@thelostparadise.com) From: "P. de Boer" To: freebsd-hackers@freebsd.org Content-Type: text/plain Organization: The Lost Paradise Message-Id: <1083167960.653.23.camel@edinburgh.thedarkside.tix> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Wed, 28 Apr 2004 17:59:21 +0200 Content-Transfer-Encoding: 7bit X-TheLostParadise-MailScanner-Information: Please contact the ISP for more information X-TheLostParadise-MailScanner: Found to be clean X-Mailman-Approved-At: Thu, 29 Apr 2004 05:15:13 -0700 Subject: Extracting symbol info out of processes at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pieter@thelostparadise.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 15:59:30 -0000 Hello -hackers, This is going to be a bit lengthy, but bear with me please, it's an interesting topic if I may say so :) For a little private project I'm working at, I need to find the address of a function which is inside a shared library of a running process, OR the base address the library is running at (in that case, I can simply do a base_address+known_offset_of_function). The executable nor libraries have their symbols stripped. To find the address of a certain function, I tried the ptrace program from http://www.linuxgazette.com/issue85/sandeep.html (which tries to find a link_map at GOT+4 by finding GOT in the dynamic section found in the program header), but that didn't seem to work out too well: strcpy() was found, but the symbol I was looking for wasn't. I am a bit unsure why, but perhaps it was because the symbol is probably only local to the library, if that's even possible. Because I lacked ELF clue and couldn't figure out what was going on, I started to write an elf-info program, which uses ptrace() to extract the ELF header, the program header table and the section header table from a running process. However, when I dump the section header table, all I get is garbage. man 5 elf states that the e_shoff field of the ELF header defines the offset of the section header table. When I dump the memory of 0x08048000+e_shoff in gdb, I'm getting different data than I'm seeing in the file on disk at offset e_shoff. So, apparantly the section header table isn't stored there at runtime, despite what the field e_shoff may say. Is there anyone here who might shed a light on this? Where has it gone? I started this e-mail stating I wanted to find the address of a symbol or the base address of a shared library. I don't know yet if I really need to have the section header table for this, or rather go to the dynamic section found in the program header. I was going to find that out writing my elf-info program, but that wasn't really a success as you see. If anyone can elaborate on that issue as well, I would be most thankful. PS: The sources to the program can be found at http://thelostparadise.com/troep/elfinfo.c -- With regards, Pieter de Boer From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 11:25:26 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A40716A4CE; Wed, 28 Apr 2004 11:25:26 -0700 (PDT) Received: from mail.tznet.com (mail.tznet.com [66.170.64.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id A222043D31; Wed, 28 Apr 2004 11:25:25 -0700 (PDT) (envelope-from scottp@tznet.com) Received: from mail.tznet.com (mail.tznet.com [66.170.64.2]) by mail.tznet.com (8.12.11/8.12.9) with ESMTP id i3SIPMOv056051; Wed, 28 Apr 2004 13:25:23 -0500 (CDT) Date: Wed, 28 Apr 2004 13:25:20 -0500 (CDT) From: Scott Pilz To: freebsd-current@freebsd.org Message-ID: <20040428131439.C46625@mail.tznet.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-T-Net-Virus-Scan: 66.170.64.2: Clean X-Mailman-Approved-At: Thu, 29 Apr 2004 05:15:13 -0700 cc: freebsd-hackers@freebsd.org cc: freebsd-mobile@freebsd.org Subject: hostap TX fix in 5.x X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 18:25:26 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Has anyone found a fix for this problem yet? Affects: In FreeBSD-5.x / Current Card Used: Prism 2.5, tried all firmware (from 1.3.9 to 1.7.2) While the interface (wi driver) is set to hostap, associated clients can upload at 11mbit/sec but download a maximum at half of that (I'm seeing a maximum being around 180KB/sec). Running FreeBSD 4.9 with the same card works fine (500-600KB/sec both up and down) while in hostap. Adhoc in 5.x and 4.x work fine at full speeds. As far as I can tell the problem deals with the wi(4) driver. I've confirmed this with the usage of over a dozen prism 2.5 PCMCIA cards of various versions of firmware (primary & station). Heres the current versions I've tried: Intersil Firmware: Primary (1.1.1), Station (1.7.4) There has not been a lot of talk on this, but there are some (short) discussions out there that end up being a dead-end. Anyone have any comments/suggestions/heard anything more than I have? Thanks, Scott -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAj/cS2REUg6gjWxgRAoHsAKCxIBH5i8xpa+tzi7jyfKIOJOtCMwCfXkY1 iUhnYi+cj2WG90J4zMuTFMU= =k8ko -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Wed Apr 28 12:36:55 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 90CDB16A4E5 for ; Wed, 28 Apr 2004 12:36:55 -0700 (PDT) Received: from malasada.lava.net (malasada.lava.net [64.65.64.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3211843D49 for ; Wed, 28 Apr 2004 12:36:55 -0700 (PDT) (envelope-from cliftonr@lava.net) Received: by malasada.lava.net (Postfix, from userid 102) id 6B47C153882; Wed, 28 Apr 2004 09:36:50 -1000 (HST) Date: Wed, 28 Apr 2004 09:36:50 -1000 From: Clifton Royston To: freebsd-hackers@freebsd.org Message-ID: <20040428193649.GB274@tikitechnologies.com> Mail-Followup-To: freebsd-hackers@freebsd.org, Matt Freitag References: <20040428190057.09B0416A4D9@hub.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040428190057.09B0416A4D9@hub.freebsd.org> User-Agent: Mutt/1.4.2i X-Mailman-Approved-At: Thu, 29 Apr 2004 05:15:13 -0700 cc: Matt Freitag Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Apr 2004 19:36:55 -0000 > Date: Tue, 27 Apr 2004 16:43:29 -0500 > From: Matt Freitag > Subject: Re: Loosing STDOUT after file rotation > > DJB's code, a last resort? I surely wouldn't refer to all of it as a > last resort, not in the least. To each his own - of course. Although I > certainly think you're belittling someone with plenty of skill. Do you > regard Qmail as a "last resort" MTA? I'd have to disagree strongly there. On qmail, I think others have covered its vices adequately. If forced at gunpoint to choose between qmail and sendmail, I'd probably choose qmail over the security issues; but I'm very pleased to be able to run Postfix instead of either choice. (Some of the qmail issues that were mentioned I have heard are easily fixed or worked around, but DJB's attitude of tight-fisted control means those fixes will probably never become defaults.) OTOH, after years of running Bind versions from 4 to 9, I'll *happily* choose to run dnscache over Bind as a "first resort" for caching nameserver any day. No more wedged nameservers, no more elaborate kludges of scripts to test and restart named, no more bloat to eat all RAM in the machine, etc. (And I've looked at some Bind source too. Erk.) Thus, you win some, you lose some. The moral I draw: DJB's code, like every other set of source code, falls somewhere along the continuum of quality. It's better and more reliable than some code, less than others. I suspect the reputation some hold DJB in, like Theo de Raadt's, is due more to their personality traits than to close observation of the performance and reliability of the code they're responsible for. Diatribes aside, and getting back to the original issue of logging: At least from the little I understand of DJB multilog, it looked to me like using it would require you to significantly rework your logging code. Logging to the syslog facility is another way to do it, but the message loss issue gets very ugly if you ever start logging between servers. A more lightweight log rotation script like the apache logrotate, and adding a short routine to your program to catch a SIGHUP or SIGUSR1 and reopen the log file, is probably closer to what you're looking for. BSD/OS long had a very nice "rotate" shell script for log files as part of their standard distro, with a hook to trigger a daemon restart or log reopens as needed, but unfortunately I don't know its license and copyright status. It would be nice to add something like that into the FreeBSD base distribution - it's not like log rotation is a feature needed only on rare installations. -- Clifton -- Clifton Royston -- cliftonr@tikitechnologies.com Tiki Technologies Lead Programmer/Software Architect Did you ever fly a kite in bed? Did you ever walk with ten cats on your head? Did you ever milk this kind of cow? Well we can do it. We know how. If you never did, you should. These things are fun, and fun is good. -- Dr. Seuss From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 05:30:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5F6FC16A4CE for ; Thu, 29 Apr 2004 05:30:15 -0700 (PDT) Received: from smtp.des.no (flood.des.no [217.116.83.31]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB33043D4C for ; Thu, 29 Apr 2004 05:30:14 -0700 (PDT) (envelope-from des@des.no) Received: by smtp.des.no (Pony Express, from userid 666) id 5AF4D530A; Thu, 29 Apr 2004 14:30:13 +0200 (CEST) Received: from dwp.des.no (des.no [80.203.228.37]) by smtp.des.no (Pony Express) with ESMTP id C022A5309; Thu, 29 Apr 2004 14:30:06 +0200 (CEST) Received: by dwp.des.no (Postfix, from userid 2602) id 4404733C71; Thu, 29 Apr 2004 14:30:06 +0200 (CEST) To: pieter@thelostparadise.com References: <1083167960.653.23.camel@edinburgh.thedarkside.tix> From: des@des.no (=?iso-8859-1?q?Dag-Erling_Sm=F8rgrav?=) Date: Thu, 29 Apr 2004 14:30:05 +0200 In-Reply-To: <1083167960.653.23.camel@edinburgh.thedarkside.tix> (P. de Boer's message of "Wed, 28 Apr 2004 17:59:21 +0200") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on flood.des.no X-Spam-Level: X-Spam-Status: No, hits=0.0 required=5.0 tests=AWL autolearn=no version=2.63 cc: freebsd-hackers@freebsd.org Subject: Re: Extracting symbol info out of processes at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 12:30:15 -0000 "P. de Boer" writes: > For a little private project I'm working at, I need to find the address > of a function which is inside a shared library of a running process, OR > the base address the library is running at man dlinfo DES --=20 Dag-Erling Sm=F8rgrav - des@des.no From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 05:43:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 398A716A4CE for ; Thu, 29 Apr 2004 05:43:23 -0700 (PDT) Received: from hexagon.stack.nl (hexagon.stack.nl [131.155.140.144]) by mx1.FreeBSD.org (Postfix) with ESMTP id 90BB743D41 for ; Thu, 29 Apr 2004 05:43:20 -0700 (PDT) (envelope-from marcolz@stack.nl) Received: from hammer.stack.nl (hammer.stack.nl [IPv6:2001:610:1108:5010::153]) by hexagon.stack.nl (Postfix) with ESMTP id 5BC7551FC; Thu, 29 Apr 2004 14:43:19 +0200 (CEST) Received: by hammer.stack.nl (Postfix, from userid 333) id B887A61F4; Thu, 29 Apr 2004 14:43:19 +0200 (CEST) Date: Thu, 29 Apr 2004 14:43:19 +0200 From: Marc Olzheim To: freebsd-hackers@freebsd.org, Matt Freitag Message-ID: <20040429124319.GA13214@stack.nl> References: <20040428190057.09B0416A4D9@hub.freebsd.org> <20040428193649.GB274@tikitechnologies.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040428193649.GB274@tikitechnologies.com> X-Operating-System: FreeBSD hammer.stack.nl 5.2-CURRENT FreeBSD 5.2-CURRENT X-URL: http://www.stack.nl/~marcolz/ User-Agent: Mutt/1.5.6i Subject: Re: Loosing STDOUT after file rotation X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 12:43:23 -0000 On Wed, Apr 28, 2004 at 09:36:50AM -1000, Clifton Royston wrote: > BSD/OS long had a very nice "rotate" shell script for log files as > part of their standard distro, with a hook to trigger a daemon restart > or log reopens as needed, but unfortunately I don't know its license > and copyright status. It would be nice to add something like that into > the FreeBSD base distribution - it's not like log rotation is a feature > needed only on rare installations. Which seems to be exactly what "newsyslog" is for... Marc From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 05:51:53 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D49916A4CE for ; Thu, 29 Apr 2004 05:51:53 -0700 (PDT) Received: from 15pc221.sshunet.nl (15pc221.sshunet.nl [131.211.221.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id BF1A643D5A for ; Thu, 29 Apr 2004 05:51:52 -0700 (PDT) (envelope-from pieter@thelostparadise.com) Received: from thedarkside.nl ([172.16.0.4]) by 15pc221.sshunet.nl (8.12.8p2/8.12.8) with ESMTP id i3TCpmKM030654; Thu, 29 Apr 2004 14:51:48 +0200 (CEST) (envelope-from pieter@thelostparadise.com) Received: from [10.0.0.3] (edinburgh [10.0.0.3]) by thedarkside.nl (8.12.8p2/8.12.8) with ESMTP id i3TCpmPQ034954; Thu, 29 Apr 2004 14:51:48 +0200 (CEST) (envelope-from pieter@thelostparadise.com) From: "P. de Boer" To: Dag-Erling =?ISO-8859-1?Q?Sm=F8rgrav?= In-Reply-To: References: <1083167960.653.23.camel@edinburgh.thedarkside.tix> Content-Type: text/plain; charset=iso-8859-1 Organization: The Lost Paradise Message-Id: <1083243107.640.13.camel@edinburgh.thedarkside.tix> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 29 Apr 2004 14:51:47 +0200 Content-Transfer-Encoding: 8bit X-TheLostParadise-MailScanner-Information: Please contact the ISP for more information X-TheLostParadise-MailScanner: Found to be clean cc: freebsd-hackers@freebsd.org Subject: Re: Extracting symbol info out of processes at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pieter@thelostparadise.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 12:51:53 -0000 On Thu, 2004-04-29 at 14:30, Dag-Erling Smørgrav wrote: > "P. de Boer" writes: > > For a little private project I'm working at, I need to find the address > > of a function which is inside a shared library of a running process, OR > > the base address the library is running at > > man dlinfo Well, yes, dlinfo() would be very useful, if it was not for my wish to read the link_map from another proces, using ptrace(). I've looked at rtld-elf.c, to see what dlinfo() does: it finds the object by the given address and then 'returns' the link_map for that object. However, I can't find out where this info would be in the memory image of a running process. Apparantly the objects the loader keeps info on, are in a linked list, 'obj_list', which is a global var of rtld-elf.c. Would this mean the info I'm trying to find is on the stack of the dynamic linker and therefor can't be found as long as I don't know where the linker is loaded into memory? Sounds like a chicken-and-egg problem in that case. If so, that would make things suckier than they already are, since I'm actually working on a Linux binary/libs, running on FreeBSD at the moment.. I hope(d) there was/is a generic method for all ELF binaries available, but if not, I'd better bug the Linux people a bit. -- Pieter de Boer From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 07:02:20 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6013516A4CE for ; Thu, 29 Apr 2004 07:02:20 -0700 (PDT) Received: from mx1.mail.ru (mx1.mail.ru [194.67.45.221]) by mx1.FreeBSD.org (Postfix) with ESMTP id 35C3343D46 for ; Thu, 29 Apr 2004 07:02:19 -0700 (PDT) (envelope-from tsmm@list.ru) Received: from [80.241.32.137] (port=49163 helo=137dial.supernet.kz) by mx1.mail.ru with esmtp id 1BJC7C-000Mub-00 for freebsd-hackers@freebsd.org; Thu, 29 Apr 2004 18:02:15 +0400 From: TSaplin Mikhail To: freebsd-hackers@freebsd.org Date: Thu, 29 Apr 2004 21:01:32 +0700 User-Agent: KMail/1.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200404292101.33004.tsmm@list.ru> X-Spam: Not detected Subject: unexpected trafic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 14:02:20 -0000 HI ALL; My freebsd5.1 emits some trafic: 20:32:41.496039 129dial.supernet.kz.52075 > GATEKEEPER.MCAST.NET.1718: udp 31 Does anybody know what it means, or how can i determine what program emits it? I write ps -aux below, with some X programs running, but i think X didnt emit. ps -aux : USER PID %CPU %MEM VSZ RSS TT STAT STARTED TIME COMMAND root 11 91,4 0,0 0 12 ?? RL 20:25 24:53,20 (idle) misher 648 1,0 9,1 27968 22536 ?? S 20:32 0:33,17 kdeinit: kicker (kdeinit) root 1 0,0 0,2 740 396 ?? ILs 20:25 0:00,01 /sbin/init -- root 12 0,0 0,0 0 12 ?? RL 20:25 0:29,79 (swi7: tty:sio++) root 14 0,0 0,0 0 12 ?? WL 20:25 0:00,01 (swi1: net) root 2 0,0 0,0 0 12 ?? DL 20:25 0:00,18 (g_event) root 3 0,0 0,0 0 12 ?? DL 20:25 0:00,20 (g_up) root 4 0,0 0,0 0 12 ?? DL 20:25 0:00,48 (g_down) root 15 0,0 0,0 0 12 ?? DL 20:25 0:00,19 (random) root 16 0,0 0,0 0 12 ?? WL 20:25 0:00,00 (swi6: acpitaskq) root 19 0,0 0,0 0 12 ?? WL 20:25 0:00,00 (swi3: cambio) root 5 0,0 0,0 0 12 ?? IL 20:25 0:00,00 (acpi_task0) root 6 0,0 0,0 0 12 ?? IL 20:25 0:00,00 (acpi_task1) root 7 0,0 0,0 0 12 ?? IL 20:25 0:00,00 (acpi_task2) root 23 0,0 0,0 0 12 ?? WL 20:25 0:00,19 (irq14: ata0) root 24 0,0 0,0 0 12 ?? WL 20:25 0:00,05 (irq15: ata1) root 26 0,0 0,0 0 12 ?? DL 20:25 0:00,00 (usb0) root 27 0,0 0,0 0 12 ?? DL 20:25 0:00,00 (usbtask) root 28 0,0 0,0 0 12 ?? DL 20:25 0:00,00 (usb1) root 30 0,0 0,0 0 12 ?? WL 20:25 0:00,00 (irq6: fdc0) root 31 0,0 0,0 0 12 ?? WL 20:25 0:00,00 (swi0: tty:sio+) root 34 0,0 0,0 0 12 ?? WL 20:25 0:00,49 (irq1: atkbd0) root 35 0,0 0,0 0 12 ?? WL 20:25 0:01,14 (irq12: psm0) root 8 0,0 0,0 0 12 ?? DL 20:25 0:00,00 (pagedaemon) root 9 0,0 0,0 0 12 ?? DL 20:25 0:00,00 (vmdaemon) root 38 0,0 0,0 0 12 ?? DL 20:25 0:00,99 (pagezero) root 39 0,0 0,0 0 12 ?? DL 20:25 0:00,02 (bufdaemon) root 40 0,0 0,0 0 12 ?? DL 20:25 0:00,23 (syncer) root 41 0,0 0,0 0 12 ?? DL 20:25 0:00,01 (vnlru) root 42 0,0 0,0 0 12 ?? IL 20:25 0:00,00 (nfsiod 0) root 43 0,0 0,0 0 12 ?? IL 20:25 0:00,00 (nfsiod 1) root 44 0,0 0,0 0 12 ?? IL 20:25 0:00,00 (nfsiod 2) root 45 0,0 0,0 0 12 ?? IL 20:25 0:00,00 (nfsiod 3) root 150 0,0 0,0 228 120 ?? Is 20:25 0:00,00 adjkerntz -i root 267 0,0 0,3 1272 844 ?? Is 20:25 0:00,06 /usr/sbin/syslogd -s bind 275 0,0 0,9 2708 2196 ?? Is 20:25 0:00,06 /usr/sbin/named -u bind -g bind root 358 0,0 0,3 1196 700 ?? Is 20:25 0:00,00 /usr/sbin/usbd root 417 0,0 1,0 3432 2368 ?? Is 20:25 0:00,12 /usr/sbin/sshd root 422 0,0 1,0 3464 2560 ?? Ss 20:25 0:00,08 sendmail: accepting connections (sen smmsp 425 0,0 1,0 3340 2588 ?? Is 20:25 0:00,00 sendmail: Queue runner@00:30:00 for root 442 0,0 0,4 1296 984 ?? Is 20:25 0:00,02 /usr/sbin/cron root 458 0,0 1,3 4540 3136 ?? Ss 20:25 0:00,10 /usr/local/sbin/httpd -k start www 473 0,0 1,3 4540 3124 ?? I 20:25 0:00,00 /usr/local/sbin/httpd -k start www 474 0,0 1,3 4540 3124 ?? I 20:25 0:00,00 /usr/local/sbin/httpd -k start www 475 0,0 1,3 4540 3124 ?? I 20:25 0:00,00 /usr/local/sbin/httpd -k start www 476 0,0 1,3 4540 3124 ?? I 20:25 0:00,00 /usr/local/sbin/httpd -k start www 477 0,0 1,3 4540 3124 ?? I 20:25 0:00,00 /usr/local/sbin/httpd -k start root 479 0,0 0,0 0 12 ?? WL 20:25 0:08,85 (irq11: ltmdm0) root 521 0,0 0,4 1376 1012 ?? Is 20:25 0:00,00 /usr/sbin/inetd -wW root 533 0,0 0,5 1596 1280 v0 Is 20:25 0:00,04 login [pam] (login) root 534 0,0 0,5 1596 1292 v1 Is 20:25 0:00,03 login [pam] (login) root 535 0,0 0,5 1616 1312 v2 Is 20:25 0:00,04 login [pam] (login) root 536 0,0 0,4 1236 912 v3 Is+ 20:25 0:00,01 /usr/libexec/getty Pc ttyv3 root 537 0,0 0,4 1236 912 v4 Is+ 20:25 0:00,01 /usr/libexec/getty Pc ttyv4 root 538 0,0 0,4 1236 912 v5 Is+ 20:25 0:00,01 /usr/libexec/getty Pc ttyv5 root 539 0,0 0,4 1236 912 v6 Is+ 20:25 0:00,01 /usr/libexec/getty Pc ttyv6 root 540 0,0 0,4 1236 912 v7 Is+ 20:25 0:00,01 /usr/libexec/getty Pc ttyv7 root 541 0,0 0,5 1684 1252 v0 I+ 20:25 0:00,08 -csh (csh) root 544 0,0 0,5 1576 1224 v1 I+ 20:26 0:00,06 -csh (csh) misher 568 0,0 0,5 1616 1228 v2 I 20:31 0:00,03 -csh (csh) misher 573 0,0 0,3 916 652 v2 I+ 20:32 0:00,01 /bin/sh /usr/X11R6/bin/startx misher 585 0,0 0,6 2496 1588 v2 I+ 20:32 0:00,01 xinit /home/misher/.xinitrc -- -noli root 586 1,0 9,4 24720 23232 v2 S 20:32 0:32,44 /usr/X11R6/bin/XFree86 :0 -nolisten misher 591 0,0 0,3 916 652 v2 I 20:32 0:00,02 /bin/sh /usr/local/bin/startkde misher 605 0,0 5,9 19696 14688 ?? Is 20:32 0:00,37 kdeinit: Running... (kdeinit) misher 608 0,0 5,8 19380 14332 ?? S 20:32 0:00,27 kdeinit: dcopserver --nosid (kdeinit misher 612 0,0 6,4 20580 15824 ?? S 20:32 0:00,20 kdeinit: klauncher (kdeinit) misher 614 0,0 7,3 21972 17960 ?? S 20:32 0:18,32 kdeinit: kded (kdeinit) misher 622 0,0 7,3 21608 18060 ?? S 20:32 0:01,30 kdeinit: kxkb (kdeinit) misher 638 0,0 6,8 20732 16680 ?? S 20:32 0:00,62 kdeinit: kaccess (kdeinit) misher 640 0,0 7,9 24312 19624 ?? S 20:32 0:00,56 kdeinit: knotify (kdeinit) misher 641 0,0 0,4 1276 892 v2 S 20:32 0:00,05 kwrapper ksmserver misher 643 0,0 6,7 20632 16596 ?? S 20:32 0:00,44 kdeinit: ksmserver (kdeinit) misher 644 0,0 7,3 21776 18104 ?? S 20:32 0:01,78 kdeinit: kwin -session 105829ffd0000 misher 646 0,0 7,7 22320 18892 ?? S 20:32 0:02,59 kdeinit: kdesktop (kdeinit) misher 650 0,0 1,0 3172 2528 ?? S 20:32 0:00,61 xscreensaver misher 654 0,0 7,6 21280 18680 ?? S 20:32 0:01,81 kget -session 11c0a80001000108272666 misher 722 0,0 12,2 33584 30244 ?? S 20:35 0:10,21 kdeinit: konqueror --silent (kdeinit misher 726 0,0 10,9 30332 26932 ?? S 20:35 0:08,78 kmail -caption KMail -icon kmail -mi misher 746 0,0 8,0 23500 19636 ?? S 20:35 0:01,85 kdeinit: konsole (kdeinit) misher 748 0,0 0,5 1580 1232 p0 Ss 20:35 0:00,04 /bin/csh misher 762 0,0 6,2 20324 15188 ?? S 20:38 0:00,09 kdeinit: kio_file file /tmp/ksocket- root 813 0,0 0,3 1188 704 ?? Ss 20:43 0:01,09 moused -t auto -p /dev/psm0 -3 root 0 0,0 0,0 0 4 ?? DLs 20:25 0:00,01 (swapper) misher 849 0,0 0,2 740 564 p0 R+ 20:53 0:00,00 ps -aux root 10 0,0 0,0 0 12 ?? DL 20:25 0:00,00 (ktrace) From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 07:18:50 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from green.homeunix.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 0BA2616A4CE; Thu, 29 Apr 2004 07:18:50 -0700 (PDT) Received: from localhost (green@localhost [127.0.0.1]) by green.homeunix.org (8.12.11/8.12.11) with ESMTP id i3TEInJb046861; Thu, 29 Apr 2004 10:18:49 -0400 (EDT) (envelope-from green@green.homeunix.org) Message-Id: <200404291418.i3TEInJb046861@green.homeunix.org> X-Mailer: exmh version 2.6.3 04/04/2003 with nmh-1.0.4 To: Scott Pilz In-Reply-To: Message from Scott Pilz of "Wed, 28 Apr 2004 13:25:20 CDT." <20040428131439.C46625@mail.tznet.com> From: Brian Fundakowski Feldman Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 29 Apr 2004 10:18:49 -0400 Sender: green@green.homeunix.org cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: freebsd-mobile@freebsd.org Subject: Re: hostap TX fix in 5.x X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 14:18:50 -0000 Scott Pilz wrote: > Has anyone found a fix for this problem yet? > > Affects: In FreeBSD-5.x / Current > Card Used: Prism 2.5, tried all firmware (from 1.3.9 to 1.7.2) > > While the interface (wi driver) is set to hostap, associated clients can > upload at 11mbit/sec but download a maximum at half of that (I'm seeing a > maximum being around 180KB/sec). I think you need to reevaluate testing procedures; there is no way you could be getting remotely close to 11mbit/s speeds. Please provide more accurate figures for comparison or it's hard to guess what might be "wrong". -- Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ <> green@FreeBSD.org \ The Power to Serve! \ Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 09:52:45 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6FD5616A4CE for ; Thu, 29 Apr 2004 09:52:45 -0700 (PDT) Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by mx1.FreeBSD.org (Postfix) with SMTP id E61A743D49 for ; Thu, 29 Apr 2004 09:52:44 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 29 Apr 2004 17:52:44 +0100 (BST) Date: Thu, 29 Apr 2004 17:52:43 +0100 From: David Malone To: TSaplin Mikhail Message-ID: <20040429165243.GA31181@walton.maths.tcd.ie> References: <200404292101.33004.tsmm@list.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200404292101.33004.tsmm@list.ru> User-Agent: Mutt/1.5.3i Sender: dwmalone@maths.tcd.ie cc: freebsd-hackers@freebsd.org Subject: Re: unexpected trafic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 16:52:45 -0000 On Thu, Apr 29, 2004 at 09:01:32PM +0700, TSaplin Mikhail wrote: > HI ALL; > > My freebsd5.1 emits some trafic: > > 20:32:41.496039 129dial.supernet.kz.52075 > GATEKEEPER.MCAST.NET.1718: udp 31 Does sockstat show which process is using port 52075? David. From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 09:59:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7649016A4CE for ; Thu, 29 Apr 2004 09:59:19 -0700 (PDT) Received: from mail4.speakeasy.net (mail4.speakeasy.net [216.254.0.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3483B43D1F for ; Thu, 29 Apr 2004 09:59:19 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (qmail 18856 invoked from network); 29 Apr 2004 16:59:18 -0000 Received: from gate.funkthat.com (HELO hydrogen.funkthat.com) ([69.17.45.168]) (envelope-sender ) by mail4.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 29 Apr 2004 16:59:18 -0000 Received: from hydrogen.funkthat.com (nmbcnc@localhost.funkthat.com [127.0.0.1])i3TGxHOE021741; Thu, 29 Apr 2004 09:59:18 -0700 (PDT) (envelope-from jmg@hydrogen.funkthat.com) Received: (from jmg@localhost) by hydrogen.funkthat.com (8.12.10/8.12.10/Submit) id i3TGxGNU021740; Thu, 29 Apr 2004 09:59:16 -0700 (PDT) Date: Thu, 29 Apr 2004 09:59:16 -0700 From: John-Mark Gurney To: "P. de Boer" Message-ID: <20040429165916.GL567@funkthat.com> Mail-Followup-To: "P. de Boer" , freebsd-hackers@freebsd.org References: <1083167960.653.23.camel@edinburgh.thedarkside.tix> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1083167960.653.23.camel@edinburgh.thedarkside.tix> User-Agent: Mutt/1.4.1i X-Operating-System: FreeBSD 4.2-RELEASE i386 X-PGP-Fingerprint: B7 EC EF F8 AE ED A7 31 96 7A 22 B3 D8 56 36 F4 X-Files: The truth is out there X-URL: http://resnet.uoregon.edu/~gurney_j/ X-Resume: http://resnet.uoregon.edu/~gurney_j/resume.html cc: freebsd-hackers@freebsd.org Subject: Re: Extracting symbol info out of processes at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: John-Mark Gurney List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 16:59:19 -0000 P. de Boer wrote this message on Wed, Apr 28, 2004 at 17:59 +0200: > For a little private project I'm working at, I need to find the address > of a function which is inside a shared library of a running process, OR > the base address the library is running at (in that case, I can simply > do a base_address+known_offset_of_function). The executable nor > libraries have their symbols stripped. Well, if you don't mind not doing all the code, you could use gcore + gdb to extract the function and library... It may not be the most elegant solution, but it will work.. -- John-Mark Gurney Voice: +1 415 225 5579 "All that I will do, has been done, All that I have, has not." From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 10:32:29 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4686116A4CE for ; Thu, 29 Apr 2004 10:32:29 -0700 (PDT) Received: from 15pc221.sshunet.nl (15pc221.sshunet.nl [131.211.221.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8F1AD43D3F for ; Thu, 29 Apr 2004 10:32:28 -0700 (PDT) (envelope-from pieter@thelostparadise.com) Received: from thedarkside.nl ([172.16.0.4]) by 15pc221.sshunet.nl (8.12.8p2/8.12.8) with ESMTP id i3THWHKM083287; Thu, 29 Apr 2004 19:32:18 +0200 (CEST) (envelope-from pieter@thelostparadise.com) Received: from [10.0.0.3] (edinburgh [10.0.0.3]) by thedarkside.nl (8.12.8p2/8.12.8) with ESMTP id i3THWEPQ084877; Thu, 29 Apr 2004 19:32:14 +0200 (CEST) (envelope-from pieter@thelostparadise.com) From: "P. de Boer" To: John-Mark Gurney In-Reply-To: <20040429165916.GL567@funkthat.com> References: <1083167960.653.23.camel@edinburgh.thedarkside.tix> <20040429165916.GL567@funkthat.com> Content-Type: text/plain Organization: The Lost Paradise Message-Id: <1083259932.640.20.camel@edinburgh.thedarkside.tix> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 29 Apr 2004 19:32:13 +0200 Content-Transfer-Encoding: 7bit X-TheLostParadise-MailScanner-Information: Please contact the ISP for more information X-TheLostParadise-MailScanner: Found to be clean cc: freebsd-hackers@freebsd.org Subject: Re: Extracting symbol info out of processes at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: pieter@thelostparadise.com List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 17:32:29 -0000 On Thu, 2004-04-29 at 18:59, John-Mark Gurney wrote: > > For a little private project I'm working at, I need to find the address > > of a function which is inside a shared library of a running process, OR > > the base address the library is running at (in that case, I can simply > > do a base_address+known_offset_of_function). The executable nor > > libraries have their symbols stripped. > > Well, if you don't mind not doing all the code, you could use gcore + gdb > to extract the function and library... It may not be the most elegant > solution, but it will work.. I'm afraid I really need to do all the code, since I want to use it for a program which needs to set breakpoints at the functions I'm trying to get the addresses for. I looked at the gdb sources to see if I could get a sense of how gdb extracts the data, but couldn't get the hang of it. Another option would be to use /proc, but that's evil.. -- Pieter From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 16:38:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DCD9316A4CE for ; Thu, 29 Apr 2004 16:38:13 -0700 (PDT) Received: from smtp03.mrf.mail.rcn.net (smtp03.mrf.mail.rcn.net [207.172.4.62]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95EB043D45 for ; Thu, 29 Apr 2004 16:38:13 -0700 (PDT) (envelope-from eaja@erols.com) X-Info: This message was accepted for relay by smtp03.mrf.mail.rcn.net as the sender used SMTP authentication X-Trace: UmFuZG9tSVYrSO3REX152rBB/SXoqL82VkTC+UR/ZrynL001iXSKc6Z2S8TIF3lj Received: from 165.sub-166-141-30.myvzw.com ([166.141.30.165] helo=localhost) by smtp03.mrf.mail.rcn.net with asmtp (Exim 3.35 #4) id 1BJL6N-0001vx-00 for freebsd-hackers@freebsd.org; Thu, 29 Apr 2004 19:38:04 -0400 Date: Thu, 29 Apr 2004 19:37:06 -0400 From: Eric Jacobs To: freebsd-hackers@freebsd.org Message-Id: <20040429193706.22fd50f9.eaja@erols.com> In-Reply-To: <1083243107.640.13.camel@edinburgh.thedarkside.tix> References: <1083167960.653.23.camel@edinburgh.thedarkside.tix> <1083243107.640.13.camel@edinburgh.thedarkside.tix> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i386-portbld-freebsd4.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Subject: Re: Extracting symbol info out of processes at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 23:38:14 -0000 On Thu, 29 Apr 2004 14:51:47 +0200 "P. de Boer" wrote: > > On Thu, 2004-04-29 at 14:30, Dag-Erling Smørgrav wrote: > > "P. de Boer" writes: > > > For a little private project I'm working at, I need to find the address > > > of a function which is inside a shared library of a running process, OR > > > the base address the library is running at > > > > man dlinfo > > Well, yes, dlinfo() would be very useful, if it was not for my wish to > read the link_map from another proces, using ptrace(). I've looked at > rtld-elf.c, to see what dlinfo() does: it finds the object by the given > address and then 'returns' the link_map for that object. However, I > can't find out where this info would be in the memory image of a running > process. Have a look at /proc/NNN/map (If trying to read it gives you "File too large", try it with a bigger buffer size.) The segment load address is in the leftmost column. Eric From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 04:57:52 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 429B816A4CE for ; Fri, 30 Apr 2004 04:57:52 -0700 (PDT) Received: from atlas.informatik.rwth-aachen.de (atlas.informatik.RWTH-Aachen.DE [137.226.194.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id F199843D39 for ; Fri, 30 Apr 2004 04:57:50 -0700 (PDT) (envelope-from stolz@i2.informatik.rwth-aachen.de) Received: from menelaos.informatik.rwth-aachen.de (menelaos.informatik.RWTH-Aachen.DE [137.226.194.73]) 8.11.1-0.5-michaelw-20030918) with ESMTP id i3UBvn431087; Fri, 30 Apr 2004 13:57:49 +0200 Received: (from stolz@localhost)i3UBvnfN097751; Fri, 30 Apr 2004 13:57:49 +0200 (CEST) (envelope-from stolz) Date: Fri, 30 Apr 2004 13:57:49 +0200 From: Volker Stolz To: TSaplin Mikhail Message-ID: <20040430115749.GA97746@i2.informatik.rwth-aachen.de> References: <200404292101.33004.tsmm@list.ru> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <200404292101.33004.tsmm@list.ru> X-PGP-Key: finger vs@foldr.org X-PGP-Id: 0x3FD1B6B5 User-Agent: Mutt/1.5.4i cc: hackers@freebsd.org Subject: Re: unexpected trafic X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 11:57:52 -0000 In local.freebsd-hackers, you wrote: > My freebsd5.1 emits some trafic: > 20:32:41.496039 129dial.supernet.kz.52075 > GATEKEEPER.MCAST.NET.1718: udp 31 H.323 ("VoIP") Gatekeeper Discovery http://www.cs.columbia.edu/~hgs/rtp/h323.html -- http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME Neu! Ändern Sie den Anfangstag Ihrer Woche From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 07:30:04 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C681A16A4CE; Thu, 29 Apr 2004 07:30:04 -0700 (PDT) Received: from mail.tznet.com (mail.tznet.com [66.170.64.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5849343D3F; Thu, 29 Apr 2004 07:30:04 -0700 (PDT) (envelope-from scottp@tznet.com) Received: from mail.tznet.com (mail.tznet.com [66.170.64.2]) by mail.tznet.com (8.12.11/8.12.9) with ESMTP id i3TETRUZ053975; Thu, 29 Apr 2004 09:29:28 -0500 (CDT) Date: Thu, 29 Apr 2004 09:29:25 -0500 (CDT) From: Scott Pilz To: Brian Fundakowski Feldman In-Reply-To: <200404291418.i3TEInJb046861@green.homeunix.org> Message-ID: <20040429092503.V49036@mail.tznet.com> References: <200404291418.i3TEInJb046861@green.homeunix.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-T-Net-Virus-Scan: 66.170.64.2: Clean X-Mailman-Approved-At: Fri, 30 Apr 2004 05:21:39 -0700 cc: freebsd-hackers@freebsd.org cc: freebsd-current@freebsd.org cc: freebsd-mobile@freebsd.org Subject: Re: hostap TX fix in 5.x X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 14:30:05 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 11mbit/half duplex 802.11b.. I've seen speeds at around 600KBytes/sec (4.6mbit/sec) which is about the best you can do - and isn't bad by any means. As I explained below, the problem is with FBSD 5.X (all the way to CURRENT), where I'm seeing the speeds drop from what they were in 4.x to around 180KBytes/sec (or 1.4mbit/sec). Scott On Thu, 29 Apr 2004, Brian Fundakowski Feldman wrote: > Scott Pilz wrote: > > Has anyone found a fix for this problem yet? > > > > Affects: In FreeBSD-5.x / Current > > Card Used: Prism 2.5, tried all firmware (from 1.3.9 to 1.7.2) > > > > While the interface (wi driver) is set to hostap, associated clients can > > upload at 11mbit/sec but download a maximum at half of that (I'm seeing a > > maximum being around 180KB/sec). > > I think you need to reevaluate testing procedures; there is no way you could > be getting remotely close to 11mbit/s speeds. Please provide more accurate > figures for comparison or it's hard to guess what might be "wrong". > > -- > Brian Fundakowski Feldman \'[ FreeBSD ]''''''''''\ > <> green@FreeBSD.org \ The Power to Serve! \ > Opinions expressed are my own. \,,,,,,,,,,,,,,,,,,,,,,\ > > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAkRFH2REUg6gjWxgRAnG5AKDA4cDQxmSire/jqsh0b3hzkPgV4QCcCwc5 v+hY8uEoPTzNWraeDaTLNn8= =MFcP -----END PGP SIGNATURE----- From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 29 07:46:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C14D16A4CE for ; Thu, 29 Apr 2004 07:46:23 -0700 (PDT) Received: from fire.securenet-server.net (fire.securenet-server.net [63.247.80.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0517E43D41 for ; Thu, 29 Apr 2004 07:46:23 -0700 (PDT) (envelope-from eric@theeric.com) Received: from 165.sub-166-141-30.myvzw.com ([166.141.30.165] helo=localhost) by fire.securenet-server.net with asmtp (Exim 4.24) id 1BJCnk-0001EX-TW for freebsd-hackers@freebsd.org; Thu, 29 Apr 2004 10:46:17 -0400 Date: Thu, 29 Apr 2004 10:45:34 -0400 From: Eric Jacobs To: freebsd-hackers@freebsd.org Message-Id: <20040429104534.17951b8a.eric@theeric.com> In-Reply-To: <1083243107.640.13.camel@edinburgh.thedarkside.tix> References: <1083167960.653.23.camel@edinburgh.thedarkside.tix> <1083243107.640.13.camel@edinburgh.thedarkside.tix> X-Mailer: Sylpheed version 0.8.5 (GTK+ 1.2.10; i386-portbld-freebsd4.2) Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - fire.securenet-server.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - theeric.com X-Mailman-Approved-At: Fri, 30 Apr 2004 05:21:39 -0700 Subject: Re: Extracting symbol info out of processes at runtime X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Apr 2004 14:46:23 -0000 On Thu, 29 Apr 2004 14:51:47 +0200 "P. de Boer" wrote: > > On Thu, 2004-04-29 at 14:30, Dag-Erling Smørgrav wrote: > > "P. de Boer" writes: > > > For a little private project I'm working at, I need to find the address > > > of a function which is inside a shared library of a running process, OR > > > the base address the library is running at > > > > man dlinfo > > Well, yes, dlinfo() would be very useful, if it was not for my wish to > read the link_map from another proces, using ptrace(). I've looked at > rtld-elf.c, to see what dlinfo() does: it finds the object by the given > address and then 'returns' the link_map for that object. However, I > can't find out where this info would be in the memory image of a running > process. Have a look at /proc/NNN/map (If trying to read it gives you "File too large", try it with a bigger buffer size.) The segment load address is in the leftmost column. Eric From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 04:28:37 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1403116A4CE for ; Fri, 30 Apr 2004 04:28:37 -0700 (PDT) Received: from cgp.dol.ru (spiritus.dol.ru [194.87.5.78]) by mx1.FreeBSD.org (Postfix) with ESMTP id 950EB43D39 for ; Fri, 30 Apr 2004 04:28:35 -0700 (PDT) (envelope-from mitya@sinbin.demos.su) Received: from [194.87.5.31] (HELO sinbin.demos.su) by cgp.dol.ru (CommuniGate Pro SMTP 4.1.8/D2) with ESMTP-TLS id 160918276 for hackers@freebsd.org; Fri, 30 Apr 2004 15:28:31 +0400 Received: from sinbin.demos.su by sinbin.demos.su with ESMTPœ id i3UBSU5S022870; (8.12.11/D) Fri, 30 Apr 2004 15:28:30 +0400 (MSD) Received: (from mitya@localhost) by sinbin.demos.su (8.12.11/8.12.11/Submit) id i3UBSTZm022863 for hackers@freebsd.org; Fri, 30 Apr 2004 15:28:29 +0400 (MSD) (envelope-from mitya) Date: Fri, 30 Apr 2004 15:28:29 +0400 From: Dmitry Sivachenko To: hackers@freebsd.org Message-ID: <20040430112829.GA93243@sinbin.demos.su> Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Disposition: inline WWW-Home-Page: http://mitya.pp.ru/ X-PGP-Key: http://mitya.pp.ru/mitya.asc User-Agent: Mutt/1.5.6i X-Mailman-Approved-At: Fri, 30 Apr 2004 05:21:39 -0700 Subject: /bin/sh question X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 11:28:37 -0000 Hello! We use recent -STABLE. We observed /bin/sh looping forever executing a script. We run this script with -T option to sh(1). When sh(1) receives a HUP, we entering our trap handler which spawns child process. When this process exits, sh(1) loops. The backtrace is the following: (gdb) bt #0 0x80763fc in wait4 () #1 0x8075941 in wait3 () #2 0x8051f8a in waitproc (block=1, status=0xbfbffa0c) at /mnt/backup/releng_4/src/bin/sh/jobs.c:1025 #3 0x8051cbd in dowait (block=1, job=0x80c6000) at /mnt/backup/releng_4/src/bin/sh/jobs.c:926 #4 0x8051b8a in waitforjob (jp=0x80c6000, origstatus=0xbfbffa88) at /mnt/backup/releng_4/src/bin/sh/jobs.c:870 #5 0x804be33 in evalcommand (cmd=0x80b6d6c, flags=0, backcmd=0x0) at /mnt/backup/releng_4/src/bin/sh/eval.c:904 #6 0x804acc0 in evaltree (n=0x80b6d6c, flags=0) at /mnt/backup/releng_4/src/bin/sh/eval.c:281 #7 0x804aafa in evaltree (n=0x80b6e04, flags=0) at /mnt/backup/releng_4/src/bin/sh/eval.c:199 #8 0x804aafa in evaltree (n=0x80b6e38, flags=0) at /mnt/backup/releng_4/src/bin/sh/eval.c:199 #9 0x804aa73 in evalstring ( s=0x80c5100 "rm -f /tmp/st28742.box221.zecke.demos.su; _clean SIGHUP /dev/tt yph.28742.zecke.demos.su 28742; exit") at /mnt/backup/releng_4/src/bin/sh/eval.c:171 #10 0x80598da in dotrap () at /mnt/backup/releng_4/src/bin/sh/trap.c:401 #11 0x804acf6 in evaltree (n=0x80b6d00, flags=0) at /mnt/backup/releng_4/src/bin/sh/eval.c:290 #12 0x80528f4 in cmdloop (top=1) at /mnt/backup/releng_4/src/bin/sh/main.c:250 The waitproc() at jobs.c:926 returns -1 and sets errno to ECHILD (because the child does not exist at that time). Since (pid <= 0) condition is true at jobs.c:935, -1 is returned and we are entering dotrap() at jobs.c:870. dotrap() never alters (struct job *)state. So we get an infinite loop around jobs.c:869. Unfortunatelly I can't provide a simple enough how-to-observe script for this, but the above logic seems weird for me. I can provide additional details or coredump if needed. From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 08:25:35 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00FB816A4CE for ; Fri, 30 Apr 2004 08:25:35 -0700 (PDT) Received: from tyr.systh.org (c168015.adsl.hansenet.de [213.39.168.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 104A243D64 for ; Fri, 30 Apr 2004 08:25:34 -0700 (PDT) (envelope-from mm@tyr.systh.org) Received: from tyr.systh.org (localhost [127.0.0.1]) by tyr.systh.org (8.12.11/8.12.11) with ESMTP id i3UFPP9A020073 for ; Fri, 30 Apr 2004 17:25:25 +0200 (CEST) (envelope-from mm@tyr.systh.org) Received: (from mm@localhost) by tyr.systh.org (8.12.11/8.12.11/Submit) id i3UFPP5b020072 for freebsd-hackers@freebsd.org; Fri, 30 Apr 2004 17:25:25 +0200 (CEST) (envelope-from mm) Resent-From: mm@tyr.systh.org Resent-Date: Fri, 30 Apr 2004 17:25:25 +0200 Resent-Message-ID: <20040430152525.GA20064@tyr.systh.org> Resent-To: freebsd-hackers@freebsd.org Date: Fri, 30 Apr 2004 16:25:01 +0200 From: Martin Moeller To: freebsd-hackers@freebsd.org Message-ID: <20040430142501.GA3036@tyr.systh.org> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Homepage: http://www.systh.org/ X-OS: FreeBSD 4.9 STABLE (RELENG_4) http://www.freebsd.org/ X-Uptime: 4:15pm up 15 mins, 2 users, load averages: 0,15 0,19 0,15 User-Agent: Mutt/1.5.6i Subject: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 15:25:35 -0000 Hi all, I'm totally new to FreeBSD programming, so please forgive my troll-like question! I'd like to write a nifty little program showing if somebody is calling me via an ISDN line. In the far future, the program should show the caller's telephone number. The ISDN kernel options are set and compiled ok, the system comes up with isic0: port 0xb800-0xb803,0xd000-0xd07f mem 0xeb800000-0xeb80007f irq 9 at device 11.0 on pci2 isic0: passive stack unit 0 so I assume everything's working great so far. I've looked around in /usr/src/sys/i386/include/i4b_ioctl.h and other files but - to be honest - I don't have a clue how to go on from here. This kernel stuff seems to be more complicated than the usual little useless programs I write. :-( Could you please point me to some documentation that is helpful? Nothing in the FBSD developer/architecture handbook was able to enlighten me. Thanks in advance! Martin From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 08:30:18 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46B9816A4CE for ; Fri, 30 Apr 2004 08:30:18 -0700 (PDT) Received: from tyr.systh.org (c168015.adsl.hansenet.de [213.39.168.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 834BA43D2D for ; Fri, 30 Apr 2004 08:30:17 -0700 (PDT) (envelope-from mm@tyr.systh.org) Received: from tyr.systh.org (localhost [127.0.0.1]) by tyr.systh.org (8.12.11/8.12.11) with ESMTP id i3UEP1kN006161 for ; Fri, 30 Apr 2004 16:25:01 +0200 (CEST) (envelope-from mm@tyr.systh.org) Received: (from mm@localhost) by tyr.systh.org (8.12.11/8.12.11/Submit) id i3UEP1E5006160 for freebsd-hackers@freebsd.org; Fri, 30 Apr 2004 16:25:01 +0200 (CEST) (envelope-from mm) Date: Fri, 30 Apr 2004 16:25:01 +0200 From: Martin Moeller To: freebsd-hackers@freebsd.org Message-ID: <20040430142501.GA3036@tyr.systh.org> Mail-Followup-To: freebsd-hackers@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Homepage: http://www.systh.org/ X-OS: FreeBSD 4.9 STABLE (RELENG_4) http://www.freebsd.org/ X-Uptime: 4:15pm up 15 mins, 2 users, load averages: 0,15 0,19 0,15 User-Agent: Mutt/1.5.6i Subject: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 15:30:18 -0000 Hi all, I'm totally new to FreeBSD programming, so please forgive my troll-like question! I'd like to write a nifty little program showing if somebody is calling me via an ISDN line. In the far future, the program should show the caller's telephone number. The ISDN kernel options are set and compiled ok, the system comes up with isic0: port 0xb800-0xb803,0xd000-0xd07f mem 0xeb800000-0xeb80007f irq 9 at device 11.0 on pci2 isic0: passive stack unit 0 so I assume everything's working great so far. I've looked around in /usr/src/sys/i386/include/i4b_ioctl.h and other files but - to be honest - I don't have a clue how to go on from here. This kernel stuff seems to be more complicated than the usual little useless programs I write. :-( Could you please point me to some documentation that is helpful? Nothing in the FBSD developer/architecture handbook was able to enlighten me. Thanks in advance! Martin From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 08:53:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F13B816A4CE for ; Fri, 30 Apr 2004 08:53:48 -0700 (PDT) Received: from gatekeeper.syskonnect.de (gatekeeper.syskonnect.de [213.144.13.149]) by mx1.FreeBSD.org (Postfix) with ESMTP id C646243D2D for ; Fri, 30 Apr 2004 08:53:45 -0700 (PDT) (envelope-from gheinig@syskonnect.de) Received: from syskonnect.de (skd.de [10.9.15.1])i3UFsh2U018336; Fri, 30 Apr 2004 17:54:43 +0200 (MET DST) Received: from syskonnect.de (localhost [127.0.0.1])i3UFrhUN007008; Fri, 30 Apr 2004 17:53:43 +0200 (MET DST) Message-ID: <40927639.1030602@syskonnect.de> Date: Fri, 30 Apr 2004 17:52:25 +0200 From: Gerald Heinig User-Agent: Mozilla Thunderbird 0.5 (X11/20040208) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Martin Moeller References: <20040430142501.GA3036@tyr.systh.org> In-Reply-To: <20040430142501.GA3036@tyr.systh.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 15:53:49 -0000 Martin, take a look at isdnd. If all you want is a program to tell you whether someone's calling you and under what number, isdnd will tell you that in full screen mode. Alternatively, if you want to write your own program, take a look at the isdnd sources to see how it's done. HTH, Gerald Martin Moeller wrote: > Hi all, > > I'm totally new to FreeBSD programming, so please forgive my troll-like > question! I'd like to write a nifty little program showing if somebody is > calling me via an ISDN line. In the far future, the program should show the > caller's telephone number. > The ISDN kernel options are set and compiled ok, the system comes up with > > isic0: port 0xb800-0xb803,0xd000-0xd07f mem > 0xeb800000-0xeb80007f irq 9 at device 11.0 on pci2 > isic0: passive stack unit 0 > > so I assume everything's working great so far. > > I've looked around in /usr/src/sys/i386/include/i4b_ioctl.h and other files > but - to be honest - I don't have a clue how to go on from here. This kernel > stuff seems to be more complicated than the usual little useless programs I > write. :-( > Could you please point me to some documentation that is helpful? Nothing in > the FBSD developer/architecture handbook was able to enlighten me. From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 10:05:13 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45EAA16A4CE for ; Fri, 30 Apr 2004 10:05:13 -0700 (PDT) Received: from mail.1plan.net (ns1.1plan.net [216.240.143.74]) by mx1.FreeBSD.org (Postfix) with SMTP id E727B43D46 for ; Fri, 30 Apr 2004 10:05:10 -0700 (PDT) (envelope-from aanton@reversedhell.net) Received: (qmail 77630 invoked by uid 98); 30 Apr 2004 17:11:20 -0000 Received: from aanton@reversedhell.net by cp by uid 101 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(81.196.32.25):SA:0(-99.8/4.7):. Processed in 1.07914 secs); 30 Apr 2004 17:11:20 -0000 X-Spam-Status: No, hits=-99.8 required=4.7 X-Qmail-Scanner-Mail-From: aanton@reversedhell.net via cp X-Qmail-Scanner: 1.20 (Clear:RC:1(81.196.32.25):SA:0(-99.8/4.7):. Processed in 1.07914 secs) Received: from unknown (HELO reversedhell.net) (81.196.32.25) by ns1.1plan.net with SMTP; 30 Apr 2004 17:11:18 -0000 Message-ID: <40928736.9020906@reversedhell.net> Date: Fri, 30 Apr 2004 20:04:54 +0300 From: Anton Alin-Adrian User-Agent: Mozilla Thunderbird 0.5 (X11/20040303) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Craig Booth , freebsd-hackers@freebsd.org References: <20040404010834.RUJK10441.mta9.adelphia.net@BoothLaptop> In-Reply-To: <20040404010834.RUJK10441.mta9.adelphia.net@BoothLaptop> X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: Wireless Card Issue AFTER Install X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 17:05:13 -0000 Craig Booth wrote: > Anton, thank you for taking time to help. I have answered your questions > within your text at the bottom of this email as best as I know how to as a > raw BSD Unix user. > I defentaley appologise for not answering for such a long time, my attention was caught in the anti-spam war (and I receive thousands of those things). Is it you that mailed me privately on if_atuwi.ko, or was it somebody else? I am sorry, I think it was somebody else (no results after a big search on my inbox). > -----Original Message----- > From: Anton Alin-Adrian [mailto:aanton@reversedhell.net] > Sent: Saturday, April 03, 2004 4:18 PM > To: Craig Booth > Cc: freebsd-hackers@freebsd.org > Subject: Re: Wireless Card Issue AFTER Install > > Craig Booth wrote: > >>Any guru out there that has the knowledge to provide some advice to > > persist the use of the Linksys card beyond the first install? I tried this > question on the Questions mailing list, but no one could tackle it, > unfortunately. > > Situation: > > I have set up my Sony VAIO PCG-FRV27 laptop as a dual boot machine between > Win XP Pro and FreeBSD. > > I am using a Linksys Wireless card connecting through a Linksys router. > > My install successfully enabled and used the wireless card and router to > install directly from the FreeBSD ftp site (after CD boot) and completed > with no errors. > > Even though my rc.conf file is verified as setup with "DHCP" and the pccard > enabled, and even though the startup processes appear to find and enable the > card ok, I can't connect back to the ftp site to download more stuff unless > I use the CD to restart the install over the ftp site again. It either > can't resolve the ftp site, or hangs during the attempt. > > I have read where this can sometimes happen with dual boot machines when the > other OS doesn't properly release the card, but I have tried unplugging the > machine, removing and putting back both the card and the laptop battery > before rebooting, and it still doesn't work. I am getting the [Null] [Null] > message after the Linksys Card Found message during startup, as my earlier > reading about the problem discussed, but nothing seems to change that, > unless I reinstall FreeBSD from the CD (which I'm obviously not going to do > everytime I want to use FreeBSD!) > > Two things I notice when I go to set up the media in SYSINSTALL. The > gateway address (192.168.2.1) and the DHCP assigned address (range starting > with 192.168.2.2), both present on this same screen when booting from the > CD, are missing from the DHCP config screen that comes up just before > SYSINSTALL attempts to connect to the ftp site, though the connection > attempt still fails if I enter the info back in manually before trying to > connect. Also, a message comes up before that which says something about > being in multiuser mode, and ask if I want to assume network settings are > already correct. (or something like that) This multiuser message is not > present when booting from the CD.> > _______________________________________________ > >>freebsd-hackers@freebsd.org mailing list >>http://lists.freebsd.org/mailman/listinfo/freebsd-hackers >>To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org" >> >> > > Hi, could you please provide a bit more info? > > What is the model of your Linksys card? > > Answer: Linksys Instant Wireless Network PC Card WPC11 V3.0 > > and what driver are you using for it? > > Answer: Win XP: Intersil islp2 version 2.0.10.0 > FreeBSD: Intersil Firmware: Primary 1.01.00, Station 1.04.02 (as > reported by FreeBSD) > > Is it supported on the FreeBSD hardware list? > > Answer: Yes > > How do you configure your wireless driver? Using what software/scripts? > Don't skip details please. > > Answer: No software scripts, none that I initiated anyway. The wireless > card is configured through the wi0 (Lucent WaveLAN/IEEE 802.11 wireless > adapter) choice, since that was the only wireless adapter selection > available on the SYSINSTALL menu. Again, it worked for the initial install, > and when I try other choices, the logon scripts change it back to wi0 > anyway, since that's apparently being picked up on auto-detection. Here are > excerpts from the logon messages that may answer your questions, as well as > provide a bit more insight: > > Apr 3 18:06:11 pccardd[49]:Card "The Linksys Group, Inc."(" Instant Wireless > Network PC Card")[ISL37300P][RevA] matched "The Linksys Group, Inc."(" > Instant Wireless Network PC Card")[(null)][(null)] > . > . > . > login: wi0 at port 0x240-0x27f irq11 slot 0 on pccard0 > wi0: 802.11 address:00:06:25:15:f9:34 > wi0: using RF:PRISM3(PCMCIA) > wi0: Intensil Firmware: Primary 1.01.00, Station 1.04.02 > > Apr 3 18:06:16 pccardd[49]:wi0: The Linksys Group, Inc."(" Instant Wireless > Network PC Card inserted. > > Apr 3 18:06:25 pccard[49]: pccardd started > > > Trying a non-DHCP config for testing might help. See if you can ping. Can > you ping your own IP of the wireless card, locally? > > Answer: I pinged 192.168.2.100 successfully. However, I'm not sure how to > find out the local address of the card, as 192.168.2.100 was what DHCP > assigned, I believe. > > Can you ping the broadcast IP for it? > > Answer: If this is what I think you mean, it's the http://68.168.1.42 IP? > No, it can't ping that IP. Furthermore, it can't ping anything on the > outside, including DSN name http://www.FreeBSD.org or anything else. I also > tried pinging an IP directly (http://216.136.204.117 is the FreeBSD site IP) > and that failed as well. The message during ping failure is: > > Ping:sendto:No route to host > > Is there any firewalling capability in your kernel/loaded modules? > > Answer: I have only loaded the FreeBSD standard i386 kernel and any modules > that come standard. I have not loaded any extra software at this point > until I get a good baseline. > > I assume the card is working neat on XP. > > Answer: Yes, flawlessly. > > Have you tried it after rebooting freebsd without actually going into XP? > > Answer: Yes, I have tried that and it acted no differently (still failed.) > > XP may set up some BIOS parameters which FreeBSD doesn't like? > > Answer: As I mentioned in the first email, I tried booting fresh right to > FreeBSD without first going to Win XP, and did so after removing and putting > back the laptop's power cord and battery. > > ...Thanks again for you help, and I'm looking forward to some more follow-up > on this, as I'm stumped. > > Kindest regards, > > Craig > --------------------------------------------------------- > > Regards, > I see it uses PRISM 3 chip. I don't know if that is compatible with the FreeBSD version of firmware. However: If you edit /etc/rc.conf , you can eliminate the DHCP configuration. Set your interface to use a static class C IP, for example 10.0.0.1/255.255.255.0. You can find that in the Handbook, at the network config section. Example: ifconfig_wi0="inet 10.0.0.1 netmask 255.255.255.0" Of course your card is detected as wi0, as it is your only wireless card in the laptop. Remove (comment out with '#') any DHCP information from /etc/rc.conf related to wi0 and the IP of wi0. Reboot. Now ok, ping your IP. (ie. 10.0.0.1). # ifconfig wi0 should show wi0 is properly configured If you can ping your own IP, the driver is most probably working fine, and you need to set up the Wireless Networking Parameters. You can do that using this tool: # wicontrol Mainly you have to set up the operation mode (ad-hoc, access-point, etc), the WEPKey (if any and if WEP is enabled, should be) and the name of the SSID. http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-wireless.html The Wireless Networking section in the handbook explains all that in great detail.. You should see in your logs (probably in /var/log/messages), if your network card is able to join the network or not. I am looking forward to hear feedback after you try this. I appologise again for the huge delay, I kinda missed your mail. Regards, -- Alin-Adrian Anton Reversed Hell Networks GPG keyID 0x1E2FFF2E (2963 0C11 1AF1 96F6 0030 6EE9 D323 639D 1E2F FF2E) gpg --keyserver pgp.mit.edu --recv-keys 1E2FFF2E From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 12:40:11 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C72716A4CE for ; Fri, 30 Apr 2004 12:40:11 -0700 (PDT) Received: from transport.cksoft.de (transport.cksoft.de [62.111.66.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 758C543D58 for ; Fri, 30 Apr 2004 12:40:10 -0700 (PDT) (envelope-from bzeeb-lists@lists.zabbadoz.net) Received: from transport.cksoft.de (localhost [127.0.0.1]) by transport.cksoft.de (Postfix) with ESMTP id D8F2B1FF9A6; Fri, 30 Apr 2004 21:40:08 +0200 (CEST) Received: by transport.cksoft.de (Postfix, from userid 66) id D35551FF931; Fri, 30 Apr 2004 21:40:06 +0200 (CEST) Received: by mail.int.zabbadoz.net (Postfix, from userid 1060) id 755D315615; Fri, 30 Apr 2004 19:31:42 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.int.zabbadoz.net (Postfix) with ESMTP id 720C415602; Fri, 30 Apr 2004 19:31:42 +0000 (UTC) Date: Fri, 30 Apr 2004 19:31:42 +0000 (UTC) From: "Bjoern A. Zeeb" X-X-Sender: bz@e0-0.zab2.int.zabbadoz.net To: Martin Moeller In-Reply-To: <20040430142501.GA3036@tyr.systh.org> Message-ID: References: <20040430142501.GA3036@tyr.systh.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS cksoft-s20020300-20031204bz on transport.cksoft.de cc: freebsd-hackers@freebsd.org Subject: Re: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 19:40:11 -0000 On Fri, 30 Apr 2004, Martin Moeller wrote: > I'm totally new to FreeBSD programming, so please forgive my troll-like > question! I'd like to write a nifty little program showing if somebody is > calling me via an ISDN line. In the far future, the program should show the > caller's telephone number. I am using this ince-quickly-hacked script with c4b and isdnd: tail -100f /var/log/isdnd.log | perl bin/parse-isdnd-log.pl --- cut --- #!/usr/bin/perl $|=1; while (<>) { s/^(\w+ \d+ \d+:\d+:\d+) \w+ \w+\[\d+\]/$1/; if (/CHD/) { s/CHD \d+ //; print $_; } } # End; --- cut --- Gives me s.th. like this: Apr 28 16:30:35: incoming call from NotAvailable to 41 ctrl 3 or Apr 28 17:23:30: incoming call from 01234567890 to 41 ctrl 3 -- Bjoern A. Zeeb bzeeb at Zabbadoz dot NeT 56 69 73 69 74 http://www.zabbadoz.net/ From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 18:52:42 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1FC5C16A4CE for ; Fri, 30 Apr 2004 18:52:42 -0700 (PDT) Received: from www.nativenerds.com (host-12-49-220-24.midco.net [24.220.49.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8551C43D53 for ; Fri, 30 Apr 2004 18:52:41 -0700 (PDT) (envelope-from estover@nativenerds.com) Received: from www.nativenerds.com (localhost.nativenerds.com [127.0.0.1]) by www.nativenerds.com (8.12.8p1/8.12.8) with ESMTP id i411lTMR019479 for ; Fri, 30 Apr 2004 19:47:29 -0600 (MDT) (envelope-from estover@nativenerds.com) Received: (from www@localhost) by www.nativenerds.com (8.12.8p1/8.12.8/Submit) id i411lTFR019478; Fri, 30 Apr 2004 19:47:29 -0600 (MDT) Date: Fri, 30 Apr 2004 19:47:29 -0600 (MDT) Message-Id: <200405010147.i411lTFR019478@www.nativenerds.com> X-Authentication-Warning: www.nativenerds.com: www set sender to estover@nativenerds.com using -f To: freebsd-hackers@freebsd.org Received: from 192.168.1.89 (auth. user estover@localhost) by www.nativenerds.com with HTTP; Sat, 01 May 2004 01:47:29 +0000 X-IlohaMail-Blah: estover@localhost X-IlohaMail-Method: mail() [mem] X-IlohaMail-Dummy: moo X-Mailer: IlohaMail/0.7.11 (On: www.nativenerds.com) From: "Ed Stover" Bounce-To: "Ed Stover" Errors-To: "Ed Stover" MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Squid, SquidGuard, FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 01:52:42 -0000 Has any one successfully done squid with squidGuard on a FreeBSD later then 4.5 ? I have made it work on 4.5 but nothing later because of the berkly db changes after 4.5, if you have made contentent filtering work on FreeBSD-current can I get some tips? I like 4.5 but 4.9 has better hardware coverage. estover@nativenerds.com From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 04:37:07 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 64ED516A4CE for ; Sat, 1 May 2004 04:37:07 -0700 (PDT) Received: from bremen.shuttle.de (bremen.shuttle.de [194.95.249.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9BF7143D3F for ; Sat, 1 May 2004 04:37:06 -0700 (PDT) (envelope-from schweikh@schweikhardt.net) Received: by bremen.shuttle.de (Postfix, from userid 10) id 047FD3BA8E; Sat, 1 May 2004 13:37:04 +0200 (CEST) Received: from hal9000.schweikhardt.net (localhost [127.0.0.1]) i41Bb4CZ005906 for ; Sat, 1 May 2004 13:37:04 +0200 (CEST) (envelope-from schweikh@hal9000.schweikhardt.net) Received: (from schweikh@localhost) by hal9000.schweikhardt.net (8.12.11/8.12.11/Submit) id i41Bb4bD005905 for freebsd-hackers@freebsd.org; Sat, 1 May 2004 13:37:04 +0200 (CEST) (envelope-from schweikh) Date: Sat, 1 May 2004 13:37:04 +0200 From: Jens Schweikhardt To: freebsd-hackers@freebsd.org Message-ID: <20040501113704.GA5730@schweikhardt.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i Subject: lseek to EOF always 0 for devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 11:37:07 -0000 Fellow hackers, I'm not sure if I'm trying something impossible here. I want to find the size in bytes of a disk special device, eg /dev/da0, /dev/da0s1, /dev/da0s1a, /dev/vinum/usr and so on. The following program prints correct sizes for plain files and directories, but it consistently prints 0 for block devices. If this is not supported, how would I find the number of blocks for a given block device? I don't want to mess with parsing disklabels and vinum configs... #include #include #include int main (int argc, char **argv) { int fd; off_t len; if (argc != 2) return 1; if ((fd = open (argv[1], O_RDONLY)) < 0) { perror (argv[1]); return 1; } if ((len = lseek (fd, 0, SEEK_END)) == -1) { perror ("lseek"); return 1; } printf ("%lld\n", (long long)len); close (fd); return 0; } Regards, Jens -- Jens Schweikhardt http://www.schweikhardt.net/ SIGSIG -- signature too long (core dumped) From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 08:06:33 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BAC4A16A4CE for ; Fri, 30 Apr 2004 08:06:33 -0700 (PDT) Received: from mail.o2.co.uk (piglet.london.ongenie.net [193.113.160.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0DB3E43D69 for ; Fri, 30 Apr 2004 08:06:33 -0700 (PDT) (envelope-from jpk@o2online.de) Received: from o2online.de (134.155.24.41) by mail.o2.co.uk (7.0.020) (authenticated as 01791458016@o2online.de) id 40911C2A00038EFC; Fri, 30 Apr 2004 16:05:49 +0100 Message-ID: <40926BFD.6040402@o2online.de> Date: Fri, 30 Apr 2004 17:08:45 +0200 From: "J.-P. Klodzinski" User-Agent: Mozilla Thunderbird 0.5 (X11/20040420) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Christian Brueffer References: <200404261846.i3QIkmZV002230@bleep.craftncomp.com> <20040428095655.GB53993@unixpages.org> In-Reply-To: <20040428095655.GB53993@unixpages.org> X-Mailman-Approved-At: Sat, 01 May 2004 05:12:28 -0700 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 cc: Stephen Hocking cc: hackers@freebsd.org Subject: Re: Vendors of multi-port PCI ethernet cards? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 15:06:33 -0000 Christian Brueffer wrote: >On Mon, Apr 26, 2004 at 01:46:48PM -0500, Stephen Hocking wrote: > > >>All, >> >> >>Does anyone know where I can lay my hands on one of those 4 port ethernet >>cards that used to be around a while back? >> >> >> > >Adaptec sells the ANA-64044LV, a 4 port card. I'm running the 2 port >version of the old revision here, which performs well. > >- Christian > > > I'm very sorry that i don't know the name of the card, but on of my good friends is running a dlink! So just look on the homepage of them, or use the big eb*y.! I've you need more detailed infos i'll gone ask him! OK? From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 30 14:47:22 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E9FEA16A4DE for ; Fri, 30 Apr 2004 14:47:22 -0700 (PDT) Received: from arg1.demon.co.uk (arg1.demon.co.uk [62.49.12.213]) by mx1.FreeBSD.org (Postfix) with ESMTP id 614D843D49 for ; Fri, 30 Apr 2004 14:47:22 -0700 (PDT) (envelope-from arg-bsd@arg.me.uk) Received: by arg1.demon.co.uk (Postfix, from userid 1002) id 55E409B25; Fri, 30 Apr 2004 22:47:21 +0100 (BST) Received: from localhost (localhost [127.0.0.1]) by arg1.demon.co.uk (Postfix) with ESMTP id 51B835E3A; Fri, 30 Apr 2004 22:47:21 +0100 (BST) Date: Fri, 30 Apr 2004 22:47:21 +0100 (BST) From: Andrew Gordon X-X-Sender: freebsd@server.arg.sj.co.uk To: Martin Moeller In-Reply-To: <20040430142501.GA3036@tyr.systh.org> Message-ID: <20040430223724.U98295@server.arg.sj.co.uk> References: <20040430142501.GA3036@tyr.systh.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Mailman-Approved-At: Sat, 01 May 2004 05:12:27 -0700 cc: freebsd-hackers@freebsd.org Subject: Re: Accessing (the i4b) device driver X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2004 21:47:23 -0000 On Fri, 30 Apr 2004, Martin Moeller wrote: > > I'm totally new to FreeBSD programming, so please forgive my troll-like > question! I'd like to write a nifty little program showing if somebody is > calling me via an ISDN line. In the far future, the program should show the > caller's telephone number. The easiest way to do this is to use isdnd's regular expression feature, which allows a program to be run whenever the regular expression matches an line in the isdnd logging output. The program that gets run is typically a shell script, but can be any kind of program that you care to write. See the 'regexpr' and 'regprog' keywords on the isdnd.rc(5) manpage. That assumes your program just wants to monitor things passively; if you want it to do handle calls actively, you want full entry in isdnd.rc (see the 'I4BTEL' example in /etc/isdnd/isdnd.rc.sample). > Could you please point me to some documentation that is helpful? Nothing in > the FBSD developer/architecture handbook was able to enlighten me. http://people.freebsd.org/~hm/i4b-home/documentation.html From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 03:40:23 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9139216A4CE for ; Sat, 1 May 2004 03:40:23 -0700 (PDT) Received: from smtp1.netcologne.de (smtp1.netcologne.de [194.8.194.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5894943D6A for ; Sat, 1 May 2004 03:40:23 -0700 (PDT) (envelope-from thomas@laurel.tmseck.homedns.org) Received: from laurel.tmseck.homedns.org (xdsl-81-173-169-55.netcologne.de [81.173.169.55]) by smtp1.netcologne.de (Postfix) with SMTP id 3B31D38B0F for ; Sat, 1 May 2004 12:40:21 +0200 (MEST) Received: (qmail 960 invoked by uid 1001); 1 May 2004 10:40:17 -0000 Date: 1 May 2004 10:40:17 -0000 Message-ID: <20040501104017.959.qmail@laurel.tmseck.homedns.org> From: tmseck-lists@netcologne.de (Thomas-Martin Seck) To: "Ed Stover" Organization: a private site in Germany In-Reply-To: <200405010147.i411lTFR019478@www.nativenerds.com> X-Newsgroups: gmane.os.freebsd.devel.hackers X-Attribution: tms X-Mailman-Approved-At: Sat, 01 May 2004 05:12:28 -0700 cc: freebsd-hackers@freebsd.org Subject: Re: Squid, SquidGuard, FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 10:40:23 -0000 * Ed Stover [gmane.os.freebsd.devel.hackers]: > Has any one successfully done squid with squidGuard on a FreeBSD later then > 4.5 ? I have made it work on 4.5 but nothing later because of the berkly db > changes after 4.5, if you have made contentent filtering work on > FreeBSD-current can I get some tips? I like 4.5 but 4.9 has better hardware > coverage. squid and squidGuard work flawlessly on -STABLE if you don't mind that squidGuard (nowadays?) needs db3 from ports. From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 06:29:49 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADA3D16A4CE for ; Sat, 1 May 2004 06:29:49 -0700 (PDT) Received: from orange.csi.cam.ac.uk (orange.csi.cam.ac.uk [131.111.8.77]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F2D543D60 for ; Sat, 1 May 2004 06:29:49 -0700 (PDT) (envelope-from rtb27@cam.ac.uk) Received: from localhost ([127.0.0.1] helo=rtb27.robinson.cam.ac.uk) by orange.csi.cam.ac.uk with esmtp (Exim 4.12) id 1BJuYu-0004uw-00 for freebsd-hackers@freebsd.org; Sat, 01 May 2004 14:29:48 +0100 From: Richard Bradley To: freebsd-hackers@freebsd.org Date: Sat, 1 May 2004 14:28:19 +0100 User-Agent: KMail/1.5.4 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200405011428.19287.rtb27@cam.ac.uk> Subject: linking questions (how to use linux version of libc) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 13:29:49 -0000 Hi, I am trying to compile a program that uses "initstate_r" from random(3) in libc. However this function only seems to exist in the linux version of libc. Compare `man 3 random` on a linux box [1] which has "initstate_r" and "initstate", whereas `man 3 random` on a FreeBSD box [2] has only "initstate". I have the linux compat stuff on my system. The header called in the file is "#include " When I try to compile, it comes up with "undeclared identifier" errors. What can I do? Any help is much appreciated. Rich [1] -- man 3 random on linux -- http://h30097.www3.hp.com/docs/base_doc/ DOCUMENTATION/V51B_HTML/MAN/MAN3/2370____.HTM [2] -- man 3 random on FreeBSD -- http://www.FreeBSD.org/cgi/ man.cgi?query=random&apropos=0&sektion=0&manpath=FreeBSD+5.2-RELEASE+and +Ports&format=html From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 07:03:17 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4D55316A4CE for ; Sat, 1 May 2004 07:03:17 -0700 (PDT) Received: from tensor.xs4all.nl (tensor.xs4all.nl [194.109.160.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id B555243D1F for ; Sat, 1 May 2004 07:03:16 -0700 (PDT) (envelope-from dimitry@andric.com) Received: from kilgore.dim (kilgore.dim [192.168.0.3]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by tensor.xs4all.nl (Postfix) with ESMTP id 5CA422284E; Sat, 1 May 2004 16:03:14 +0200 (CEST) Date: Sat, 1 May 2004 16:01:36 +0200 From: Dimitry Andric X-Mailer: The Bat! (v2.10.03) Business X-Priority: 3 (Normal) Message-ID: <1434443012.20040501160136@andric.com> To: Jens Schweikhardt In-Reply-To: <20040501113704.GA5730@schweikhardt.net> References: <20040501113704.GA5730@schweikhardt.net> MIME-Version: 1.0 Content-Type: multipart/signed; protocol="application/pgp-signature"; micalg="pgp-sha1"; boundary="----------9C16C19E114218" cc: freebsd-hackers@freebsd.org Subject: Re: lseek to EOF always 0 for devices X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 14:03:17 -0000 ------------9C16C19E114218 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit On 2004-05-01 at 13:37:04 Jens Schweikhardt wrote: > I'm not sure if I'm trying something impossible here. I want to find the > size in bytes of a disk special device, eg /dev/da0, /dev/da0s1, > /dev/da0s1a, /dev/vinum/usr and so on. I have no idea why lseek'ing in the devices doesn't work, but try using ioctl(2) with DIOCGMEDIASIZE (from ), this works fine for me: #include #include #include #include int main (int argc, char **argv) { int fd; off_t len; if (argc != 2) return 1; if ((fd = open (argv[1], O_RDONLY)) < 0) { perror (argv[1]); return 1; } if (ioctl (fd, DIOCGMEDIASIZE, &len) == -1) { perror ("DIOCGMEDIASIZE"); return 1; } printf ("%lld\n", (long long)len); close (fd); return 0; } ------------9C16C19E114218 Content-Type: application/pgp-signature -----BEGIN PGP MESSAGE----- Version: GnuPG v1.2.4 (MingW32) iD8DBQFAk63AsF6jCi4glqMRAiAUAJoDaKao+Uk92h943NrH6l8feHhBNgCgqFJi UZn7ZyVMNuQft1KM0WgW5jY= =xO8W -----END PGP MESSAGE----- ------------9C16C19E114218-- From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 13:14:19 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id ADA2316A4CE for ; Sat, 1 May 2004 13:14:19 -0700 (PDT) Received: from enterprise.sd73.bc.ca (romulus-net.sd73.bc.ca [142.24.13.134]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4010F43D41 for ; Sat, 1 May 2004 13:14:19 -0700 (PDT) (envelope-from fcash-ml@sd73.bc.ca) Received: from mailtest.sd73.bc.ca (mailtest.sd73.bc.ca [10.10.10.14]) i41K1rDP017086; Sat, 1 May 2004 13:01:53 -0700 Received: from 24.71.131.186 (SquirrelMail authenticated user fcash) by mailtest.sd73.bc.ca with HTTP; Sat, 1 May 2004 13:14:19 -0700 (PDT) Message-ID: <60350.24.71.131.186.1083442459.squirrel@mailtest.sd73.bc.ca> In-Reply-To: <200405010147.i411lTFR019478@www.nativenerds.com> References: <200405010147.i411lTFR019478@www.nativenerds.com> Date: Sat, 1 May 2004 13:14:19 -0700 (PDT) From: "Freddie Cash" To: "Ed Stover" User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal cc: hackers@freebsd.org Subject: Re: Squid, SquidGuard, FreeBSD X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 20:14:19 -0000 > Has any one successfully done squid with squidGuard on a FreeBSD > later then 4.5 ? I have made it work on 4.5 but nothing later > because of the berkly db changes after 4.5, if you have made > contentent filtering work on FreeBSD-current can I get some tips? I > like 4.5 but 4.9 has better hardware coverage. Is SquidGuard still limited to only filtering the URL of the requested page, or does it actually check the text content of the page? Have you considered DansGuardian (www/dansguardian*)? It has the same URL filtering abilities of SG, but also includes support for filtering based on client username, client IP, webserver IP, domain, URL, text content, weighted text content, file extension, MIME-type, and PICS rating. No hard numbers for the current 2.6 and 2.7 versions, but DG 2.2 and 2.4 were several times faster than SquidGuard (whichever version was out then) for URL processing. Just something to consider. Not sure what your needs or requirements are, but thought I'd offer up an alternative. :) PS: If you decide to install the Dansguardian port(s), there's an issue with dansguardian-devel where it doesn't install a complete startup shell script. You'll have to edit that manually (not sure how that one got past my tests). -- Freddie Cash fcash-ml@sd73.bc.ca From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 15:27:28 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 51E5F16A4CE for ; Sat, 1 May 2004 15:27:28 -0700 (PDT) Received: from schlepper.zs64.net (schlepper.zs64.net [212.12.50.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 159BF43D45 for ; Sat, 1 May 2004 15:27:27 -0700 (PDT) (envelope-from stb@lassitu.de) Received: from [IPv6:::1] (schlepper [212.12.50.230]) by schlepper.zs64.net (8.12.10/8.11.1) with ESMTP id i41MRM7D061538; Sun, 2 May 2004 00:27:23 +0200 (CEST) (envelope-from stb@lassitu.de) In-Reply-To: <20040429000158.GA61693@xor.obsecurity.org> References: <409024D6.7090800@parc.com> <20040429000158.GA61693@xor.obsecurity.org> Mime-Version: 1.0 (Apple Message framework v613) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Stefan Bethke Date: Sun, 2 May 2004 00:27:22 +0200 To: Kris Kennaway X-Mailer: Apple Mail (2.613) cc: sunsa@parc.com cc: hackers@freebsd.org cc: John Uhlig Subject: Re: kmem_malloc crashes running FreeBSD 5.2.1-RELEASE-p5 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 May 2004 22:27:28 -0000 Am 29.04.2004 um 02:01 schrieb Kris Kennaway: > On Wed, Apr 28, 2004 at 02:40:38PM -0700, John Uhlig wrote: >> On the web, freebsd mailing lists and bug lists, I have seen existing >> thread about "kmem_malloc and kmem_map too small" problems - but no >> evidence of a fix or patch. We experienced the same problem running >> 4.9 but were able to fix it by setting the MAXMEM option in our >> kernel conf file to a value 1GB less than actual physical memory >> size. This does not help with 5.2.1-RELEASE-p5. >> > See PR 53416. You just need to tune your kernel resource allocation > to deal with the large amount of memory your system has. I recently enquired about advice for this exact situation on -current (see http://lists.freebsd.org/pipermail/freebsd-current/2004-April/ 026065.html), but didn't really get any. The PR does not give advice on which parameters in which way, or list a solution. My own experimentation has been inconclusive; the machine still panics when running the daily scripts. I'm running a cron job every minute to record various vm statistics now; hopefully this will give me further pointers. How does PAE affect this? My box has 6 GB, but I have disabled PAE for the moment. And just for clarification: the panic is with basically no load, just some file system pressure (two jails running the daily scripts); otherwise, the machine is unused. Stefan -- Stefan Bethke Fon +49 170 346 0140 From owner-freebsd-hackers@FreeBSD.ORG Sat May 1 22:26:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5E49B16A4CE for ; Sat, 1 May 2004 22:26:15 -0700 (PDT) Received: from hotmail.com (bay2-dav71.bay2.hotmail.com [65.54.246.206]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3F3AA43D53 for ; Sat, 1 May 2004 22:26:15 -0700 (PDT) (envelope-from dsnofe@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Sat, 1 May 2004 22:26:15 -0700 Received: from 61.147.224.213 by bay2-dav71.bay2.hotmail.com with DAV; Sun, 02 May 2004 05:26:14 +0000 X-Originating-IP: [61.147.224.213] X-Originating-Email: [dsnofe@hotmail.com] X-Sender: dsnofe@hotmail.com Date: Sun, 02 May 2004 13:26:13 +0800 From: Deng XueFeng To: freebsd-hackers@freebsd.org Message-Id: <20040502132115.C583.DSNOFE@hotmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------_4094854BC580036F4F88_MULTIPART_MIXED_" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.09.01 [CN] X-OriginalArrivalTime: 02 May 2004 05:26:15.0119 (UTC) FILETIME=[FD059DF0:01C43005] Subject: Is this LOST?? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 May 2004 05:26:15 -0000 --------_4094854BC580036F4F88_MULTIPART_MIXED_ Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I found the htonl implemention in libc for i386 is not sync with the kern. sys use bswap for swaping the int. but libc still use xchg. IS THIS LOST? Here is the patches. ----------------------------CUT HERE------------------------ --- /usr/src/lib/libc/i386/net/htonl.S.orig Sun May 2 12:13:13 2004 +++ /usr/src/lib/libc/i386/net/htonl.S Sun May 2 12:22:02 2004 @@ -46,7 +46,5 @@ .set CNAME(htonl),CNAME(__htonl) ENTRY(__htonl) movl 4(%esp),%eax - xchgb %al,%ah - roll $16,%eax - xchgb %al,%ah + bswap %eax ret -----------------------------END HERE---------------------- ----------------------------CUT HERE------------------------ --- /usr/src/lib/libc/i386/net/ntohl.S.orig Sun May 2 12:13:21 2004 +++ /usr/src/lib/libc/i386/net/ntohl.S Sun May 2 12:19:16 2004 @@ -46,7 +46,5 @@ .set CNAME(ntohl),CNAME(__ntohl) ENTRY(__ntohl) movl 4(%esp),%eax - xchgb %al,%ah - roll $16,%eax - xchgb %al,%ah + bswap %eax ret -----------------------------END HERE---------------------- Sincerely, Deng XueFeng --------_4094854BC580036F4F88_MULTIPART_MIXED_ Content-Type: application/octet-stream; name="htonl.S.diff" Content-Disposition: attachment; filename="htonl.S.diff" Content-Transfer-Encoding: base64 LS0tIC91c3Ivc3JjL2xpYi9saWJjL2kzODYvbmV0L2h0b25sLlMub3JpZwlTdW4gTWF5ICAyIDEy OjEzOjEzIDIwMDQKKysrIC91c3Ivc3JjL2xpYi9saWJjL2kzODYvbmV0L2h0b25sLlMJU3VuIE1h eSAgMiAxMjoyMjowMiAyMDA0CkBAIC00Niw3ICs0Niw1IEBACiAgICAgICAgIC5zZXQgQ05BTUUo aHRvbmwpLENOQU1FKF9faHRvbmwpCiBFTlRSWShfX2h0b25sKQogCW1vdmwJNCglZXNwKSwlZWF4 Ci0JeGNoZ2IJJWFsLCVhaAotCXJvbGwJJDE2LCVlYXgKLQl4Y2hnYgklYWwsJWFoCisJYnN3YXAg ICAlZWF4CiAJcmV0Cg== --------_4094854BC580036F4F88_MULTIPART_MIXED_ Content-Type: application/octet-stream; name="ntohl.S.diff" Content-Disposition: attachment; filename="ntohl.S.diff" Content-Transfer-Encoding: base64 LS0tIC91c3Ivc3JjL2xpYi9saWJjL2kzODYvbmV0L250b2hsLlMub3JpZwlTdW4gTWF5ICAyIDEy OjEzOjIxIDIwMDQKKysrIC91c3Ivc3JjL2xpYi9saWJjL2kzODYvbmV0L250b2hsLlMJU3VuIE1h eSAgMiAxMjoxOToxNiAyMDA0CkBAIC00Niw3ICs0Niw1IEBACiAgICAgICAgIC5zZXQgQ05BTUUo bnRvaGwpLENOQU1FKF9fbnRvaGwpCiBFTlRSWShfX250b2hsKQogCW1vdmwJNCglZXNwKSwlZWF4 Ci0JeGNoZ2IJJWFsLCVhaAotCXJvbGwJJDE2LCVlYXgKLQl4Y2hnYgklYWwsJWFoCisJYnN3YXAJ JWVheAogCXJldAo= --------_4094854BC580036F4F88_MULTIPART_MIXED_--