From owner-cvs-all Sat Mar 17 2:40:27 2001 Delivered-To: cvs-all@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id BB6C537B719; Sat, 17 Mar 2001 02:40:06 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.2/8.11.2) with ESMTP id f2HAdum10452; Sat, 17 Mar 2001 10:39:56 GMT (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f2HAgw948505; Sat, 17 Mar 2001 10:42:58 GMT (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200103171042.f2HAgw948505@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: Jonathan Perkin Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org, brian@Awfulhak.org Subject: Re: cvs commit: src/usr.sbin/ngctl Makefile main.c In-Reply-To: Message from Jonathan Perkin of "Fri, 16 Mar 2001 23:50:52 GMT." <20010316235052.A23352@ns0.netcraft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sat, 17 Mar 2001 10:42:58 +0000 From: Brian Somers Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I think it'd be useful if you got a stack trace from the core that's dumped. The assertion failure in libthread looks like a bug as it's in the implementation. You may want to talk to Daniel Eischen about that. I guess you could also try to determine what order things are being done in. I would suspect some sort of race condition is occurring here.. The first thing that sprung to mind was that there's some sort of race between raising the signal and installing the handler, but it looks like you've got that covered.... > > phk 2001/03/16 11:35:08 PST > > > > Modified files: > > usr.sbin/ngctl Makefile main.c > > Log: > > Add -ledit to ngctl. > > > > Somebody submitted this long time ago, and it has been sitting in my > > tree for months because I thought archie would pick it up. > > > > Submitted by: (sorry, lost track) > > It was submitted by me, and unfortunately it needs to be backed out as > it completely and utterly does not work :) > > editline(3) blocks completely, so any checks for Netgraph control or > data messages are ignored and never printed - easy way to check is: > > + mkpeer ksocket foo inet/stream/tcp > + msg foo connect inet/127.0.0.1:13 > ngctl: send msg: Operation now in progress > + > > which should have responded with daytime info. > > I've been working on a newer version of this patch which is based on > pppctl(8) using pthreads which is currently up at > http://www.bsdcode.net/ngctl.patch - unfortunately it runs into some > threading issues which Archie informed me off which I haven't worked out > how to fix yet: > > + msg foo connect inet/127.0.0.1:13 > ngctl: send msg: Operation now in progress > + Rec'd data packet on hook "foo": > 0000: 46 72 69 20 4d 61 72 20 31 36 20 32 33 3a 33 38 Fri Mar 16 23:38 > 0010: 3a 32 37 20 32 30 30 31 0d 0a :27 2001.. > Fatal error '_waitq_remove: Not in queue' at line 317 in file /usr/src/lib/libc_r/uthread/uthread_priority_queue.c (errno = 35) > Abort (core dumped) > Exit 134 > > If anyone has any tips on what's wrong (I keep meaning to ask on -hackers), > I'd appreciate any pointers as I'm very low on pthread clue. > > Jon > -- Brian Don't _EVER_ lose your sense of humour ! To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message