function causing core dump

Xaver Hinterhuber xaver_hinterhuber at web.de
Mon May 10 11:15:33 EDT 2004


Hello pythonistas,

I build a function with the following code segment:

    codeObject = new.code(
      0, # argcount
      0, # nlocals
      0, # stacksize
      0, # flags
      codeString, # code
      (), # consts
      (), # names
      (), # varnames
      'content', # filename
      'content', # name
      3, # first line number
      codeString # lnotab
      )
    f = new.function(codeObject, dict, 'f')
    f()

Everything runs fine, until the function is called with f().
When python tries to execute f(), the core dump happens.
I don't have any clue why python core dumps.
The codeString is nothing complex, its a one-liner.
Could you plz give me some tips what I have to do?

With kind regards
Xaver Hinterhuber





More information about the Python-list mailing list