From owner-freebsd-hackers Tue Jun 22 9:20: 9 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from news.IAEhv.nl (news.IAE.nl [194.151.64.4]) by hub.freebsd.org (Postfix) with ESMTP id 2B08914E8D for ; Tue, 22 Jun 1999 09:20:05 -0700 (PDT) (envelope-from marc@bowtie.nl) Received: (from uucp@localhost) by news.IAEhv.nl (8.9.1/8.9.1) with IAEhv.nl id SAA04857 for hackers@freebsd.org; Tue, 22 Jun 1999 18:20:04 +0200 (MET DST) Received: from localhost (localhost [127.0.0.1]) by bowtie.nl (8.8.8/8.8.8) with ESMTP id SAA29723 for ; Tue, 22 Jun 1999 18:17:33 +0200 (CEST) (envelope-from marc@bowtie.nl) Message-Id: <199906221617.SAA29723@bowtie.nl> X-Mailer: exmh version 2.0.2 2/24/98 To: hackers@freebsd.org Subject: mysterious problem with 2.2.x binary on 3.1 Reply-To: marc@bowtie.nl Date: Tue, 22 Jun 1999 18:17:33 +0200 From: Marc van Kempen Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I have a mysterious problem with running a 2.2.6 binary (dynamically linked) on a 3.1 box. The crazy thing is that it has worked flawlessly before. After doing a bit of development and compiling it again, I get segfaults when I try to run it on the 3.1 box. When I try it with an a.out gdb (ftp'ed from the 2.2.6 box) I get this: > ./gdb web-ssql GDB is free software and you are welcome to 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. GDB 4.16 (i386-unknown-freebsd), Copyright 1996 Free Software Foundation, Inc... (gdb) r -v Starting program: /home/bowtie/web-ssql -v reading register eip (#8): Bad address. (gdb) (3.1) ldd web-ssql: > ldd web-ssql web-ssql: -lcrypt.2 => /usr/lib/aout/libcrypt.so.2.0 (0x200a3000) -lm.2 => /usr/lib/aout/libm.so.2.0 (0x200b8000) -lc.3 => /usr/lib/aout/libc.so.3.1 (0x200d2000) (2.2.6) ldd web-ssql: web-ssql: -lcrypt.2 => /usr/lib/libcrypt.so.2.0 (0x200ab000) -lm.2 => /usr/lib/libm.so.2.0 (0x200ae000) -lc.3 => /usr/lib/libc.so.3.1 (0x200c8000) When I link the binary statically it works ok, but unfortunately I need it to be dynamically linked. Does anyone recognize this behaviour? And even better knows whats going on? Regards, Marc. ---------------------------------------------------- Marc van Kempen BowTie Technology Email: marc@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ---------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message