473,765 Members | 2,121 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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!defaul t_3way_compare( struct _object * v = 0x053f2bfc, struct
_object * w = 0x00000001)+0x1 02
[F:\Python-2.3.3\Python-2.3.3\Objects\o bject.c @ 689]
01 023ffa74 1e05c5ee 055b1250 00637470 00000000
python23!do_ric hcmp(struct _object * v = 0x1e0b9fb8, struct _object * w
= 0x00000000, int op = 0)+0x4a
02 023ffa94 1e0174d9 055b1250 00637470 00000000
python23!PyObje ct_RichCompare( struct _object * v = 0x053f2bfc, struct
_object * w = 0x00000001, int op = 0)+0x1ae
[F:\Python-2.3.3\Python-2.3.3\Objects\o bject.c @ 1044]
03 023ffaa4 1e013182 00000000 055b1250 00637470
python23!cmp_ou tcome(int op = 88026108, struct _object * v =
0x00000001, struct _object * w = 0x00000000)+0xa 9
[F:\Python-2.3.3\Python-2.3.3\Python\ce val.c @ 3880]
04 023ffb18 1e016ba4 014f3318 00000002 0099f170
python23!eval_f rame(struct _frame * f = 0x053f2bfc)+0x5 42
[F:\Python-2.3.3\Python-2.3.3\Python\ce val.c @ 1965]
05 023ffb30 1e016a69 0099f170 023ffb7c 00000002
python23!fast_f unction(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\ce val.c @ 3520]
06 023ffb5c 1e014b65 00a280d0 00000002 00000008
python23!call_f unction(struct _object *** pp_stack = 0x00000001, int
oparg = 0)+0x159 [F:\Python-2.3.3\Python-2.3.3\Python\ce val.c @ 3458]
07 023ffbcc 1e016ba4 006ea160 00000001 0099f1b0
python23!eval_f rame(struct _frame * f = <Memory access error>)+0x1f25
[F:\Python-2.3.3\Python-2.3.3\Python\ce val.c @ 2117]
08 023ffbe4 1e016a69 0099f1b0 023ffc30 00000001
python23!fast_f unction(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\ce val.c @ 3520]
09 023ffc10 1e014b65 00a280d0 00000001 00000000
python23!call_f unction(struct _object *** pp_stack = 0x00000000, int
oparg = 0)+0x159 [F:\Python-2.3.3\Python-2.3.3\Python\ce val.c @ 3458]
0a 023ffc80 1e015b6f 006cf6d0 00000000 00a1df9c
python23!eval_f rame(struct _frame * f = <Memory access error>)+0x1f25
[F:\Python-2.3.3\Python-2.3.3\Python\ce val.c @ 2117]
0b 023ffcac 1e040978 0096b720 00000001 006cf6d0
python23!PyEval _EvalCodeEx(str uct 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\ce val.c @ 2663]
0c 023ffcf0 1e0078ec 009788b0 00a1df90 00000000
python23!functi on_call(struct _object * func = 0x1e0baa50, struct
_object * arg = 0x0096b720, struct _object * kw = 0x00954390)+0x1 38
[F:\Python-2.3.3\Python-2.3.3\Objects\f uncobject.c @ 512]
0d 023ffd04 1e01be03 009788b0 00a1df90 00000000
python23!PyObje ct_Call(struct _object * func = 0x1e0d7608, struct
_object * arg = 0x00000001, struct _object * kw = 0x00a280d0)+0x1 c
[F:\Python-2.3.3\Python-2.3.3\Objects\a bstract.c @ 1755]
0e 023fff24 1e0078ec 00a20f08 00671030 00000000
python23!instan cemethod_call(s truct _object * func = 0x1e0d7608, struct
_object * arg = 0x00000001, struct _object * kw = 0x00a280d0)+0x1 33
[F:\Python-2.3.3\Python-2.3.3\Objects\c lassobject.c @ 2433]
0f 023fff38 1e016827 00a20f08 00671030 00000000
python23!PyObje ct_Call(struct _object * func = 0x77e4a990, struct
_object * arg = 0x01415bd8, struct _object * kw = 0x00000000)+0x1 c
[F:\Python-2.3.3\Python-2.3.3\Objects\a bstract.c @ 1755]
10 023fff50 1e080c77 00a20f08 00671030 00000000
python23!PyEval _CallObjectWith Keywords(struct _object * func =
0x77e4a990, struct _object * arg = 0x01415bd8, struct _object * kw =
0x00000000)+0xa 7 [F:\Python-2.3.3\Python-2.3.3\Python\ce val.c @ 3346]
11 023fff70 1e080675 013d8ba0 00000000 014161a8
python23!t_boot strap(void * boot_raw = 0x77e4a990)+0x3 7
[F:\Python-2.3.3\Python-2.3.3\Modules\t hreadmodule.c @ 183]
12 023fff84 77bc90a2 0086f32c 00000000 00000000
python23!PyThre ad_get_thread_i dent(void)+0x5
[F:\Python-2.3.3\Python-2.3.3\Python\th read_nt.h @ 213]
13 023fffb8 77e4a990 01415bd8 00000000 00000000 msvcrt!_endthre ad+0xa6
14 023fffec 00000000 77bc9032 01415bd8 00000000
kernel32!BaseTh readStart+0x34

Any clues about the problem ?

- Saravanan D

Jul 19 '05 #1
3 2603

"Saravanan" <sa********@vsn l.net> wrote in message
news:11******** ************@o1 3g2000cwo.googl egroups.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.e du> wrote in message
news:ma******** *************** *************** @python.org...

"Saravanan" <sa********@vsn l.net> wrote in message
news:11******** ************@o1 3g2000cwo.googl egroups.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_co mpare().

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

Saravanan D
Jul 19 '05 #3

"Saravanan D" <sa*********@si emens.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_co mpare().


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
6793
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 "<pyshell#28>", line 1, in ? socket.gethostbyaddr('1.2') herror: (11004, 'host not found') <=== what I want when I catch
0
1365
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 2.3 (#1, Sep 12 2003, 15:05:00) on linux2 Type "help", "copyright", "credits" or "license" for more information.
118
6734
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 hated it, having learned C++ a few years prior. They didn't teach Lisp at all and instead expected us to learn on our own. I wasn't aware I had to uproot my thought process to "get" it and wound up feeling like a moron. In learning Python I've...
2
2068
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 sys.excepthook: Original exception was: Yes all that info is blank. The application is a console application that is waiting for some condition on the machine to happen. However, I leave open the possiblitiy to cancel by a single key press at which
1
2083
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 written using other languages. Extensions of Python could be done via special interpreter extensions. From Python sources, the special modules would look like other modules, with the Python API (the key feature from
113
5305
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 the Python world, you're fine. But once you do, things go downhill. MySQLdb has version and platform compatibility problems. So does M2Crypto. The built-in SSL support is weak. Even basic sockets don't quite work right; the socket module...
5
1644
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.)? Could a Python program itself create a sub-interpreter, and work with it with all the privileges and capabilities that an actual C program would have? I realize that this may be a bit too... mystical? ... for a lot of people's tastes, but I'm just...
0
1029
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 prompt and calls the following C code: PyObject* pMainModule = PyImport_AddModule("__main__"); PyObject* pMainDictionary = PyModule_GetDict(pMainModule); PyObject* pObj = PyRun_String(pCommandText, Py_single_input, pMainDictionary,...
0
1115
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 Python versions the above trick works flawlessly. Check your environment, namely PYTHON* variables. There may be something causing this behaviour. Unset them. Check the first line of your scripts. If you're calling wrong Python
0
213
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. I'll be sure to look into those other elements you suggested also. I'm not sure if it bares any resemblance but this application runs a gobject mainloop and uses dbus quite extensively. Don't think this might have something to do with the way I...
0
9568
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...
0
9398
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10156
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9951
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
8831
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...
1
7375
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5275
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...
1
3924
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

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.