classification
Title: segfault in python24.dll
Type: Stage:
Components: Library (Lib) Versions: Python 2.4
process
Status: closed Resolution: rejected
Dependencies: Superseder:
Assigned To: Nosy List: etaoinbe2, gvanrossum, loewis
Priority: normal Keywords:

Created on 2006-12-03 10:18 by etaoinbe2, last changed 2008-01-25 19:52 by gvanrossum. This issue is now closed.

Messages (8)
msg30732 - (view) Author: joe (etaoinbe2) Date: 2006-12-03 10:18
In my app that uses wxpython2.7 extensively I get regularly following segfault (null pointer exception): 

AppName: python.exe	 AppVer: 0.0.0.0	 ModName: python24.dll
ModVer: 2.4.150.1012	 Offset: 00030f33

I have been unable to pinpoint it to a certain location of the program. :( 

msg30733 - (view) Author: joe (etaoinbe2) Date: 2006-12-03 10:25
this is on windows, the faulting address is always the same
msg30734 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-12-03 10:36
AFAICT, this might be a bug in wxpython also, or in some other extension module you are using.

Can you give any example code that allows to reproduce the crash? Without that, there is little chance that the problem can be fixed.
msg30735 - (view) Author: joe (etaoinbe2) Date: 2006-12-03 13:10
I have tried to insulate the problem to a particular part of the code but that did not work out. I have currently no small program that shows this only the complete integrated app shows this. 

If you have a build with assembler listings enabled then you might be able to find where that address is ? 

Or can I get a debugbuild so that a meaningfull stacktrace can be produced?
msg30736 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2006-12-03 13:56
For a debug build, you need debug versions of everything, including wxPython.

If you have VS.NET 2003 or 2005, you should be able to produce such binaries yourself. For Python, you need to follow the instructions in PCBuild/readme.txt. I don't know how wxPython is built.

You might also be successful with creating a release build that has debug information enabled; in that case, it is sufficient to rebuild Python.
msg30737 - (view) Author: joe (etaoinbe2) Date: 2006-12-03 18:42
I have vs7.0 & 6.0
7.0 does not accept 7.1 project files
so try with 6.0 : 
--------------------Configuration: pythoncore - Win32 Debug--------------------
Build : warning : failed to (or don't know how to) build 'C:\Python-2.5\Modules\structmodule.c'
Compiling...
exceptions.c
fatal error C1083: Cannot open source file: 'C:\Python-2.5\Python\exceptions.c': No such file or directory
md5c.c
fatal error C1083: Cannot open source file: 'C:\Python-2.5\Modules\md5c.c': No such file or directory
structmodule.c
fatal error C1083: Cannot open source file: 'C:\Python-2.5\Modules\structmodule.c': No such file or directory
Error executing cl.exe.

python25_d.dll - 3 error(s), 1 warning(s)

Those files are really not there ? So how shall I proceed ?
msg30738 - (view) Author: joe (etaoinbe2) Date: 2006-12-03 18:59
It is a real pity open source software requires closed source compilers !

trying to build with 7.0 gives:
--------------------------------
------ Build started: Project: pythoncore, Configuration: Debug Win32 ------

Compiling...
zipimport.c
yuvconvert.c
xxsubtype.c
weakrefobject.c
unicodeobject.c
unicodectype.c
typeobject.c
tupleobject.c
traceback.c
tokenizer.c
timemodule.c
threadmodule.c
thread.c
sysmodule.c
symtablemodule.c
symtable.c
structseq.c
structmember.c
stropmodule.c
stringobject.c
sliceobject.c
signalmodule.c
shamodule.c
sha512module.c
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(146) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(146) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(146) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(146) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(159) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(159) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(159) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(159) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(160) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(160) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(160) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(160) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(160) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(160) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(160) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(161) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(161) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(161) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(161) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(161) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(161) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(161) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(162) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(162) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(162) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : error C2146: syntax error : missing ')' before identifier 'L'
\Python-2.5\Modules\sha512module.c(162) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(162) : error C2144: syntax error : '<Unknown>' should be preceded by '<Unknown>'
\Python-2.5\Modules\sha512module.c(162) : error C2143: syntax error : missing ')' before 'identifier'
\Python-2.5\Modules\sha512module.c(162) : error C2059: syntax error : 'bad suffix on number'
\Python-2.5\Modules\sha512module.c(162) : fatal error C1013: compiler limit : too many open parentheses
sha256module.c
setobject.c
rotatingtree.c
rgbimgmodule.c
rangeobject.c
pythonrun.c
Python-ast.c
pystrtod.c
pystate.c
pyfpe.c
pyarena.c
posixmodule.c
parsetok.c
parsermodule.c
parser.c
operator.c
obmalloc.c
object.c
node.c
mystrtoul.c
mysnprintf.c
myreadline.c
multibytecodec.c
msvcrtmodule.c
moduleobject.c
modsupport.c
mmapmodule.c
methodobject.c
metagrammar.c
md5module.c
md5.c
mathmodule.c
marshal.c
main.c
longobject.c
listobject.c
listnode.c
itertoolsmodule.c
iterobject.c
intobject.c
importdl.c
import.c
imageop.c
grammar1.c
grammar.c
graminit.c
getversion.c
getplatform.c
getpathp.c
getopt.c
getmtime.c
getcopyright.c
getcompiler.c
getargs.c
genobject.c
gcmodule.c
future.c
funcobject.c
frozen.c
frameobject.c
floatobject.c
firstsets.c
fileobject.c
exceptions.c
errors.c
errnomodule.c
enumobject.c
dynload_win.c
dl_nt.c
dictobject.c
Build cancelled

Build log was saved at "file://c:\Python-2.5\PCbuild\x86-temp-debug\pythoncore\BuildLog.htm"
pythoncore - 95 error(s), 0 warning(s)


---------------------- Done ----------------------



msg61687 - (view) Author: Guido van Rossum (gvanrossum) * (Python committer) Date: 2008-01-25 19:52
Without new information we can't really help with this, sorry.
History
Date User Action Args
2008-01-25 19:52:30gvanrossumsetstatus: open -> closed
nosy: + gvanrossum
resolution: rejected
messages: + msg61687
2006-12-03 10:18:37etaoinbe2create