This is a cryptographically signed message in MIME format.

--------------ms010501000302010909080700
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit



Nobuyoshi Nakada wrote:
> Hi,
> 
> At Wed, 9 Jul 2008 17:30:14 +0900,
> Charlie Savage wrote in [ruby-core:17694]:
>> When the process terminates, Ruby sometimes frees the document object 
>> before the nodes object, thereby causing a segmentation fault.
> 
> The order is not guaranteed in any sense.
> 
>> So - is my observation correct that mark functions are not run at exit? 
> 
> No, it's not an issue of the mark functions.  The free function
> must not assume the order, nor rely on other objects.

Hmm.  To correctly shut down my extension, I do need to control the 
order in which the objects are freed.  Is there any way to do this?  And 
have other people run into this issue (seems like it would be common 
when freeing resources allocated from a 3rd party library, in this case 
libxml).

Charlie

--------------ms010501000302010909080700
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIIJAzCC
AtwwggJFoAMCAQICEApLTm3bM9PFZxFEfV6XkZAwDQYJKoZIhvcNAQEFBQAwYjELMAkGA1UE
BhMCWkExJTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMT
I1RoYXd0ZSBQZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA4MDUxNDIyMDQwM1oX
DTA5MDUxNDIyMDQwM1owQzEfMB0GA1UEAxMWVGhhd3RlIEZyZWVtYWlsIE1lbWJlcjEgMB4G
CSqGSIb3DQEJARYRY2Zpc0BzYXZhZ2V4aS5jb20wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
ggEKAoIBAQDl6cmJXyX9A06gcxGBDjFRP0VPx8hbxwelxzsrIMp4pPlo3w3iNRApMM4YZ5z6
5i3ruj/5j/RNWHELiyBIbrufJ/PQBk8/n8v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