www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - the new GC might be buggy

reply Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

While updating Flectioned to DMD-1.001 I've encountered a _potential_
issue with the new GC.
















No LazyTypeInfo can be collected before all LazyTypeInfos have been
instantiated and all instantiations of LazyTypeInfo are plain "new
LazyTypeInfo("some string)".

LAZY_1: this:0xf7d57170 message:0xf7d57140 aaA.AA
LAZY_1: this:0xf7d57140 message:0xf7d26640 std.asserterror.AssertError
LAZY_2: this:0xf7d57140 message:0xf7d26640

As you can see 0xf7d57140 first points to the content of an array and
later on to that of a LazyTypeInfo instance. In addition the above
"name.dup" was a "name" in previous versions and works with DMD-1.00 and
GDC-0.21.

Complete source: 
http://svn.dsource.org/projects/flectioned/downloads/flectioned.zip

failure detection:
Error: 4invalid UTF-8 sequence

I'll try to reduce the code a bit before filling a bug report - if it is
indeed a D issue.

Thomas


-----BEGIN PGP SIGNATURE-----

iD8DBQFFt1SiLK5blCcjpWoRAne6AJ43a+/bBV6Nfwt0nVJmVbX2GWkJNwCfdRds
XZAZElTDEVJDHLqI2Z2/xXU=
=aBAI
-----END PGP SIGNATURE-----
Jan 24 2007
next sibling parent Lionello Lunesu <lio lunesu.remove.com> writes:
Thomas Kuehne wrote:
 I'll try to reduce the code a bit before filling a bug report - if it is
 indeed a D issue.
You're not alone. I'm getting strange results using std.string.split (which wasn't changed) and Oskar's got segfaults :( L.
Jan 24 2007
prev sibling next sibling parent Thomas Kuehne <thomas-dloop kuehne.cn> writes:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Thomas Kuehne schrieb am 2007-01-24:
 While updating Flectioned to DMD-1.001 I've encountered a _potential_
 issue with the new GC.
[...] It is indeed a D issue Oskar Linde already tracked down. news:ep6asn$aer$1 digitaldaemon.com:
 It seems the ClassInfo.flags are incorrectly set to 2 when only
 private data members contain pointers.
Thomas -----BEGIN PGP SIGNATURE----- iD8DBQFFt1eWLK5blCcjpWoRAjuWAJ9IMC7KXpD/96A6XsDZaY+eKm06vwCgnwiz +IZvLq7z2KLsYHtQn1GynaI= =zLfv -----END PGP SIGNATURE-----
Jan 24 2007
prev sibling parent Derek Parnell <derek psych.ward> writes:
On Wed, 24 Jan 2007 11:49:42 +0000 (UTC), Thomas Kuehne wrote:


 Error: 4invalid UTF-8 sequence
I'm also getting this when compiling 'Build' with 1.001. A recompile with DMD 1.00 works fine though. -- Derek Parnell
Jan 24 2007