ArchLinux packages
"Jérôme M. Berger"
jeberger at free.fr
Sun Nov 14 03:06:45 PST 2010
Iain Buclaw wrote:
> I'm currently working on fixing tango runtime for gdc (using a modified bob.sh to
> build)
>
> Here is the ticket in tango:
> http://dsource.org/projects/tango/ticket/2010
>
> Any feedback or WIP patches would be helpful.
>
The latest Tango trunk works with the latest gdc Mercurial. Thanks
Iain!
However, I tried running the GC benchmark from
http://dsource.org/projects/tango/wiki/GCBenchmark. It works with
Tango but it segfaults with Phobos. When running it in gdb I saw
that at some point an object has a null vptr:
==============================8<------------------------------
> gdb testgc
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/jerome/prog/d/testgc...done.
(gdb) r
Starting program: /home/jerome/prog/d/testgc
[Thread debugging using libthread_db enabled]
Program received signal SIGSEGV, Segmentation fault.
0x0000000000402a3d in check (this=...) at testgc.d:12
12 return (left is null) ? item : (item + left.check() -
right.check());
(gdb) print this.left
$1 = (struct TreeNode &) @0x7ffff7fb0f40: {<> = {_vptr$ = 0x420760,
_monitor = 0x0}, item = -129788, left = @0x0, right = @0x0}
(gdb) print this.right
$2 = (struct TreeNode &) @0x7ffff7fabf00: {<> = {_vptr$ = 0x0,
_monitor = 0x0}, item = -1008, left = @0x7ffff7fabf40, right =
@0x7ffff7fa9f00}
(gdb)
------------------------------>8==============================
Jerome
--
mailto:jeberger at free.fr
http://jeberger.free.fr
Jabber: jeberger at jabber.fr
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: OpenPGP digital signature
URL: <http://lists.puremagic.com/pipermail/d.gnu/attachments/20101114/84d4d64f/attachment.pgp>
More information about the D.gnu
mailing list