From root@dx.burplex.com  Thu May 30 08:40:16 2013
Return-Path: <root@dx.burplex.com>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 24D44C7B
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 May 2013 08:40:16 +0000 (UTC)
	(envelope-from root@dx.burplex.com)
Received: from dx.burplex.com (dx.burplex.com [50.197.134.185])
	by mx1.freebsd.org (Postfix) with ESMTP id 15749B61
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 30 May 2013 08:40:16 +0000 (UTC)
Received: by dx.burplex.com (Postfix, from userid 0)
	id EABC636F52DB; Thu, 30 May 2013 01:40:15 -0700 (PDT)
Message-Id: <20130530084015.EABC636F52DB@dx.burplex.com>
Date: Thu, 30 May 2013 01:40:15 -0700 (PDT)
From: Waitman Gobble <uzimac@da3m0n8t3r.com>
Reply-To: Waitman Gobble <uzimac@da3m0n8t3r.com>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: Bus Error in databases/py-sqlite3
X-Send-Pr-Version: 3.114
X-GNATS-Notify:

>Number:         179102
>Category:       ports
>Synopsis:       Bus Error in databases/py-sqlite3
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-python
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 30 08:50:00 UTC 2013
>Closed-Date:    Mon Jun 10 08:25:59 UTC 2013
>Last-Modified:  Mon Jun 10 08:25:59 UTC 2013
>Originator:     Waitman Gobble
>Release:        FreeBSD 10.0-CURRENT amd64
>Organization:
Waitman Gobble
>Environment:
System: FreeBSD dx.burplex.com 10.0-CURRENT FreeBSD 10.0-CURRENT #0 r251111: Wed May 29 16:44:31 PDT 2013 root@dx.burplex.com:/usr/obj/usr/src/sys/FURAHA amd64


	
>Description:
	
When building databases/py-sqlite3 I receive a 'Bus Error'. (Signal 10)
The software module builds (and functions) but does not install.
It seems to happen when it hits the following code in files/setup.py

try:
    import ctypes
    ctypes.CDLL('libsqlite3.so').sqlite3_load_extension
except AttributeError:
    macros.append(('SQLITE_OMIT_LOAD_EXTENSION', '1'))
	
However, please note that based on my experiments, it does not seem 
that 'import..' or 'ctypes.CDLL' is causing the Bus Error, nor does the 
'macros.append' cause the issue. It seems the Bus Error happens when it 
executes the 'except AttributeError:' line. In my case I knew I did not 
have extensions enabled in my sqlite3 build, so I removed all the lines 
shown above, except for the 'macros.append' and the install completed 
properly.

>How-To-Repeat:
	

cd /usr/ports/databases/py-sqlite3
make

>Fix:

	
I do not know a fix. It could be a 'wierd harold' however if other users are 
experiencing this issue it would be worth investigation. I suspect the problem 
is with lang/python2.7 (2.7.5) and not actually this port. The test machine 
is 'clean', ie latest CURRENT kernel/world build, latest ports update, 
pkg_libchck shows no library issues, pkg version reports all up-to-date, 
portmaster shows everything is latest available version. All python-related 
ports have been uninstalled and reinstalled yet the issue continues.

Thank you.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-python 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu May 30 08:50:14 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179102 
State-Changed-From-To: open->closed 
State-Changed-By: rm 
State-Changed-When: Mon Jun 10 08:25:58 UTC 2013 
State-Changed-Why:  
Thanks for the report. It was just fixed in r320442, so please update 
your ports tree and rebuild python. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179102 
>Unformatted:
