473,398 Members | 2,088 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

_mssql on Python 2.5 Beta 2

I'm trying to use the _mssql module from
http://pymssql.sourceforge.net/. It works fine on Python 2.4. I've
just installed Python 2.5 Beta 2 on my Linux box and, whenever I try
and run the mssql.close() function, or close the program, I get the
following message:

*** glibc detected *** python2.5: free(): invalid pointer: 0xb7f08320
***
======= Backtrace: =========
/lib/libc.so.6[0xa68424]
/lib/libc.so.6(__libc_free+0x77)[0xa6895f]
/usr/local/lib/python2.5/site-packages/_mssql.so[0x7f5d8c]
python2.5[0x8080a72]
python2.5(PyDict_SetItem+0x6c)[0x8080e4c]
python2.5(_PyModule_Clear+0x15d)[0x8083929]
python2.5(PyImport_Cleanup+0x1e5)[0x80d1159]
python2.5(Py_Finalize+0xaf)[0x80dc4c3]
python2.5(Py_Main+0x39d)[0x805646d]
/lib/libc.so.6(__libc_start_main+0xc6)[0xa19de6]
python2.5[0x8055f89]
======= Memory map: ========
00131000-00175000 r-xp 00000000 03:03 6723934
/usr/lib/libncursesw.so.5.4
00175000-0017d000 rwxp 00044000 03:03 6723934
/usr/lib/libncursesw.so.5.4
0017d000-0017e000 rwxp 0017d000 00:00 0
001fa000-0023f000 r-xp 00000000 03:03 166172
/usr/local/lib/libsybdb.so.5.0.0
0023f000-00242000 rwxp 00045000 03:03 166172
/usr/local/lib/libsybdb.so.5.0.0
004b7000-004c0000 r-xp 00000000 03:03 4124789
/lib/libnss_files-2.3.5.so
004c0000-004c1000 r-xp 00008000 03:03 4124789
/lib/libnss_files-2.3.5.so
004c1000-004c2000 rwxp 00009000 03:03 4124789
/lib/libnss_files-2.3.5.so
0074c000-0075a000 r-xp 00000000 03:03 4124807
/lib/libpthread-2.3.5.so
0075a000-0075b000 r-xp 0000d000 03:03 4124807
/lib/libpthread-2.3.5.so
0075b000-0075c000 rwxp 0000e000 03:03 4124807
/lib/libpthread-2.3.5.so
0075c000-0075e000 rwxp 0075c000 00:00 0
0076f000-00778000 r-xp 00000000 03:03 4127052
/lib/libgcc_s-4.0.2-20051126.so.1
00778000-00779000 rwxp 00009000 03:03 4127052
/lib/libgcc_s-4.0.2-20051126.so.1
007dc000-007dd000 r-xp 007dc000 00:00 0
007f4000-007f8000 r-xp 00000000 03:03 2324725
/usr/local/lib/python2.5/site-packages/_mssql.so
007f8000-007f9000 rwxp 00004000 03:03 2324725
/usr/local/lib/python2.5/site-packages/_mssql.so
007f9000-007fb000 rwxp 007f9000 00:00 0
008b8000-008ba000 r-xp 00000000 03:03 4127074 /lib/libutil-2.3.5.so
008ba000-008bb000 r-xp 00001000 03:03 4127074 /lib/libutil-2.3.5.so
008bb000-008bc000 rwxp 00002000 03:03 4127074 /lib/libutil-2.3.5.so
009e7000-00a01000 r-xp 00000000 03:03 4127066 /lib/ld-2.3.5.so
00a01000-00a02000 r-xp 00019000 03:03 4127066 /lib/ld-2.3.5.so
00a02000-00a03000 rwxp 0001a000 03:03 4127066 /lib/ld-2.3.5.so
00a05000-00b29000 r-xp 00000000 03:03 4127067 /lib/libc-2.3.5.so
00b29000-00b2b000 r-xp 00124000 03:03 4127067 /lib/libc-2.3.5.so
00b2b000-00b2d000 rwxp 00126000 03:03 4127067 /lib/libc-2.3.5.so
00b2d000-00b2f000 rwxp 00b2d000 00:00 0
00b31000-00b33000 r-xp 00000000 03:03 4127069 /lib/libdl-2.3.5.so
00b33000-00b34000 r-xp 00001000 03:03 4127069 /lib/libdl-2.3.5.so
00b34000-00b35000 rwxp 00002000 03:03 4127069 /lib/libdl-2.3.5.so
00b37000-00b59000 r-xp 00000000 03:03 4127073 /lib/libm-2.3.5.so
00b59000-00b5a000 r-xp 00021000 03:03 4127073 /lib/libm-2.3.5.so
00b5a000-00b5b000 rwxp 00022000 03:03 4127073 /lib/libm-2.3.5.so
00b86000-00b95000 r-xp 00000000 03:03 4124849
/lib/libresolv-2.3.5.so
00b95000-00b96000 r-xp 0000e000 03:03 4124849
/lib/libresolv-2.3.5.so
00b96000-00b97000 rwxp 0000f000 03:03 4124849
/lib/libresolv-2.3.5.so
00b97000-00b99000 rwxp 00b97000 00:00 0
00b9b000-00bc2000 r-xp 00000000 03:03 4190263
/usr/lib/libreadline.so.5.0
00bc2000-00bc6000 rwxp 00027000 03:03 4190263
/usr/lib/libreadline.so.5.0
00bc6000-00bc7000 rwxp 00bc6000 00:00 0
00c00000-00c01000 r-xp 00000000 03:03 6715661
/usr/lib/gconv/ISO8859-1.so
00c01000-00c03000 rwxp 00000000 03:03 6715661
/usr/lib/gconv/ISO8859-1.so
00c43000-00c46000 r-xp 00000000 03:03 1178681
/usr/local/lib/python2.5/lib-dynload/time.so
00c46000-00c48000 rwxp 00002000 03:03 1178681
/usr/local/lib/python2.5/lib-dynload/time.so
00c8d000-00c91000 r-xp 00000000 03:03 1178665
/usr/local/lib/python2.5/lib-dynload/collections.so
00c91000-00c92000 rwxp 00004000 03:03 1178665
/usr/local/lib/python2.5/lib-dynload/collections.so
00d89000-00d97000 r-xp 00000000 03:03 1178660
/usr/local/lib/python2.5/lib-dynload/datetime.so
00d97000-00d9a000Aborted

Any suggestions?
Thanks,
Matt

Jul 24 '06 #1
4 1158
ma*************@googlemail.com wrote:
I'm trying to use the _mssql module from
http://pymssql.sourceforge.net/. It works fine on Python 2.4. I've
just installed Python 2.5 Beta 2 on my Linux box and, whenever I try
and run the mssql.close() function, or close the program, I get the
following message:
[...]

You aren't using the same library you used with 2.4, by any chance?
Compiled extensions are specific to a particular major version of
Python, so (for example) 2.3 extension modules won't run under 2.4.
Though normally, IIRC, that would give you problems on import, so this
may be no help at all (in which case, sorry!)

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Jul 24 '06 #2
Steve Holden wrote:
You aren't using the same library you used with 2.4, by any chance?
Compiled extensions are specific to a particular major version of
Python, so (for example) 2.3 extension modules won't run under 2.4.
Though normally, IIRC, that would give you problems on import, so this
may be no help at all (in which case, sorry!)
Steve,
I recompiled the library for the 2.5 version. If it makes a
difference, I used the altinstall option for python, so it's installed
as python2.5.

Thanks,
Matt

Jul 24 '06 #3
ma*************@googlemail.com wrote:
Steve Holden wrote:
>>You aren't using the same library you used with 2.4, by any chance?
Compiled extensions are specific to a particular major version of
Python, so (for example) 2.3 extension modules won't run under 2.4.
Though normally, IIRC, that would give you problems on import, so this
may be no help at all (in which case, sorry!)


Steve,
I recompiled the library for the 2.5 version. If it makes a
difference, I used the altinstall option for python, so it's installed
as python2.5.
Nope, sounds like you've done everything right. Sorry ...

regards
Steve
--
Steve Holden +44 150 684 7255 +1 800 494 3119
Holden Web LLC/Ltd http://www.holdenweb.com
Skype: holdenweb http://holdenweb.blogspot.com
Recent Ramblings http://del.icio.us/steve.holden

Jul 24 '06 #4
ma*************@googlemail.com wrote:
I'm trying to use the _mssql module from
http://pymssql.sourceforge.net/. It works fine on Python 2.4. I've
just installed Python 2.5 Beta 2 on my Linux box and, whenever I try
and run the mssql.close() function, or close the program, I get the
following message:

*** glibc detected *** python2.5: free(): invalid pointer: 0xb7f08320
I'm assuming that you recompiled the extension, rather than installed
a binary built with a Python 2.4 installation.

Python 2.5 tightens the requirements that memory allocated via one
memory management API family must be released via calls through the
same API family - eg malloc() -free(); PyMem_Malloc() -PyMem_Free();
PyObject_Malloc() -PyObject_Free(). I think I recall something about
this in one of the "whats new" type docs.

A fair bit of code erroneously assumes that free() can be used to
release any block of memory, regardless of which API family was used to
allocate the memory. This code needs to be fixed.

--
-------------------------------------------------------------------------
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: an*****@bullseye.apana.org.au (pref) | Snail: PO Box 370
an*****@pcug.org.au (alt) | Belconnen ACT 2616
Web: http://www.andymac.org/ | Australia
Jul 24 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Josiah Carlson | last post by:
QOTW: "Python, the language that wraps tightly around a problem and swallows it whole." -- Raymond Hettinger Because it is so important, this link is re-posted for the future (originally...
0
by: Josiah Carlson | last post by:
QOTW: "XML with elementtree is what makes me never have think about XML again." -- Istvan Albert "'Plays well with others' was a strong motivator for Python's design, and that often means...
0
by: Cameron Laird | last post by:
QOTW: "It might be nice if it was widely understood (in IT) that Python was a language any competent programmer could pick up in an afternoon, such that Java, C, and Perl shops would not be...
0
by: Cameron Laird | last post by:
QOTW: "Who's 'Guido'?" -- Ilias Lazaridis "I know this document. It has no relevance to me." -- Ilias Lazaridis, on <URL: http://www.catb.org/~esr/faqs/smart-questions.html > "Nobody asked...
0
by: Cameron Laird | last post by:
QOTW: "Really, of course, the only things you need to make explicit are the ones that readers don't understand." -- Steve Holden "Working with unicode objects in Python is so transparent, it's...
4
by: Simon Brunning | last post by:
QOTW: "If you're sick of answering newbie questions, and don't think you can do so politely, for the sake of the community, DON'T! You're not that necessary." - Joal Heagney "Who controls the...
0
by: Simon Brunning | last post by:
QOTW: "Not tested but confident should be an oxymoron for a programmer." - Peter Otten (Asked "Is this unsurprising if I look at it right?") - "Yes; in general this is true across many domains...
0
by: Simon Brunning | last post by:
QOTW: "Python is more concerned with making it easy to write good programs than difficult to write bad ones." - Steve Holden "Scientists build so that they can learn. Programmers and engineers...
6
by: Simon Brunning | last post by:
QOTW: "And what defines a 'python activist' anyway? Blowing up Perl installations worldwide?" - Ivan Van Laningham "Floating point is about nothing if not being usefully wrong." - Robert Kern ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.