"stack smashing" issues

Skip to first unread message

Craig-O

unread,
Oct 19, 2010, 10:59:35 AM10/19/10
to pyodbc
I am having issues using pyodbc to connect to an ODBC database
(validated connectivity) :

-- This fails
select count(*) as c from <table>

*** stack smashing detected ***: python terminated
Aborted (core dumped)

-- This works
select count(*)::integer as c from <table>

[(6540, )]

Any ideas why I would be getting the 'stack smashing' error?

mkleehammer

unread,
Nov 19, 2010, 5:06:59 PM11/19/10
to pyodbc
Can you provide some environment information? OS, version, etc?

Thanks.

mkleehammer

unread,
Nov 21, 2010, 11:37:04 AM11/21/10
to pyodbc
Someone else reported a core dump that occurred when selecting 1023
characters or more from a VARCHAR field using pyodbc 3.1. I've
committed a fix in the "fixes31" branch. Are you using 3.1?

felix...@gmail.com

unread,
Oct 4, 2012, 7:51:37 AM10/4/12
to pyo...@googlegroups.com
I'm having the same issue, and frequently. Has any new information come up on this bug?

It happens with a "SELECT count(*) from <table>". Its occurrence is influenced by other statements executed earlier in the program, so it's hard to come up with a small test case.

It happens with pyodbc 2.1.11 and pyodbc 3.0.6, both on python 2.6
Reply all
Reply to author
Forward
0 new messages