473,396 Members | 1,914 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,396 software developers and data experts.

Exception in Python 2.3.3 Interpreter

Hello,
Im running Python Application as a Windows Service (using windows
extensions). But, sporadically the application crashes (crash in
Python23.dll) and this stops the service. This problem cann't be
reproduced easily in my system and the call stack generated by the
application is given below. Please note that the call stack generation
is taken from crash dump file.

The crash occured at the following line:
c = strcmp(vname, wname) (object.c)

# ChildEBP RetAddr Args to Child
00 023ffa58 1e05c6da 055b1250 00637470 00000000
python23!default_3way_compare(struct _object * v = 0x053f2bfc, struct
_object * w = 0x00000001)+0x102
[F:\Python-2.3.3\Python-2.3.3\Objects\object.c @ 689]
01 023ffa74 1e05c5ee 055b1250 00637470 00000000
python23!do_richcmp(struct _object * v = 0x1e0b9fb8, struct _object * w
= 0x00000000, int op = 0)+0x4a
02 023ffa94 1e0174d9 055b1250 00637470 00000000
python23!PyObject_RichCompare(struct _object * v = 0x053f2bfc, struct
_object * w = 0x00000001, int op = 0)+0x1ae
[F:\Python-2.3.3\Python-2.3.3\Objects\object.c @ 1044]
03 023ffaa4 1e013182 00000000 055b1250 00637470
python23!cmp_outcome(int op = 88026108, struct _object * v =
0x00000001, struct _object * w = 0x00000000)+0xa9
[F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 3880]
04 023ffb18 1e016ba4 014f3318 00000002 0099f170
python23!eval_frame(struct _frame * f = 0x053f2bfc)+0x542
[F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 1965]
05 023ffb30 1e016a69 0099f170 023ffb7c 00000002
python23!fast_function(struct _object * func = <Memory access error>,
struct _object *** pp_stack = <Memory access error>, int n = <Memory
access error>, int na = <Memory access error>, int nk = <Memory access
error>)+0x94 [F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 3520]
06 023ffb5c 1e014b65 00a280d0 00000002 00000008
python23!call_function(struct _object *** pp_stack = 0x00000001, int
oparg = 0)+0x159 [F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 3458]
07 023ffbcc 1e016ba4 006ea160 00000001 0099f1b0
python23!eval_frame(struct _frame * f = <Memory access error>)+0x1f25
[F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 2117]
08 023ffbe4 1e016a69 0099f1b0 023ffc30 00000001
python23!fast_function(struct _object * func = <Memory access error>,
struct _object *** pp_stack = <Memory access error>, int n = <Memory
access error>, int na = <Memory access error>, int nk = <Memory access
error>)+0x94 [F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 3520]
09 023ffc10 1e014b65 00a280d0 00000001 00000000
python23!call_function(struct _object *** pp_stack = 0x00000000, int
oparg = 0)+0x159 [F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 3458]
0a 023ffc80 1e015b6f 006cf6d0 00000000 00a1df9c
python23!eval_frame(struct _frame * f = <Memory access error>)+0x1f25
[F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 2117]
0b 023ffcac 1e040978 0096b720 00000001 006cf6d0
python23!PyEval_EvalCodeEx(struct PyCodeObject * co = <Memory access
error>, struct _object * globals = <Memory access error>, struct
_object * locals = <Memory access error>, struct _object ** args =
<Memory access error>, int argcount = <Memory access error>, struct
_object ** kws = <Memory access error>, int kwcount = <Memory access
error>, struct _object ** defs = <Memory access error>, int defcount =
<Memory access error>, struct _object * closure = <Memory access
error>)+0x70f [F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 2663]
0c 023ffcf0 1e0078ec 009788b0 00a1df90 00000000
python23!function_call(struct _object * func = 0x1e0baa50, struct
_object * arg = 0x0096b720, struct _object * kw = 0x00954390)+0x138
[F:\Python-2.3.3\Python-2.3.3\Objects\funcobject.c @ 512]
0d 023ffd04 1e01be03 009788b0 00a1df90 00000000
python23!PyObject_Call(struct _object * func = 0x1e0d7608, struct
_object * arg = 0x00000001, struct _object * kw = 0x00a280d0)+0x1c
[F:\Python-2.3.3\Python-2.3.3\Objects\abstract.c @ 1755]
0e 023fff24 1e0078ec 00a20f08 00671030 00000000
python23!instancemethod_call(struct _object * func = 0x1e0d7608, struct
_object * arg = 0x00000001, struct _object * kw = 0x00a280d0)+0x133
[F:\Python-2.3.3\Python-2.3.3\Objects\classobject.c @ 2433]
0f 023fff38 1e016827 00a20f08 00671030 00000000
python23!PyObject_Call(struct _object * func = 0x77e4a990, struct
_object * arg = 0x01415bd8, struct _object * kw = 0x00000000)+0x1c
[F:\Python-2.3.3\Python-2.3.3\Objects\abstract.c @ 1755]
10 023fff50 1e080c77 00a20f08 00671030 00000000
python23!PyEval_CallObjectWithKeywords(struct _object * func =
0x77e4a990, struct _object * arg = 0x01415bd8, struct _object * kw =
0x00000000)+0xa7 [F:\Python-2.3.3\Python-2.3.3\Python\ceval.c @ 3346]
11 023fff70 1e080675 013d8ba0 00000000 014161a8
python23!t_bootstrap(void * boot_raw = 0x77e4a990)+0x37
[F:\Python-2.3.3\Python-2.3.3\Modules\threadmodule.c @ 183]
12 023fff84 77bc90a2 0086f32c 00000000 00000000
python23!PyThread_get_thread_ident(void)+0x5
[F:\Python-2.3.3\Python-2.3.3\Python\thread_nt.h @ 213]
13 023fffb8 77e4a990 01415bd8 00000000 00000000 msvcrt!_endthread+0xa6
14 023fffec 00000000 77bc9032 01415bd8 00000000
kernel32!BaseThreadStart+0x34

Any clues about the problem ?

- Saravanan D

Jul 19 '05 #1
3 2557

"Saravanan" <sa********@vsnl.net> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
Im running Python Application as a Windows Service (using windows
extensions). But, sporadically the application crashes (crash in
Python23.dll) and this stops the service. This problem cann't be
reproduced easily in my system and the call stack generated by the
application is given below. Please note that the call stack generation
is taken from crash dump file.

The crash occured at the following line:
c = strcmp(vname, wname) (object.c)


I am puzzled by this line. I can't see how it could execute.
Is this C or Python code? from the distribution or your code?
How is the result of strcmp (-1, 0, 1 ?) supposed to be callable?
Is this guarded by a rarely triggered condition?

Terry J. Reedy

Jul 19 '05 #2

"Terry Reedy" <tj*****@udel.edu> wrote in message
news:ma**************************************@pyth on.org...

"Saravanan" <sa********@vsnl.net> wrote in message
news:11********************@o13g2000cwo.googlegrou ps.com...
Im running Python Application as a Windows Service (using windows
extensions). But, sporadically the application crashes (crash in
Python23.dll) and this stops the service. This problem cann't be
reproduced easily in my system and the call stack generated by the
application is given below. Please note that the call stack generation
is taken from crash dump file.

The crash occured at the following line:
c = strcmp(vname, wname) (object.c)


I am puzzled by this line. I can't see how it could execute.
Is this C or Python code? from the distribution or your code?
How is the result of strcmp (-1, 0, 1 ?) supposed to be callable?
Is this guarded by a rarely triggered condition?

Terry J. Reedy


The above one is C Code. The same line is present in object.c file of
Python Interpreter Source and the function name is default_3way_compare().

Windows debugger points to above line in the event of crash of my
application.

Saravanan D
Jul 19 '05 #3

"Saravanan D" <sa*********@siemens.com> wrote in message
news:d5**********@news.mch.sbs.de...
> The crash occured at the following line:
> c = strcmp(vname, wname) (object.c)

The above one is C Code. The same line is present in object.c file of
Python Interpreter Source and the function name is
default_3way_compare().


Ok, much clearer, you actually meant:

c = strcmp(vname, wname) /* in file object.c */

TJR

Jul 19 '05 #4

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

Similar topics

10
by: Frank | last post by:
Using Python 2.2.2, I want to catch all exceptions from "socket.gethostbyaddr(ip)" From IDLE, I can generate: >>> socket.gethostbyaddr('1.2') Traceback (most recent call last): File...
0
by: Jan Decaluwe | last post by:
Hi: There is a difference between exception info formatting by the interpreter versus the traceback module. For example, say we define an exception Error in file module.py: $ python Python...
118
by: 63q2o4i02 | last post by:
Hi, I've been thinking about Python vs. Lisp. I've been learning Python the past few months and like it very much. A few years ago I had an AI class where we had to use Lisp, and I absolutely...
2
by: akameswaran | last post by:
Admittedly this problem causes no actual functional issues aside from an occasional error message when the program exits. The error is: Unhandled exception in thread started by Error in...
1
by: Petr Prikryl | last post by:
Do you think that the following could became PEP (pre PEP). Please, read it, comment it, reformulate it,... Abstract Introduction of the mechanism for language extensions via modules...
113
by: John Nagle | last post by:
The major complaint I have about Python is that the packages which connect it to other software components all seem to have serious problems. As long as you don't need to talk to anything outside...
5
by: Adam Atlas | last post by:
Does anyone know if it would be possible to create a CPython extension -- or use the ctypes module -- to access Python's own embedding API (http://docs.python.org/api/initialization.html &c.)?...
0
by: joshusdog | last post by:
I'm working on a test application that embeds the Python interpreter. I have the following problem... I've created my own interactive interpreter loop. Essentially, it reads the command from the...
0
by: mk | last post by:
http://linux.byexamples.com/archives/365/python-convey-the-exception-traceba That's seriously weird. What's your Python version and platform? On my Windows and Linux machines, with more recent...
0
by: Robert Rawlins | last post by:
That's seriously weird. What's your Python version and platform? On my Thanks for that MK. I'm using Debian with Python 2.5 from the stable apt repository, installed but a couple of days ago....
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
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,...

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.