[New-bugs-announce] [issue11702] dir on return value of msilib.OpenDatabase() crashes python

Mark Mc Mahon report at bugs.python.org
Mon Mar 28 17:13:42 CEST 2011


New submission from Mark Mc Mahon <mtnbikingmark at gmail.com>:

Running the following code:

>>> import msilib
>>> db  = msilib.OpenDatabase('c:/windows/installer/1c7a1.msi', 1)
>>> db
<_msi.Database object at 0x01E230A0>
>>> dir(db)

(Python crashes - tested on current Trunk and Python 2.7.1).

I tried tracking it through the C code - and it seems to be a problem when dir is checking for __dir__ (the pointer in PyObject_GetAttrString seems to be incorrect).

----------
components: Windows
messages: 132402
nosy: markm
priority: normal
severity: normal
status: open
title: dir on return value of msilib.OpenDatabase() crashes python
type: crash
versions: Python 2.7, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11702>
_______________________________________


More information about the New-bugs-announce mailing list