[New-bugs-announce] [issue12569] sqlite3 segfaults and bus errors when given certain unicode strings as queries
report at bugs.python.org
Fri Jul 15 01:23:42 CEST 2011
New submission from Jeremy Banks <jeremy at jeremybanks.ca>:
I was experimenting with the sqlite3 library and noticed that using certain strings as identifiers cause bus errors or segfaults. I'm not very familiar with unicode, but after some Googling I'm pretty sure this happens when I use non-characters or surrogate characters incorrectly.
This causes a bus error:
c = sqlite3.connect(":memory:")
table_name = '"' + chr(0xD800) + '"'
c.execute("create table " + table_name + " (bar)")
The equivalent Python 2 (replacing chr with unichr) works properly.
components: Library (Lib)
title: sqlite3 segfaults and bus errors when given certain unicode strings as queries
versions: Python 3.1
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce