[egenix-users] seg fault on import mx.DateTime Python2.3.3 egenix-base-2.0.5

M.-A. Lemburg mal at egenix.com
Fri Feb 6 10:05:49 CET 2004


Ross Brattain wrote:
> 
> My usual runtime environment is Python 2.2.3 and egenix-base-2.0.4.
> I'm update everything and was surprised with this seg fault.

Are you using a Python version that's compiled with debug
mode enabled (or have you used such a Python version to
compile mxDateTime) ?

> -Ross B.
> 
> 
> Debian unstable
> 
> # gcc -v
> Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.3/specs
> Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
> Thread model: posix
> gcc version 3.3.3 20040125 (prerelease) (Debian)
> 
> 
> Python 2.3.3 (#1, Feb  5 2004, 21:57:53) 
> [GCC 3.3.3 20040125 (prerelease) (Debian)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> 
>>>>import mx.DateTime
> 
> zsh: segmentation fault (core dumped)  /charting/bin/python2.3
> 
> #0  mxDateTime_FromDateAndTime (year=1, month=1, day=1, hour=1, minute=1, second=0) at mx/DateTime/mxDateTime/mxDateTime.c:333
> #1  0x402ee68a in mxDateTime_DateTime (self=0x0, args=0x1) at mx/DateTime/mxDateTime/mxDateTime.c:3998
> #2  0x080fc7aa in PyCFunction_Call (func=0x402b174c, arg=0x402b78c4, kw=0x1) at Objects/methodobject.c:108
> #3  0x080aa664 in call_function (pp_stack=0xbfffcecc, oparg=1) at Python/ceval.c:3439
> #4  0x080a8a1e in eval_frame (f=0x816e4fc) at Python/ceval.c:2116
> #5  0x080a95ac in PyEval_EvalCodeEx (co=0x402b5760, globals=0x1, locals=0x1, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2663
> #6  0x080abda9 in PyEval_EvalCode (co=0x1, globals=0x1, locals=0x1) at Python/ceval.c:537
> #7  0x080cad76 in PyImport_ExecCodeModuleEx (name=0xbfffd8e0 "mx.DateTime.DateTime", co=0x402b5760, pathname=0xbfffcfc0 "/charting/lib/python2.3/site-packages/mx/DateTime/DateTime.pyc") at Python/import.c:621
> #8  0x080cdb53 in load_source_module (name=0xbfffd8e0 "mx.DateTime.DateTime", pathname=0xbfffcfc0 "/charting/lib/python2.3/site-packages/mx/DateTime/DateTime.pyc", fp=0x813b058) at Python/import.c:894
> #9  0x080cb8be in load_module (name=0xbfffd8e0 "mx.DateTime.DateTime", fp=0x813b058, buf=0xbfffd450 "/charting/lib/python2.3/site-packages/mx/DateTime/DateTime.py", type=1, loader=0x1) at Python/import.c:1699
> #10 0x080cc7b8 in import_submodule (mod=0x4026138c, subname=0xbfffd8ec "DateTime", fullname=0xbfffd8e0 "mx.DateTime.DateTime") at Python/import.c:2290
> #11 0x080cc2e3 in load_next (mod=0x4026138c, altmod=0x8116160, p_name=0xbfffd8ec, buf=0xbfffd8e0 "mx.DateTime.DateTime", p_buflen=0xbfffd8dc) at Python/import.c:2111
> #12 0x080ce319 in import_module_ex (name=0x0, globals=0x1, locals=0x402a5dfc, fromlist=0x4028750c) at Python/import.c:1957
> #13 0x080cd38c in PyImport_ImportModuleEx (name=0x1 <Address 0x1 out of bounds>, globals=0x1, locals=0x1, fromlist=0x1) at Python/import.c:1998
> #14 0x0809fb21 in builtin___import__ (self=0x0, args=0x1) at Python/bltinmodule.c:45
> #15 0x080fc7aa in PyCFunction_Call (func=0x40269bec, arg=0x402aeeb4, kw=0x1) at Objects/methodobject.c:108
> #16 0x0805b8f9 in PyObject_Call (func=0xffa6b6c1, arg=0x1, kw=0x1) at Objects/abstract.c:1755
> #17 0x080aa3f7 in PyEval_CallObjectWithKeywords (func=0x1, arg=0x402aeeb4, kw=0x40269bec) at Python/ceval.c:3346
> #18 0x080a8794 in eval_frame (f=0x818b02c) at Python/ceval.c:1996
> #19 0x080a95ac in PyEval_EvalCodeEx (co=0x402a7b20, globals=0x1, locals=0x1, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2663
> #20 0x080abda9 in PyEval_EvalCode (co=0x1, globals=0x1, locals=0x1) at Python/ceval.c:537
> #21 0x080cad76 in PyImport_ExecCodeModuleEx (name=0xbfffece0 "mx.DateTime", co=0x402a7b20, pathname=0xbfffdf30 "/charting/lib/python2.3/site-packages/mx/DateTime/__init__.pyc") at Python/import.c:621
> #22 0x080cdb53 in load_source_module (name=0xbfffece0 "mx.DateTime", pathname=0xbfffdf30 "/charting/lib/python2.3/site-packages/mx/DateTime/__init__.pyc", fp=0x81632a0) at Python/import.c:894
> #23 0x080cb8be in load_module (name=0xbfffece0 "mx.DateTime", fp=0x81632a0, buf=0xbfffe3c0 "/charting/lib/python2.3/site-packages/mx/DateTime/__init__.py", type=1, loader=0x1) at Python/import.c:1699
> #24 0x080ce051 in load_package (name=0xbfffece0 "mx.DateTime", pathname=0xbfffe850 "/charting/lib/python2.3/site-packages/mx/DateTime") at Python/import.c:951
> #25 0x080cb9ed in load_module (name=0xbfffece0 "mx.DateTime", fp=0xbfffe850, buf=0xbfffe850 "/charting/lib/python2.3/site-packages/mx/DateTime", type=5, loader=0x1) at Python/import.c:1722
> #26 0x080cc7b8 in import_submodule (mod=0x40261374, subname=0xbfffece3 "DateTime", fullname=0xbfffece0 "mx.DateTime") at Python/import.c:2290
> #27 0x080cc2e3 in load_next (mod=0x40261374, altmod=0x40261374, p_name=0xbfffece3, buf=0xbfffece0 "mx.DateTime", p_buflen=0xbfffecdc) at Python/import.c:2111
> #28 0x080ce40f in import_module_ex (name=0x0, globals=0x1, locals=0x4027879c, fromlist=0x8116160) at Python/import.c:1964
> #29 0x080cd38c in PyImport_ImportModuleEx (name=0x1 <Address 0x1 out of bounds>, globals=0x1, locals=0x1, fromlist=0x1) at Python/import.c:1998
> #30 0x0809fb21 in builtin___import__ (self=0x0, args=0x1) at Python/bltinmodule.c:45
> #31 0x080fc7aa in PyCFunction_Call (func=0x40269bec, arg=0x4028075c, kw=0x1) at Objects/methodobject.c:108
> #32 0x0805b8f9 in PyObject_Call (func=0xffa6b6c1, arg=0x1, kw=0x1) at Objects/abstract.c:1755
> #33 0x080aa3f7 in PyEval_CallObjectWithKeywords (func=0x1, arg=0x4028075c, kw=0x40269bec) at Python/ceval.c:3346
> #34 0x080a8794 in eval_frame (f=0x8183a54) at Python/ceval.c:1996
> #35 0x080a95ac in PyEval_EvalCodeEx (co=0x402a7320, globals=0x1, locals=0x1, args=0x0, argcount=0, kws=0x0, kwcount=0, defs=0x0, defcount=0, closure=0x0) at Python/ceval.c:2663
> #36 0x080abda9 in PyEval_EvalCode (co=0x1, globals=0x1, locals=0x1) at Python/ceval.c:537
> #37 0x080d7d1b in run_node (n=0x4027879c, filename=0x1 <Address 0x1 out of bounds>, globals=0x1, locals=0x1, flags=0x1) at Python/pythonrun.c:1265
> #38 0x080d724e in PyRun_InteractiveOneFlags (fp=0x1, filename=0x80ff46a "<stdin>", flags=0xbffff428) at Python/pythonrun.c:757
> #39 0x080d7043 in PyRun_InteractiveLoopFlags (fp=0x40254e20, filename=0x80ff46a "<stdin>", flags=0xbffff428) at Python/pythonrun.c:690
> #40 0x080d8642 in PyRun_AnyFileExFlags (fp=0x40254e20, filename=0x80ff46a "<stdin>", closeit=0, flags=0xbffff428) at Python/pythonrun.c:653
> #41 0x08054e35 in Py_Main (argc=0, argv=0xbffff4d4) at Modules/main.c:415
> #42 0x0805498b in main (argc=1, argv=0x1) at Modules/python.c:23
> 
> 
> _______________________________________________________________________
> eGenix.com User Mailing List                     http://www.egenix.com/
> http://lists.egenix.com/mailman/listinfo/egenix-users

-- 
Marc-Andre Lemburg
eGenix.com

Professional Python Services directly from the Source  (#1, Feb 06 2004)
 >>> Python/Zope Consulting and Support ...        http://www.egenix.com/
 >>> mxODBC.Zope.Database.Adapter ...             http://zope.egenix.com/
 >>> mxODBC, mxDateTime, mxTextTools ...        http://python.egenix.com/
________________________________________________________________________
2004-01-23: Released mxODBC.Zope.DA 1.0.8        http://zope.egenix.com/

::: Try mxODBC.Zope.DA for Windows,Linux,Solaris,FreeBSD for free ! ::::


More information about the egenix-users mailing list