473,729 Members | 2,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MySQLdb and egenix mxDateTime dumps core

Hi all, got a problem combinging mx and MySQLdb, when I build and install both for my Python2.1 install on a Solaris 9 box I can import mx fine, but importing MySQLdb causing python to core dump.

I am using egenenix 2.0.4 and MySQLdb 0.9.2.

I have also replaced the -shared flag in the Makefile is /usr/local/lib/Python2.1/config with -G (a recommended solaris change to let the build of the modules work in the first place) -> notably I also made sure I recompiled python from source using this flag in the makefile too.

I plead guilty to not knowing a heap about debugging linking etc etc, tho I do know a bit of C.

Any help is REALLY REALLY appreciated ;-) this problem is just sending me right round the bend ;-)

cheers
Dave

Here is a transcription of the trace from the core dump :

#0 mxDateTime_New () at mx/DateTime/mxDateTime/mxDateTime.c:27 9
#1 0xff01396c in mxDateTime_From DateAndTime (year=-5851455, month=-4217812, day=3, hour=680236,
minute=1096156, second=0) at mx/DateTime/mxDateTime/mxDateTime.c:95 2
#2 0xff018b1c in mxDateTime_Date Time (self=0x0, args=0xffa6b6c1 ) at mx/DateTime/mxDateTime/mxDateTime.c:36 67
#3 0x22858 in call_cfunction (func=0xfc568, arg=0x101e6c, kw=0x0) at Python/ceval.c:2854
#4 0x207a4 in eval_code2 (co=0x115cc0, globals=0x0, locals=0xfc568, args=0x10c164, argcount=0, kws=0xe1050,
kwcount=0, defs=0x0, defcount=0, closure=0xfc568 ) at Python/ceval.c:1948
#5 0x1da3c in PyEval_EvalCode (co=0x0, globals=0xc3ddc , locals=0x3) at Python/ceval.c:341
#6 0x322f4 in PyImport_ExecCo deModuleEx (name=0xffbfb11 8 "mx.DateTime.Da teTime", co=0x115cc0,
pathname=0xffbf a738 "/usr/local/lib/python2.1/site-packages/mx/DateTime/DateTime.pyc")
at Python/import.c:490
#7 0x328d8 in load_source_mod ule (name=0xffbfb11 8 "mx.DateTime.Da teTime",
pathname=0xffbf a738 "/usr/local/lib/python2.1/site-packages/mx/DateTime/DateTime.pyc", fp=0x115cc0)
at Python/import.c:754
#8 0x33184 in load_module (name=0xffbfb11 8 "mx.DateTime.Da teTime", fp=0xb4038,
buf=0xffbfac28 "/usr/local/lib/python2.1/site-packages/mx/DateTime/DateTime.py", type=1)
at Python/import.c:1301
#9 0x33fe8 in import_submodul e (mod=0xb54fc, subname=0xffbfb 124 "DateTime",
fullname=0xffbf b118 "mx.DateTime.Da teTime") at Python/import.c:1829
#10 0x33b68 in load_next (mod=0xb54fc, altmod=0xa6cd8, p_name=0xffbfb1 24,
buf=0xffbfb118 "mx.DateTime.Da teTime", p_buflen=0xffbf b114) at Python/import.c:1685
#11 0x33738 in import_module_e x (name=0x0, globals=0xb54fc , locals=0x100664 , fromlist=0xffbd 4)
at Python/import.c:1536
#12 0x33910 in PyImport_Import ModuleEx (name=0xfa564 "DateTime", globals=0x10066 4, locals=0x100664 ,
fromlist=0xffbd 4) at Python/import.c:1577
#13 0x77254 in builtin___impor t__ (self=0x0, args=0xfa564) at Python/bltinmodule.c:3 1
#14 0x22858 in call_cfunction (func=0xb5ce0, arg=0x1032d4, kw=0x0) at Python/ceval.c:2854
#15 0x227bc in call_object (func=0xb5ce0, arg=0x1032d4, kw=0x0) at Python/ceval.c:2807
#16 0x22548 in PyEval_CallObje ctWithKeywords (func=0xb5ce0, arg=0x1032d4, kw=0x0) at Python/ceval.c:2740
#17 0x20124 in eval_code2 (co=0x103df0, globals=0x0, locals=0x100664 , args=0xfd749, argcount=0, kws=0x1032d4,
kwcount=0, defs=0x0, defcount=0, closure=0xb5ce0 ) at Python/ceval.c:1820
#18 0x1da3c in PyEval_EvalCode (co=0x0, globals=0xffbd4 , locals=0xb5ce0) at Python/ceval.c:341
#19 0x322f4 in PyImport_ExecCo deModuleEx (name=0xffbfc83 0 "mx.DateTim e", co=0x103df0,
pathname=0xffbf b960 "/usr/local/lib/python2.1/site-packages/mx/DateTime/__init__.pyc")
at Python/import.c:490
#20 0x328d8 in load_source_mod ule (name=0xffbfc83 0 "mx.DateTim e",
pathname=0xffbf b960 "/usr/local/lib/python2.1/site-packages/mx/DateTime/__init__.pyc", fp=0x103df0)
at Python/import.c:754
#21 0x33184 in load_module (name=0xffbfc83 0 "mx.DateTim e", fp=0xb4028,
buf=0xffbfbe50 "/usr/local/lib/python2.1/site-packages/mx/DateTime/__init__.py", type=1)
at Python/import.c:1301
#22 0x32ae8 in load_package (name=0xffbfc83 0 "mx.DateTim e", pathname=0xfd50 0 "") at Python/import.c:811
#23 0x331f0 in load_module (name=0xffbfc83 0 "mx.DateTim e", fp=0x0,
buf=0xffbfc340 "/usr/local/lib/python2.1/site-packages/mx/DateTime", type=5) at Python/import.c:1324
#24 0x33fe8 in import_submodul e (mod=0xb551c, subname=0xffbfc 833 "DateTime", fullname=0xffbf c830 "mx.DateTim e")
at Python/import.c:1829
#25 0x33b68 in load_next (mod=0xb551c, altmod=0xb551c, p_name=0xffbfc8 33, buf=0xffbfc830 "mx.DateTim e",
p_buflen=0xffbf c82c) at Python/import.c:1685
#26 0x33874 in import_module_e x (name=0x0, globals=0xb551c , locals=0xfe744, fromlist=0xd276 4)
at Python/import.c:1543
#27 0x33910 in PyImport_Import ModuleEx (name=0x10052c "mx.DateTim e", globals=0xfe744 , locals=0xfe744,
fromlist=0xd276 4) at Python/import.c:1577
#28 0x77254 in builtin___impor t__ (self=0x0, args=0x10052c) at Python/bltinmodule.c:3 1
#29 0x22858 in call_cfunction (func=0xb5ce0, arg=0xfe77c, kw=0x0) at Python/ceval.c:2854
#30 0x227bc in call_object (func=0xb5ce0, arg=0xfe77c, kw=0x0) at Python/ceval.c:2807
#31 0x22548 in PyEval_CallObje ctWithKeywords (func=0xb5ce0, arg=0xfe77c, kw=0x0) at Python/ceval.c:2740
#32 0x20124 in eval_code2 (co=0x1006d8, globals=0x0, locals=0xfe744, args=0xfa87b, argcount=0, kws=0xfe77c,
kwcount=0, defs=0x0, defcount=0, closure=0xb5ce0 ) at Python/ceval.c:1820
#33 0x1da3c in PyEval_EvalCode (co=0x0, globals=0xd2764 , locals=0xb5ce0) at Python/ceval.c:341
#34 0x322f4 in PyImport_ExecCo deModuleEx (name=0xffbfda5 8 "MySQLdb.times" , co=0x1006d8,
pathname=0xffbf d078 "/usr/local/lib/python2.1/site-packages/MySQLdb/times.pyc") at Python/import.c:490
#35 0x328d8 in load_source_mod ule (name=0xffbfda5 8 "MySQLdb.times" ,
pathname=0xffbf d078 "/usr/local/lib/python2.1/site-packages/MySQLdb/times.pyc", fp=0x1006d8)
at Python/import.c:754
#36 0x33184 in load_module (name=0xffbfda5 8 "MySQLdb.times" , fp=0xb4018,
buf=0xffbfd568 "/usr/local/lib/python2.1/site-packages/MySQLdb/times.py", type=1) at Python/import.c:1301
#37 0x33fe8 in import_submodul e (mod=0xb52fc, subname=0xffbfd a60 "times", fullname=0xffbf da58 "MySQLdb.times" )
at Python/import.c:1829
#38 0x33b68 in load_next (mod=0xb52fc, altmod=0xb52fc, p_name=0xffbfda 60, buf=0xffbfda58 "MySQLdb.times" ,
p_buflen=0xffbf da54) at Python/import.c:1685
#39 0x33874 in import_module_e x (name=0x0, globals=0xb52fc , locals=0xc10d4, fromlist=0xc6ad c)
at Python/import.c:1543
#40 0x33910 in PyImport_Import ModuleEx (name=0xb9fe4 "MySQLdb.times" , globals=0xc10d4 , locals=0xc10d4,
fromlist=0xc6ad c) at Python/import.c:1577
#41 0x77254 in builtin___impor t__ (self=0x0, args=0xb9fe4) at Python/bltinmodule.c:3 1
#42 0x22858 in call_cfunction (func=0xb5ce0, arg=0xc85bc, kw=0x0) at Python/ceval.c:2854
#43 0x227bc in call_object (func=0xb5ce0, arg=0xc85bc, kw=0x0) at Python/ceval.c:2807
#44 0x22548 in PyEval_CallObje ctWithKeywords (func=0xb5ce0, arg=0xc85bc, kw=0x0) at Python/ceval.c:2740
#45 0x20124 in eval_code2 (co=0xc8130, globals=0x0, locals=0xc10d4, args=0xb96b1, argcount=0, kws=0xc85bc,
kwcount=0, defs=0x0, defcount=0, closure=0xb5ce0 ) at Python/ceval.c:1820
#46 0x1da3c in PyEval_EvalCode (co=0x0, globals=0xc6adc , locals=0xb5ce0) at Python/ceval.c:341
#47 0x322f4 in PyImport_ExecCo deModuleEx (name=0xffbff17 0 "MySQLdb", co=0xc8130,
pathname=0xffbf e2a0 "/usr/local/lib/python2.1/site-packages/MySQLdb/__init__.pyc") at Python/import.c:490
#48 0x328d8 in load_source_mod ule (name=0xffbff17 0 "MySQLdb",
pathname=0xffbf e2a0 "/usr/local/lib/python2.1/site-packages/MySQLdb/__init__.pyc", fp=0xc8130)
at Python/import.c:754
#49 0x33184 in load_module (name=0xffbff17 0 "MySQLdb", fp=0xb4008,
buf=0xffbfe790 "/usr/local/lib/python2.1/site-packages/MySQLdb/__init__.py", type=1)
at Python/import.c:1301
#50 0x32ae8 in load_package (name=0xffbff17 0 "MySQLdb", pathname=0xc6a6 8 "") at Python/import.c:811
#51 0x331f0 in load_module (name=0xffbff17 0 "MySQLdb", fp=0x0,
buf=0xffbfec80 "/usr/local/lib/python2.1/site-packages/MySQLdb", type=5) at Python/import.c:1324
#52 0x33fe8 in import_submodul e (mod=0xa6cd8, subname=0xffbff 170 "MySQLdb", fullname=0xffbf f170 "MySQLdb")
at Python/import.c:1829
#53 0x33b68 in load_next (mod=0xa6cd8, altmod=0xa6cd8, p_name=0xffbff1 70, buf=0xffbff170 "MySQLdb",
p_buflen=0xffbf f16c) at Python/import.c:1685
#54 0x33738 in import_module_e x (name=0x0, globals=0xa6cd8 , locals=0xb6fc4, fromlist=0xa6cd 8)
at Python/import.c:1536
#55 0x33910 in PyImport_Import ModuleEx (name=0xd1f14 "MySQLdb", globals=0xb6fc4 , locals=0xb6fc4,
fromlist=0xa6cd 8) at Python/import.c:1577
#56 0x77254 in builtin___impor t__ (self=0x0, args=0xd1f14) at Python/bltinmodule.c:3 1
#57 0x22858 in call_cfunction (func=0xb5ce0, arg=0xba9e4, kw=0x0) at Python/ceval.c:2854
#58 0x227bc in call_object (func=0xb5ce0, arg=0xba9e4, kw=0x0) at Python/ceval.c:2807
#59 0x22548 in PyEval_CallObje ctWithKeywords (func=0xb5ce0, arg=0xba9e4, kw=0x0) at Python/ceval.c:2740
#60 0x20124 in eval_code2 (co=0xc0f40, globals=0x0, locals=0xb6fc4, args=0xb9ec0, argcount=0, kws=0xba9e4,
kwcount=0, defs=0x0, defcount=0, closure=0xb5ce0 ) at Python/ceval.c:1820
#61 0x1da3c in PyEval_EvalCode (co=0x0, globals=0xa6cd8 , locals=0xb5ce0) at Python/ceval.c:341
#62 0x3ab0c in run_node (n=0xb51f0, filename=0xb6fc 4 "", globals=0xb6fc4 , locals=0xb6fc4, flags=0xb6fc4)
at Python/pythonrun.c:104 5
#63 0x39908 in PyRun_Interacti veOneFlags (fp=0xffffffff, filename=0x7d4f 8 "<stdin>", flags=0xffbffb3 c)
at Python/pythonrun.c:570
#64 0x39704 in PyRun_Interacti veLoopFlags (fp=0xb3fd8, filename=0x7d4f 8 "<stdin>", flags=0xffbffb3 c)
at Python/pythonrun.c:510
#65 0x3966c in PyRun_AnyFileEx Flags (fp=0xb3fd8, filename=0x7d4f 8 "<stdin>", closeit=0, flags=0xffbffb3 c)
at Python/pythonrun.c:473
#66 0x19b90 in Py_Main (argc=1, argv=0xffbffbb4 ) at Modules/main.c:320
Jul 18 '05 #1
0 2099

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

Similar topics

3
1841
by: Joe | last post by:
Python 2.4 Windows XP SP2 MS Access 2000 mx.ODBC 2.0.7 Problem data truncation occuring (here's the actual error message): mxODBC.Warning: ('01004', 5, ' String data, right truncated on column number 3 (Expr1002)', 3326)
9
2227
by: Lil | last post by:
Hi Everyone! I've been trying to figure out this weird bug in my program. I have a python program that calls a C function that reads in a binary file into a buffer. In the C program, buffer is allocated by calling malloc. The C program runs perfectly fine but when I use python to call the C function, it core dumps at malloc. I've tried multiple binary files with different sizes and the result is: if file size is < 20 bytes , works fine...
0
1030
by: M.-A. Lemburg | last post by:
Hello, we are currently looking into setting up a partner network of companies interested and able to sell and support our products with a more regional focus than we can deliver. The idea is to provide customers with a closer and more direct contact for first level support. Network partners should be able to do projects using or based on eGenix products and maintain a proper customer relationship in their native language.
2
2648
by: Bruno Gonzalez (STenyaK) | last post by:
(first of all, sorry if this is not the correct place to ask, but i couldn't find a better one...) I'm new to debugging using core dumps. I've managed to get core dumps + symbols using g++ and gdb under linux. I compile using g++ -g -dH, and i debug using gdb executableFile -c coredumpFile. This is a test program backtrace in the original computer (a gentoo
8
2775
by: geert | last post by:
Hi all, I have a mac mini running maocosx 10.5 leopard I want to deploy a django project on. My backend is MySQL, and I have it running as a 64- bit app. Of course, apache2 is also running as 64-bit. MySQLdb installs with the usual warnings after applying the various patches I found here and there. These patches consist of altering _mysql.c and site.cfg.
0
1410
by: eGenix Team: M.-A. Lemburg | last post by:
________________________________________________________________________ ANNOUNCING eGenix.com pyOpenSSL Distribution Version 0.7.0-0.9.8i-1 An easy to install and use repackaged distribution
0
1399
by: eGenix Team: M.-A. Lemburg | last post by:
________________________________________________________________________ ANNOUNCING eGenix.com mx Base Distribution Version 3.1.1 for Python 2.6 Open Source Python extensions providing important and useful services for Python programmers.
0
1306
by: M.-A. Lemburg | last post by:
Just to let you know: we also provide binaries and support for Mac OS X Intel and PPC. Thanks to Joe Strout for pinging us about this. On 2008-10-15 17:41, eGenix Team: M.-A. Lemburg wrote: -- Marc-Andre Lemburg eGenix.com
0
978
by: eGenix Team: M.-A. Lemburg | last post by:
On 2008-10-15 20:30, Terry Reedy wrote: It's going to look even better when we release version 4.0 in a year or so ;-) FWIW, we're still waiting for the dust to settle before going for a Py3k port of the mx C extensions. -- Marc-Andre Lemburg
0
8913
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
1
9200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9142
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8144
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6016
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4525
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4795
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2162
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.