469,916 Members | 2,646 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,916 developers. It's quick & easy.

Fatal Python error: Inconsistent interned string state

Anyone run into this before?

I have a python app that has been reliable, running for days on end
without a crash. Suddenly, It repeatedly crashes with the following
message:

"Fatal Python error: Inconsistent interned string state.
abnormal program termination"

Some background:

Platform is W2K.

My app receives data (short strings, 25 - 40 character in length) from
a telnet connection, using telnetlib. The strings are placed in a
queue (I am using Queue.Queue(). The telnet session runs in a thread.
A second thread gets strings from the queue and does stuff with the
contents, involving queries to a mysql database. The main thread just
watches for keyboard input for a shutdown command. Other than that, it
prints to console and logs to a file.

I cannot find any place in my code that overtly uses the concept of an
interned string (I had never before heard of an interned string). The
crashes began after I started using the following simple construct, to
trap a particular value in the data:

if line[0] == '2': (do something)

Naturally, I assume that the problem may have something to do with
this change, but I cannot fathom how it could cause this problem

Byron Morgan
Jul 18 '05 #1
1 2197
bm*****@usa.net (Byron Morgan) writes:
Anyone run into this before?

I have a python app that has been reliable, running for days on end
without a crash. Suddenly, It repeatedly crashes with the following
message:


Is this reproducable? What extension modules are you using?

It sounds like you have a memory scribble somewhere, good luck.

Cheers,
mwh

--
MARVIN: What a depressingly stupid machine.
-- The Hitch-Hikers Guide to the Galaxy, Episode 7
Jul 18 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

By using this site, you agree to our Privacy Policy and Terms of Use.