From owner-freebsd-hackers Fri May 14 8:25:23 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from axe.cablenet.net (axe.cablenet.net [195.248.96.20]) by hub.freebsd.org (Postfix) with ESMTP id 7357A1511B for ; Fri, 14 May 1999 08:25:07 -0700 (PDT) (envelope-from damian@cablenet.net) Received: from cablenet.net (localhost [127.0.0.1]) by axe.cablenet.net (8.9.0.Beta3/8.9.0.Beta3) with ESMTP id QAA12771 for ; Fri, 14 May 1999 16:20:33 +0100 (BST) Message-ID: <373C3F3F.A99DBD28@cablenet.net> Date: Fri, 14 May 1999 16:20:32 +0100 From: Damian Hamill Organization: CableNet Ltd X-Mailer: Mozilla 4.05 [en] (X11; I; SunOS 4.1.4 sun4m) MIME-Version: 1.0 To: hackers@freebsd.org Subject: dlopen failure Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have a program that is dumping core. ----------------------------------------------- Here's the gdb output; Program terminated with signal 6, Abort trap. #0 0x800b728 in _kill () (gdb) bt #0 0x800b728 in _kill () #1 0x800b34c in abort () #2 0x8004aa2 in __assert () #3 0x8003b4b in map_object () #4 0x8002e9e in find_symdef () #5 0x800334d in dlopen () #6 0x8049a68 in Get_SQL_Driver (name=0x804c7e4 "mysql") at Vdb.c:150 #7 0x8049ff9 in GetDefaultDriver () at Vdb.c:254 #8 0x804a141 in VdbInit (user=0x804bfb1 "nobody", passwd=0x0) at Vdb.c:329 #9 0x8049316 in main () #10 0x8048be5 in _start () ----------------------------------------------------- here's the output in the logfile identifying the assert failure; May 14 16:11:26 venus qmail: 926694686.764722 delivery 21: deferral: assertion_"u.hdr.e_phentsize_==_sizeof(Elf_Phdr)"_failed:_file_"/usr/src/libexec/rtld-elf/map_object.c",_line_118/Abort_trap_-_core_dumped/ May 14 16:11:26 venus qmail: 926694686.764952 status: local 4/10 remote 0/20 --------------------------------------------------------- here's my system; FreeBSD venus.cablenet.net 3.1-RELEASE FreeBSD 3.1-RELEASE #1: Tue Apr 27 11:44:21 BST 1999 root@server.cablenet.net:/usr/src/sys/compile/SERVER i386 and # cat /etc/objformat OBJFORMAT=elf --------------------------------------------------------- and here's the ld line for the shared object I am loading; ld -Bshareable -o $@ $< -u _floor ../../lib/libV.a /usr/local/lib/mysql/libmysqlclient.a /usr/lib/libm.a --------------------------------------------------- Does anyone know why I am getting this error ? MTIA regards damian * Damian Hamill M.D. damian@cablenet.net * CableNet & The Landscape Channel * http://www.cablenet.net/ http://www.landscapetv.com/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message