tanrj / pyodbc

Automatically exported from code.google.com/p/pyodbc
MIT No Attribution
0 stars 0 forks source link

ubuntu 9.10 *** glibc detected *** python: corrupted double-linked list: 0x09657b58 *** #93

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.  compiled against unixodbc
2.  running against odbc datasource for informix
3.  odbc works with mono, perl, php and another python odbc lib

What is the expected output? What do you see instead?

want to see results of query

What version of the product are you using? On what operating system?

ubuntu 9.10, unixodbc, pyodbc 2.1.7

Please provide any additional information below.
richards@bubba:~/abc$ python -m trace -l  r1.py

functions called:
filename: /usr/lib/python2.6/__future__.py, modulename: __future__,
funcname: <module>
filename: /usr/lib/python2.6/__future__.py, modulename: __future__,
funcname: _Feature
filename: /usr/lib/python2.6/__future__.py, modulename: __future__,
funcname: _Feature.__init__
filename: /usr/lib/python2.6/abc.py, modulename: abc, funcname: <genexpr>
filename: /usr/lib/python2.6/abc.py, modulename: abc, funcname:
ABCMeta'>.__subclasscheck__
filename: /usr/lib/python2.6/abc.py, modulename: abc, funcname:
ABCMeta'>.register
filename: /usr/lib/python2.6/abc.py, modulename: abc, funcname: __new__
filename: /usr/lib/python2.6/abc.py, modulename: abc, funcname: abstractmethod
filename: /usr/lib/python2.6/collections.py, modulename: collections,
funcname: <genexpr>
filename: /usr/lib/python2.6/collections.py, modulename: collections,
funcname: namedtuple
filename: /usr/lib/python2.6/copy.py, modulename: copy, funcname: <module>
filename: /usr/lib/python2.6/copy.py, modulename: copy, funcname: Error
filename: /usr/lib/python2.6/copy.py, modulename: copy, funcname: _EmptyClass
filename: /usr/lib/python2.6/copy.py, modulename: copy, funcname:
_copy_immutable
filename: /usr/lib/python2.6/copy.py, modulename: copy, funcname: copy
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
<module>
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname: Clamped
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname: Context
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
Context'>.__init__
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
ConversionSyntax
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname: Decimal
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
DecimalException
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
DivisionByZero
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
DivisionImpossible
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
DivisionUndefined
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname: Inexact
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
InvalidContext
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
InvalidOperation
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
Overflow
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname: Rounded
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
Subnormal
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
Underflow
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
_ContextManager
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
_Log10Memoize
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
_Log10Memoize'>.__init__
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname:
_WorkRep
filename: /usr/lib/python2.6/decimal.py, modulename: decimal, funcname: __new__
filename: /usr/lib/python2.6/functools.py, modulename: functools, funcname:
update_wrapper
filename: /usr/lib/python2.6/functools.py, modulename: functools, funcname:
wraps
filename: /usr/lib/python2.6/hashlib.py, modulename: hashlib, funcname:
<lambda>
filename: /usr/lib/python2.6/hashlib.py, modulename: hashlib, funcname:
<module>
filename: /usr/lib/python2.6/hashlib.py, modulename: hashlib, funcname:
__hash_new
filename: /usr/lib/python2.6/locale.py, modulename: locale, funcname: <module>
filename: /usr/lib/python2.6/locale.py, modulename: locale, funcname:
localeconv
filename: /usr/lib/python2.6/numbers.py, modulename: numbers, funcname:
<module>
filename: /usr/lib/python2.6/numbers.py, modulename: numbers, funcname: Complex
filename: /usr/lib/python2.6/numbers.py, modulename: numbers, funcname:
Integral
filename: /usr/lib/python2.6/numbers.py, modulename: numbers, funcname: Number
filename: /usr/lib/python2.6/numbers.py, modulename: numbers, funcname:
Rational
filename: /usr/lib/python2.6/numbers.py, modulename: numbers, funcname: Real
filename: /usr/lib/python2.6/re.py, modulename: re, funcname: _compile
filename: /usr/lib/python2.6/re.py, modulename: re, funcname: compile
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _code
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _compile
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _compile_charset
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _compile_info
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _identityfunction
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _mk_bitmap
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _optimize_charset
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: _simple
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: compile
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: fixup
filename: /usr/lib/python2.6/sre_compile.py, modulename: sre_compile,
funcname: isstring
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
Pattern.__init__
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
Pattern.closegroup
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
Pattern.opengroup
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
SubPattern.__getitem__
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
SubPattern.__init__
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
SubPattern.__len__
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
SubPattern.__setitem__
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
SubPattern.append
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
SubPattern.getwidth
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
Tokenizer.__init__
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
Tokenizer.__next
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
Tokenizer.get
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
Tokenizer.match
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
_escape
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
_parse
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
_parse_sub
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
isident
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
isname
filename: /usr/lib/python2.6/sre_parse.py, modulename: sre_parse, funcname:
parse
filename: /usr/lib/python2.6/threading.py, modulename: threading, funcname:
settrace
filename: <string>, modulename: <string>, funcname: <module>
filename: <string>, modulename: <string>, funcname: DecimalTuple
filename: r1.py, modulename: r1, funcname: <module>
*** glibc detected *** python: corrupted double-linked list: 0x08da6088 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb75e3ff1]
/lib/tls/i686/cmov/libc.so.6[0xb75e421e]
/lib/tls/i686/cmov/libc.so.6[0xb75e568f]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0xb75e87cd]
python(PyGrammar_RemoveAccelerators+0x42)[0x814dc22]
python(Py_Finalize+0x11b)[0x80fa37b]
python(Py_Main+0x51b)[0x805c34b]
python(main+0x1b)[0x805baeb]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe6)[0xb758fb56]
python[0x805ba31]
======= Memory map: ========
08048000-0821b000 r-xp 00000000 08:01 131556     /usr/bin/python2.6
0821b000-0821c000 r--p 001d2000 08:01 131556     /usr/bin/python2.6
0821c000-0826a000 rw-p 001d3000 08:01 131556     /usr/bin/python2.6
0826a000-08273000 rw-p 00000000 00:00 0 
08a55000-08dc6000 rw-p 00000000 00:00 0          [heap]
b6e00000-b6e21000 rw-p 00000000 00:00 0 
b6e21000-b6f00000 ---p 00000000 00:00 0 
b6f2f000-b6f31000 r-xp 00000000 08:01 605        /lib/libnss_mdns4.so.2
b6f31000-b6f32000 r--p 00001000 08:01 605        /lib/libnss_mdns4.so.2
b6f32000-b6f33000 rw-p 00002000 08:01 605        /lib/libnss_mdns4.so.2
b6f33000-b6f43000 r-xp 00000000 08:01 133204    
/lib/tls/i686/cmov/libresolv-2.10.1.so
b6f43000-b6f44000 r--p 00010000 08:01 133204    
/lib/tls/i686/cmov/libresolv-2.10.1.so
b6f44000-b6f45000 rw-p 00011000 08:01 133204    
/lib/tls/i686/cmov/libresolv-2.10.1.so
b6f45000-b6f47000 rw-p 00000000 00:00 0 
b6f47000-b6f50000 r-xp 00000000 08:01 132480    
/lib/tls/i686/cmov/libcrypt-2.10.1.so
b6f50000-b6f51000 r--p 00008000 08:01 132480    
/lib/tls/i686/cmov/libcrypt-2.10.1.so
b6f51000-b6f52000 rw-p 00009000 08:01 132480    
/lib/tls/i686/cmov/libcrypt-2.10.1.so
b6f52000-b6f79000 rw-p 00000000 00:00 0 
b6f8d000-b6f8e000 rw-p 00000000 00:00 0 
b6f8e000-b6fd2000 r-xp 00000000 08:01 1660      
/opt/IBM/informix/lib/esql/libifgls.so
b6fd2000-b6fd5000 rw-p 00044000 08:01 1660      
/opt/IBM/informix/lib/esql/libifgls.so
b6fd5000-b7122000 r-xp 00000000 08:01 1689      
/opt/IBM/informix/lib/cli/iclit09b.so
b7122000-b7136000 rw-p 0014d000 08:01 1689      
/opt/IBM/informix/lib/cli/iclit09b.so
b7136000-b7139000 rw-p 00000000 00:00 0 
b7139000-b7143000 r-xp 00000000 08:01 133198    
/lib/tls/i686/cmov/libnss_files-2.10.1.so
b7143000-b7144000 r--p 00009000 08:01 133198    
/lib/tls/i686/cmov/libnss_files-2.10.1.so
b7144000-b7145000 rw-p 0000a000 08:01 133198    
/lib/tls/i686/cmov/libnss_files-2.10.1.so
b7145000-b714e000 r-xp 00000000 08:01 133200    
/lib/tls/i686/cmov/libnss_nis-2.10.1.so
b714e000-b714f000 r--p 00008000 08:01 133200    
/lib/tls/i686/cmov/libnss_nis-2.10.1.so
b714f000-b7150000 rw-p 00009000 08:01 133200    
/lib/tls/i686/cmov/libnss_nis-2.10.1.so
b7150000-b7163000 r-xp 00000000 08:01 133181    
/lib/tls/i686/cmov/libnsl-2.10.1.so
b7163000-b7164000 r--p 00012000 08:01 133181    
/lib/tls/i686/cmov/libnsl-2.10.1.so
b7164000-b7165000 rw-p 00013000 08:01 133181    
/lib/tls/i686/cmov/libnsl-2.10.1.so
b7165000-b7167000 rw-p 00000000 00:00 0 
b7167000-b716d000 r-xp 00000000 08:01 133196    
/lib/tls/i686/cmov/libnss_compat-2.10.1.so
b716d000-b716e000 r--p 00005000 08:01 133196    
/lib/tls/i686/cmov/libnss_compat-2.10.1.so
b716e000-b716f000 rw-p 00006000 08:01 133196    
/lib/tls/i686/cmov/libnss_compat-2.10.1.so
b716f000-b729c000 r-xp 00000000 08:01 131464    
/lib/i686/cmov/libcrypto.so.0.9.8
b729c000-b72a4000 r--p 0012c000 08:01 131464    
/lib/i686/cmov/libcrypto.so.0.9.8
b72a4000-b72b1000 rw-p 00134000 08:01 131464    
/lib/i686/cmov/libcrypto.so.0.9.8
b72b1000-b72b5000 rw-p 00000000 00:00 0 
b72b5000-b72f6000 r-xp 00000000 08:01 131686     /lib/i686/cmov/libssl.so.0.9.8
b72f6000-b72f7000 ---p 00041000 08:01 131686     /lib/i686/cmov/libssl.so.0.9.8
b72f7000-b72f8000 r--p 00041000 08:01 131686     /lib/i686/cmov/libssl.so.0.9.8
b72f8000-b72fb000 rw-p 00042000 08:01 131686     /lib/i686/cmov/libssl.so.0.9.8
b72fc000-b7301000 r-xp 00000000 08:01 133197    
/lib/tls/i686/cmov/libnss_dns-2.10.1.so
b7301000-b7302000 r--p 00004000 08:01 133197    
/lib/tls/i686/cmov/libnss_dns-2.10.1.so
b7302000-b7303000 rw-p 00005000 08:01 133197    
/lib/tls/i686/cmov/libnss_dns-2.10.1.so
b7303000-b7305000 r-xp 00000000 08:01 606        /lib/libnss_mdns4_minimal.so.2
b7305000-b7306000 r--p 00001000 08:01 606        /lib/libnss_mdns4_minimal.so.2
b7306000-b7307000 rw-p 00002000 08:01 606        /lib/libnss_mdns4_minimal.so.2
b730b000-b730c000 r-xp 00000000 08:01 1661      
/opt/IBM/informix/lib/esql/libifglx.so
b730c000-b730d000 rw-p 00000000 08:01 1661      
/opt/IBM/informix/lib/esql/libifglx.so
b730d000-b730e000 r-xp 00000000 08:01 462306     /usr/lib/gconv/ISO8859-1.so
b730e000-b730f000 r--p 00001000 08:01 462306     /usr/lib/gconv/ISO8859-1.so
b730f000-b7310000 rw-p 00002000 08:01 462306     /usr/lib/gconv/ISO8859-1.so
b7310000-b7312000 r-xp 00000000 08:01 656033    
/usr/lib/python2.6/lib-dynload/_hashlib.so
b7312000-b7313000 r--p 00001000 08:01 656033    
/usr/lib/python2.6/lib-dynload/_hashlib.so
b7313000-b7314000 rw-p 00002000 08:01 656033    
/usr/lib/python2.6/lib-dynload/_hashlib.so
b7314000-b731c000 r-xp 00000000 08:01 264626     /usr/lib/libltdl.so.7.2.0
b731c000-b731d000 r--p 00007000 08:01 264626     /usr/lib/libltdl.so.7.2.0
b731d000-b731e000 rw-p 00008000 08:01 264626     /usr/lib/libltdl.so.7.2.0
b731e000-b733a000 r-xp 00000000 08:01 647        /lib/libgcc_s.so.1
b733a000-b733b000 r--p 0001b000 08:01 647        /lib/libgcc_s.so.1
b733b000-b733c000 rw-p 0001c000 08:01 647        /lib/libgcc_s.so.1
b733c000-b7422000 r-xp 00000000 08:01 268534     /usr/lib/libstdc++.so.6.0.13
b7422000-b7426000 r--p 000e6000 08:01 268534     /usr/lib/libstdc++.so.6.0.13
b7426000-b7427000 rw-p 000ea000 08:01 268534     /usr/lib/libstdc++.so.6.0.13
b7427000-b742e000 rw-p 00000000 00:00 0 
b742e000-b7492000 r-xp 00000000 08:01 265575     /usr/lib/libodbc.so.1.0.0
b7492000-b7493000 r--p 00063000 08:01 265575     /usr/lib/libodbc.so.1.0.0
b7493000-b7497000 rw-p 00064000 08:01 265575     /usr/lib/libodbc.so.1.0.0
b7497000-b74a8000 r-xp 00000000 08:01 262778    
/usr/local/lib/python2.6/dist-packages/pyodbc.so
b74a8000-b74a9000 ---p 00011000 08:01 262778    
/usr/local/lib/python2.6/dist-packages/pyodbc.so
b74a9000-b74aa000 r--p 00011000 08:01 262778    
/usr/local/lib/python2.6/dist-packages/pyodbc.so
b74aa000-b74af000 rw-p 00012000 08:01 262778    
/usr/local/lib/python2.6/dist-packages/pyodbc.so
b74af000-b74b6000 r--s 00000000 08:01 394742    
/usr/lib/gconv/gconv-modules.cache
b74b6000-b74f5000 r--p 00000000 08:01 787101    
/usr/lib/locale/en_US.utf8/LC_CTYPEAborted

Original issue reported on code.google.com by rlsunc2...@gmail.com on 10 Mar 2010 at 1:33

GoogleCodeExporter commented 8 years ago
Can you provide the smallest test script that reproduces this error?  Also, if 
there are multiple functions being called, it would be great to know where in 
the script it fails.

It looks like there is a bug in a Python __del__ implementation, possibly 
corrupting memory?  I'd like to focus my search on the most likely objects 
going out of scope.

Thanks.

Original comment by mkleehammer on 24 Aug 2010 at 4:04

GoogleCodeExporter commented 8 years ago
Also, can you retest with 2.1.8 or the latest from git.  There were fixes that 
could explain this.

Original comment by mkleehammer on 21 Nov 2010 at 6:27

GoogleCodeExporter commented 8 years ago
the latest 2.1.8 works now.  I am using ubuntu 10.10 and python 2.6.6.

Original comment by rlsunc2...@gmail.com on 9 Apr 2011 at 10:45