ports/179102: Bus Error in databases/py-sqlite3

Waitman Gobble uzimac at da3m0n8t3r.com
Thu May 30 08:50:01 UTC 2013


>Number:         179102
>Category:       ports
>Synopsis:       Bus Error in databases/py-sqlite3
>Confidential:   no
>Severity:       critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 30 08:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>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 at 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:
>Unformatted:


More information about the freebsd-ports-bugs mailing list