www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - Custom allocator + empty class = crash

reply Nick <Nick_member pathlink.com> writes:
The following is a modified version of the custom allocator example in the docs.
The class has to be empty, ie. without any members, for the crash to occur.
Still I thought I should report it since it might be a symptom of a deeper
problem.









































Output:
Allocated 8 bytes at 93072f8
Segmentation fault

Nick
Feb 15 2006
parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Nick schrieb am 2006-02-15:
 The following is a modified version of the custom allocator example in the
docs.
 The class has to be empty, ie. without any members, for the crash to occur.
 Still I thought I should report it since it might be a symptom of a deeper
 problem.









































 Output:
 Allocated 8 bytes at 93072f8
 Segmentation fault

 Nick
Added to DStress as http://dstress.kuehne.cn/run/d/delete_12_A.d http://dstress.kuehne.cn/run/d/delete_12_B.d http://dstress.kuehne.cn/run/d/delete_12_C.d http://dstress.kuehne.cn/run/d/delete_12_D.d Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFD9EMK3w+/yD4P9tIRAmyXAJ9/uqdrM4x55Kf8fkvlZG4NK/gsLACeJGly AdqRgzjnee64qWTt6OiBaZI= =pjcJ -----END PGP SIGNATURE-----
Feb 16 2006