[issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries

Ned Deily report at bugs.python.org
Fri Jul 15 05:24:10 CEST 2011


Ned Deily <nad at acm.org> added the comment:

What operating system platform and version are you seeing this behavior? Also can you report the versions of sqlite3 adapter and the sqlite3 library by executing the following in the interpreter?

>>> sqlite3.version
'2.6.0'
>>> sqlite3.sqlite_version
'3.6.12'

On Linux and OS X systems I've tested, rather than a segfault your test case causes an exception to be raised.

For Python 3.1.4:
"sqlite3.Warning: SQL is of wrong type. Must be string or unicode."

For Python 3.2.1
"UnicodeEncodeError: 'utf-8' codec can't encode character '\ud800' in position 14: surrogates not allowed"

----------
nosy: +ghaering, ned.deily

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12569>
_______________________________________


More information about the Python-bugs-list mailing list