Message61876
| Author |
christian.heimes |
| Recipients |
christian.heimes, loewis |
| Date |
2008年01月30日.20:07:49 |
| SpamBayes Score |
0.00032152346 |
| Marked as misclassified |
No |
| Message-id |
<47A0D914.9030904@cheimes.de> |
| In-reply-to |
<1201722316.96.0.926551024202.issue1977@psf.upfronthosting.co.za> |
| Content |
Martin v. Löwis wrote:
> Martin v. Löwis added the comment:
>
> I'm not sure what the purpose of this test is. When would it pass, when
> would it fail? I don't think it is a bug if a
> Py_Initialize()/Py_Finalize() cycle loses references.
Today my attempts to fix some reference leaks related to sys.flags and
sys.float_info caused the test to fail. A single init/final cycle worked
but the second cycle broke.
The test also shows an issue in Python 3.0. The double linked reference
list is broken:
$ ./test_reinit
round 1
[24676 refs]
round 2
[25588 refs]
round 3
* ob
object : <refcnt 0 at 0x82248e8>
type : str
refcount: 0
address : 0x82248e8
* op->_ob_prev->_ob_next
object : <refcnt 0 at 0x82248e8>
type : str
refcount: 0
address : 0x82248e8
* op->_ob_next->_ob_prev
object : bytearray(b'')
type : bytearray
refcount: 1
address : 0x839ab98
Fatal Python error: UNREF invalid object
Aborted (core dumped) |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2008年01月30日 20:07:51 | christian.heimes | set | spambayes_score: 0.000321523 -> 0.00032152346 recipients:
+ christian.heimes, loewis |
| 2008年01月30日 20:07:50 | christian.heimes | link | issue1977 messages |
| 2008年01月30日 20:07:49 | christian.heimes | create |
|