From owner-freebsd-questions@FreeBSD.ORG Tue Oct 2 13:07:40 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 674CF16A418 for ; Tue, 2 Oct 2007 13:07:40 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: from wa-out-1112.google.com (wa-out-1112.google.com [209.85.146.182]) by mx1.freebsd.org (Postfix) with ESMTP id 2E54713C447 for ; Tue, 2 Oct 2007 13:07:40 +0000 (UTC) (envelope-from mkhitrov@gmail.com) Received: by wa-out-1112.google.com with SMTP id k17so5114727waf for ; Tue, 02 Oct 2007 06:07:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=xNFNiCp7/zcG4hJt1uvs2zW7wTzsNyL1AOpgBpGTAcM=; b=KkpyawfDnVPvcpW8tAp+Qo8fGJwoafnhCe9x4ctDqOrc95/9VPVTjJh/8hE1z6fb/arcjxKhp0kuat2lG352nbVx+fb88xHFNYzz83l2SxsW+2dtNuTPCo4P54PuanaCXgiUuH7eFMSNV1LQy/HOppECkdZxss5VMjlDPXbKb+8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HOdEPw2koKmQOv+4Ah7IWLGVaU+3U76Fo5aWedvi8BPkf7oVAUIhW1Q1piTUz5QrKcSEYw4cJ58cyToXFTLWD/pqyin2nK8/jaQb0zqcvKU7LtijpeWPHTCpkstEShrRqUyhAqKqhWc133dIl+246rgqYrOysgFB6WydlkxQ1yc= Received: by 10.114.60.19 with SMTP id i19mr6346719waa.1191330459126; Tue, 02 Oct 2007 06:07:39 -0700 (PDT) Received: by 10.142.211.11 with HTTP; Tue, 2 Oct 2007 06:07:39 -0700 (PDT) Message-ID: <26ddd1750710020607k7b26785el5836f4a32523f8c6@mail.gmail.com> Date: Tue, 2 Oct 2007 09:07:39 -0400 From: "Maxim Khitrov" To: "Chad Leigh -- Shire. Net LLC" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: User Questions Subject: Re: segmentation fault in sqlite3 on 6.2R amd64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Oct 2007 13:07:40 -0000 On 10/2/07, Chad Leigh -- Shire. Net LLC wrote: > Hi > > In installing trac I ran across a segmentation fault in the initenv > command. > > This seems to be the same problem as shown here: > > http://www.nabble.com/ports-116383%3A-sqlite3-%28from-databases- > sqlite3%29-segfault-tf4449251.html#a12694631 > > Running it in gdb shows > > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0x50c000 (LWP 100331)] > 0x0000000802f76869 in sqlite3Fts2InitHashTable () from /usr/public/ > lib/libsqlite3.so.8 > (gdb) backtrace > #0 0x0000000802f76869 in sqlite3Fts2InitHashTable () from /usr/ > public/lib/libsqlite3.so.8 > #1 0x0000000802f74f8f in sqlite3Fts2Init () from /usr/public/lib/ > libsqlite3.so.8 > #2 0x0000000802f41be5 in openDatabase () from /usr/public/lib/ > libsqlite3.so.8 > #3 0x0000000802e0bd91 in pysqlite_connection_init () from /usr/ > public/lib/python2.5/site-packages/pysqlite2/_sqlite.so > #4 0x00000008006ab6fb in PyType_IsSubtype () from /usr/public/lib/ > libpython2.5.so.1 > #5 0x000000080066ec83 in PyObject_Call () from /usr/public/lib/ > libpython2.5.so.1 > #6 0x0000000802e09f95 in module_connect () from /usr/public/lib/ > python2.5/site-packages/pysqlite2/_sqlite.so > #7 0x000000080066ec83 in PyObject_Call () from /usr/public/lib/ > libpython2.5.so.1 > #8 0x00000008006dc6da in PyEval_EvalFrameEx () from /usr/public/lib/ > libpython2.5.so.1 > #9 0x00000008006dec34 in PyEval_EvalCodeEx () from /usr/public/lib/ > libpython2.5.so.1 > #10 0x00000008006888be in PyFunction_SetClosure () from /usr/public/ > lib/libpython2.5.so.1 > #11 0x000000080066ec83 in PyObject_Call () from /usr/public/lib/ > libpython2.5.so.1 > #12 0x00000008006dc272 in PyEval_EvalFrameEx () from /usr/public/lib/ > libpython2.5.so.1 > #13 0x00000008006de336 in PyEval_EvalFrameEx () from /usr/public/lib/ > libpython2.5.so.1 > #14 0x00000008006dec34 in PyEval_EvalCodeEx () from /usr/public/lib/ > libpython2.5.so.1 > #15 0x00000008006dd9fb in PyEval_EvalFrameEx () from /usr/public/lib/ > libpython2.5.so.1 > #16 0x00000008006dec34 in PyEval_EvalCodeEx () from /usr/public/lib/ > libpython2.5.so.1 > > > > I do the simple test command as shown in the nabble.com link above > and get basically the same thing > > # gdb sqlite3 > 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"...(no debugging > symbols found)... > (gdb) r comments.db "CREATE TABLE comments (page, name, email, url, > body);" > Starting program: /usr/public/bin/sqlite3 comments.db "CREATE TABLE > comments (page, name, email, url, body);" > (no debugging symbols found)...(no debugging symbols found)...(no > debugging symbols found)...(no debugging symbols found)...(no > debugging symbols found)...(no debugging symbols found)... > Program received signal SIGSEGV, Segmentation fault. > 0x0000000800698869 in sqlite3Fts2InitHashTable () from /usr/public/ > lib/libsqlite3.so.8 > (gdb) backtrace > #0 0x0000000800698869 in sqlite3Fts2InitHashTable () from /usr/ > public/lib/libsqlite3.so.8 > #1 0x0000000800696f8f in sqlite3Fts2Init () from /usr/public/lib/ > libsqlite3.so.8 > #2 0x0000000800663be5 in openDatabase () from /usr/public/lib/ > libsqlite3.so.8 > #3 0x0000000000403133 in open_db () > #4 0x00000000004053b8 in main () > (gdb) > > Anyone else see this same thing or know about this problem? > > A Google search does not show this mentioned except at the above link. > > Thanks > Chad Do you have the FTS extension installed? If so, remove it and try again. - Max