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

clearerr called on NULL FILE* ?

Hi all,

My first post to the list. :) I'm debugging one of our application
crashes, and I thought maybe one of you has seen something similar
before. Our application is mostly Python, with some work being done in
a native C++ module. Anyway, I'm getting a memory access violation at
the following stack:
CRASHING THREAD
EXCEPTION POINTERS: 0x0012e424
ExceptionRecord: 0x0012e518
ExceptionCode: 0xc0000005 EXCEPTION_ACCESS_VIOLATION
ExceptionFlags: 0x00000000
ExceptionAddress: 0x7c901010
NumberParameters: 2
ExceptionInformation[0]: 0x00000000
ExceptionInformation[1]: 0x00000034
ExceptionRecord: 0x00000000

THREAD ID: 10b0 frame count: 4
PYTHON23!0x000baa00 - PyFile_Type
PYTHON23!0x0003ac27 - PyFile_SetEncoding
MSVCRT!0x00030a06 - clearerr
ntdll!0x00001010 - RtlEnterCriticalSection
Here's my understanding: something is getting called on a PyFileObject
where f_fp is NULL, and clearerr in the multithreaded runtime tries to
enter an invalid critical section. It looks like PyFile_SetEncoding in
the stack, but I can't figure out how in the Python source how
SetEncoding calls clearerr.

Based on the timing of the crashes, I also think it might have something
to do with log rollovers in RotatingFileHandler.

Has anyone run into something similar? I don't expect anyone to spend a
lot of time on this, but if there are any quick tips, they would be
greatly appreciated...

We're using Python 2.3.5 and Visual C++ 6.

--
Chad Austin
http://imvu.com/technology

May 2 '06 #1
0 779

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

Similar topics

0
by: Xavier Roche | last post by:
Does PHP have a clearerr() equivalent for file streams ? It allows to do things such as "tail -f", by resetting the error status and dozing for few seconds. I didn't see any equivalents in the...
3
by: Josh Wilson | last post by:
OK, somewhat new to C, have searched the group and haven't found an answer that has fixed my problem, so I am just going to try posting it. I am taking really large image files(128x128x35) and...
1
by: tony | last post by:
Hello!! Hello Victor! I use a product called flygrid to create grid tables. In many of my forms I create such grid tables. Some columns in these grid tables is of type drop down list where I...
3
by: subramanian100in | last post by:
Suppose I open a text file in 'read' mode and assume fopen is successful. Suppose this input file contains only few characters and no new line(I am working on LINUX based machine. In this...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
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,...

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.