Note: This website is archived. For up-to-date information about D projects and development, please visit wiki.dlang.org.

Ticket #20 (closed defect: fixed)

Opened 12 years ago

Last modified 12 years ago

Fails on 64-bit DMD

Reported by: Abscissa Assigned to: somebody
Priority: critical Milestone:
Component: component1 Version:
Keywords: Cc:

Description

Reported by Armin Kazmi via digitalmars.D newsgroup:

Nick, I just wanted to state that your Goldie parsing system does not compile on 64 bit dmd due to the good old size_t vs uint for array sizes/inidices issue. Even after fixing these bugs goldie will crash with a range error.

Change History

11/20/11 04:54:36 changed by Abscissa

"Mostly" fixed in these commits:

http://www.dsource.org/projects/goldie/changeset/502 http://www.dsource.org/projects/semitwist/changeset/240 http://www.dsource.org/projects/semitwist/changeset/241

I say "mostly" because the 'staticlang' tool and the 'parseAnything' sample both segfault, very likely due to DMD Bug #6047: http://d.puremagic.com/issues/show_bug.cgi?id=6047

11/30/11 21:46:07 changed by Abscissa

The root cause of the problem (DMD #6047) is likely this:

DMD Bug #6983 (Vararg corrupts string on 64bit): http://d.puremagic.com/issues/show_bug.cgi?id=6983

11/30/11 21:49:44 changed by Abscissa

  • status changed from new to closed.
  • resolution set to fixed.

I'm closing this issue since Goldie (trunk, and the upcoming v0.7) are now usable in 64-bit.

I've opened a separate ticket for the 'staticlang' and 'parseAnything' problem: #21

11/30/11 23:32:00 changed by Anonymous

Hey man, thank you for the quick fix. I'll report more bugs when I can find some when actually using goldie ;)