Bug 9622 – Range violation in rdmd

Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2013-03-01T02:27:00Z
Last change time
2013-03-10T01:49:48Z
Keywords
pull
Assigned to
nobody
Creator
andrei

Comments

Comment #0 by andrei — 2013-03-01T02:27:53Z
rdmd invoked with only one file argument crashes with array bounds violation. rdmd prog core.exception.RangeError@rdmd(164): Range violation ---------------- 5 rdmd 0x0000000103acc5be _d_array_bounds + 38 6 rdmd 0x0000000103a71bc3 D4rdmd7__arrayZ + 23 7 rdmd 0x0000000103a713f5 _Dmain + 2105 8 rdmd 0x0000000103acce15 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runMain() + 33 9 rdmd 0x0000000103acc975 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45 10 rdmd 0x0000000103acce5c extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void runAll() + 56 11 rdmd 0x0000000103acc975 extern (C) int rt.dmain2._d_run_main(int, char**, extern (C) int function(char[][])*).void tryExec(scope void delegate()) + 45 12 rdmd 0x0000000103acc92f _d_run_main + 447 13 rdmd 0x0000000103acc768 main + 20 14 rdmd 0x0000000103a70bb4 start + 52 15 ??? 0x0000000000000002 0x0 + 2 ----------------
Comment #1 by github-bugzilla — 2013-03-01T02:41:45Z
Comment #2 by puneet — 2013-03-01T08:44:46Z
The fixed rdmd does not respect -I option given from the command line. I am trying "rdmd -I../../src test.d" and it fails saying: Error: module core is in file 'foo/bar.d' which cannot be read The same command passes when I take rdmd from 2.062 release.
Comment #3 by dlang-bugzilla — 2013-03-01T21:15:22Z
That's because the fix was wrong. Pull request #47 removed the symptom, not the problem. The regression was caused by fixing bug 9583. rdmd depended on this bug.
Comment #4 by dlang-bugzilla — 2013-03-01T21:16:34Z
Comment #5 by github-bugzilla — 2013-03-02T01:05:39Z
Commits pushed to master at https://github.com/D-Programming-Language/tools https://github.com/D-Programming-Language/tools/commit/7049ccf0bbc51e0663eb5ab33c01dc5212d85131 rdmd: Issue 9622: Fix regression introduced by fixing bug 9583 https://github.com/D-Programming-Language/tools/commit/eb56e34581e618ea48b64a24ab0dbd3db12ebcd3 Merge pull request #48 from CyberShadow/rdmd-fix-args rdmd: Issue 9622: Fix regression introduced by fixing bug 9583