From owner-freebsd-stable@FreeBSD.ORG Mon Mar 3 22:24:19 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B2C401065678 for ; Mon, 3 Mar 2008 22:24:19 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.232]) by mx1.freebsd.org (Postfix) with ESMTP id 7DF308FC19 for ; Mon, 3 Mar 2008 22:24:19 +0000 (UTC) (envelope-from biancalana@gmail.com) Received: by wr-out-0506.google.com with SMTP id 58so710923wri.8 for ; Mon, 03 Mar 2008 14:24:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=SGPQYxPy25I5i0sEOWsGRIblQJw4EXLxPxBcoSG98W8=; b=HvhIoAk1By6uf+XY2/J/Cz2ImTcYzdd7EsSzmSxrRudPzaKjE/1EvtA0OYFM7v8JaNPGnNZX9IEI0xDwwZn8DkFusb7FZ3fZvw6pRUUoYtiK20whxXIf5ILprPVm//k+uB3ghQsEGrPeJnaupgEmfZiWJslUB7gIidQ65BMEEX8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=vDPci2a5q0bGiw/NB2LSRQh21qmJQSa9puq9GqYhDZpAc4k4MiB/NJ+R8QVk5sHLwJ64RTWx/HoDyY2NRDjyxN0YVoZXECOLpifbfGAVMa7irEVqfGxq982djVzmF0XhmHM/wLGhRLNQb8IrZXi74pFvKnpyeCB14pYZIm+8ru8= Received: by 10.64.184.16 with SMTP id h16mr445134qbf.45.1204583055860; Mon, 03 Mar 2008 14:24:15 -0800 (PST) Received: by 10.64.184.9 with HTTP; Mon, 3 Mar 2008 14:24:15 -0800 (PST) Message-ID: <8e10486b0803031424x31556698qa1bd1bbab8e8376f@mail.gmail.com> Date: Mon, 3 Mar 2008 19:24:15 -0300 From: "Alexandre Biancalana" To: freebsd-stable@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: AMD64 only Segmentation fault (was: 7-STABLE(AMD64)+Qmail-LDAP core dump) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Mar 2008 22:24:19 -0000 Hi list, I found a situation that I can't explain, I have qmail-ldap running at some FreeBSD 6.2 without any problem. Friday after Installed a new server this time with 7-STABLE. I stated to get core dumped from qmail-ldap when they try access the OpenLDAP database. I compiled/run this simple C program in 7-STABLE i386 and AMD64 and the program dumps the core only in AMD64. The following the C program trigger the core dump #include #include #include #include #include #include int main (void ) { LDAP *ld; int rc,version; version=3; if ( (ld = ldap_init("127.0.0.1",LDAP_PORT)) == 0) { perror("Connecting.."); } rc = ldap_set_option(ld, LDAP_OPT_PROTOCOL_VERSION, &version); if ( rc != LDAP_OPT_SUCCESS) { printf("Errorrrr (%s)\n", ldap_err2string(rc)); } } Using the following commands to compile: # gcc -I/usr/local/include -g -c a.c # gcc -L/usr/local/lib -o a a.o -lldap When I run the binary in AMD64 I get this: # ./a Segmentation fault (core dumped) Then I compiled the libldap.so with debug symbols and run the program througth gdb: # gdb a GNU gdb 6.1.1 [FreeBSD] Copyright 2004 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 "amd64-marcel-freebsd"... (gdb) run Starting program: /tmp/a Program received signal SIGSEGV, Segmentation fault. ldap_set_option (ld=0xf30040, option=17, invalue=0x7fffffffec2c) at options.c:358 358 assert( LDAP_VALID( ld ) ); (gdb) bt #0 ldap_set_option (ld=0xf30040, option=17, invalue=0x7fffffffec2c) at options.c:358 #1 0x000000000040083c in main () at a.c:19 (gdb) Now I reach to a point that I don't know what more to do.... Any help is *very* appreciated ! Best Regards, Alexandre