Bug 179102

Summary: Bus Error in databases/py-sqlite3
Product: Ports & Packages Reporter: Waitman Gobble <uzimac>
Component: Individual Port(s)Assignee: freebsd-python (Nobody) <python>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Waitman Gobble 2013-05-30 09:50:00 UTC
	
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.

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.
How-To-Repeat: 	

cd /usr/ports/databases/py-sqlite3
make
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-30 09:50:14 UTC
Responsible Changed
From-To: freebsd-ports-bugs->freebsd-python

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Ruslan Makhmatkhanov freebsd_committer freebsd_triage 2013-06-10 09:25:58 UTC
State Changed
From-To: open->closed

Thanks for the report. It was just fixed in r320442, so please update 
your ports tree and rebuild python.