This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Carl.Friedrich.Bolz
Recipients Carl.Friedrich.Bolz
Date 2007-12-17.19:58:18
SpamBayes Score 0.03333706
Marked as misclassified No
Message-id <1197921499.01.0.370376997036.issue1642@psf.upfronthosting.co.za>
In-reply-to
Content
When trying to delete the .value member of ctypes simple types my python
interpreter segfaults:

$ python
Python 2.5.1 (r251:54863, Oct  5 2007, 13:36:32)
[GCC 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import c_long
>>> c = c_long(1)
>>> c.value
1
>>> del c.value
Segmentation fault (core dumped)


Admittedly there is no good usecase for this, but it should raise an
exception and not segfault.
History
Date User Action Args
2007-12-17 19:58:19Carl.Friedrich.Bolzsetspambayes_score: 0.0333371 -> 0.03333706
recipients: + Carl.Friedrich.Bolz
2007-12-17 19:58:19Carl.Friedrich.Bolzsetspambayes_score: 0.0333371 -> 0.0333371
messageid: <1197921499.01.0.370376997036.issue1642@psf.upfronthosting.co.za>
2007-12-17 19:58:18Carl.Friedrich.Bolzlinkissue1642 messages
2007-12-17 19:58:18Carl.Friedrich.Bolzcreate