From owner-freebsd-hackers Mon Jan 19 12:54:16 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16594 for hackers-outgoing; Mon, 19 Jan 1998 12:54:16 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from awfulhak.org (awfulhak.demon.co.uk [158.152.17.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA16538 for ; Mon, 19 Jan 1998 12:53:47 -0800 (PST) (envelope-from brian@Awfulhak.org) Received: from gate.lan.awfulhak.org (localhost [127.0.0.1]) by awfulhak.org (8.8.7/8.8.7) with ESMTP id UAA21903; Mon, 19 Jan 1998 20:47:05 GMT (envelope-from brian@Awfulhak.org) Message-Id: <199801192047.UAA21903@awfulhak.org> X-Mailer: exmh version 2.0.1 12/23/97 To: freebsd-hackers@FreeBSD.ORG cc: Charles Mott , Eivind Eklund Subject: Recent libalias/ppp crashes. dlsym() bug ? Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 19 Jan 1998 20:47:05 +0000 From: Brian Somers Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk Well, people may be pleased to know that I found the problem that's been making ppp ``evaporate'' recently. The new PunchFWHole() function in libalias is called from alias_db.c, alias_ftp.c and alias_irc.c. I didn't get things right, and adjusted my script that builds my ppp archive so that it #ifdefs things out... (based on __FreeBSD_version) missing the PunchFWHole() call in alias_ftp.c and alias_irc.c, but managing to remove its definition from alias_db.c. When loading libalias, ppp uses dlopen()/dlsym() (in loadalias.c). It successfully loads the libalias stuff, and the PunchFWHole() call in alias_ftp.c makes the whole program evaporate - no syslog, nothing. This begs the question: Why can I load a function with dlsym() that has unresolved variables in it ? I'm afraid I haven't been paying attention to the dladdr() thread - if it's relevant. Thanks for any advise. Oh, and BTW, ppp is now fixed :-) -- Brian , , Don't _EVER_ lose your sense of humour....