Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 May 2013 01:40:15 -0700 (PDT)
From:      Waitman Gobble <uzimac@da3m0n8t3r.com>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/179102: Bus Error in databases/py-sqlite3
Message-ID:  <20130530084015.EABC636F52DB@dx.burplex.com>
Resent-Message-ID: <201305300850.r4U8o0dg002484@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130530084015.EABC636F52DB>