My favorites | Sign in
Project Home Downloads Wiki
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 212: core dump, pyodbc + Fedora + UnixODBC 2.3.0 + FreeTDS 0.91, odbc + freetds logs attached
1 person starred this issue and may be notified of changes. Back to list
Status:  Complete
Owner:  ----
Closed:  Dec 2011


 
Reported by zzz...@gmail.com, Sep 18, 2011
pyodbc 2.1.11
Fedora Release 14
UnixODBC 2.3.0 built from source
FreeTDS 0.91 built from source

Passing a Python unicode as a bind crashes.  This is in conflict with one of my users who insists that we pass Python unicode as binds.

    import pyodbc

    conn = pyodbc.connect("dsn=ms_2005;UID=scott;PWD=tiger")

    cursor = conn.cursor()

    cursor.execute("SELECT cast(? AS NVARCHAR)", ('abcdef'))
    print cursor.fetchall()

    cursor.execute("SELECT cast(? AS NVARCHAR)", (u'abcdef'))
    print cursor.fetchall()

ODBC log + FreeTDS log is attached.  Full output is attached, starts with:

[classic@f1 sqlalchemy]$ python test.py
[(u'abcdef', )]
*** glibc detected *** python: free(): invalid next size (fast): 0x08508720 ***


unixodbc.log
10.0 KB   View   Download
freetds.log
162 KB   View   Download
fedora_output.txt
7.3 KB   View   Download
Sep 18, 2011
#1 zzz...@gmail.com
correction, those files are against pyodbc 2.1.9 but just checked I get a core dump with 2.1.11 as well.
Nov 2, 2011
Project Member #2 mkleehammer
(No comment was entered for this change.)
Status: Investigating
Labels: FreeTDS
Dec 18, 2011
Project Member #3 mkleehammer
Fixed in 3.0.x versions.  Added unit tests to 3.0.2-beta04

Status: Complete

Powered by Google Project Hosting