Thread overview
[Issue 9622] New: Range violation in rdmd
Mar 01, 2013
Puneet Goel
Mar 02, 2013
Vladimir Panteleev
Mar 02, 2013
Vladimir Panteleev
Mar 10, 2013
Vladimir Panteleev
March 01, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622

           Summary: Range violation in rdmd
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody@puremagic.com
        ReportedBy: andrei@erdani.com


--- Comment #0 from Andrei Alexandrescu <andrei@erdani.com> 2013-03-01 02:27:53 PST ---
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
----------------

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 01, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Alex Rønne Petersen <alex@lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex@lycus.org
         Resolution|                            |FIXED


--- Comment #1 from github-bugzilla@puremagic.com 2013-03-01 02:41:45 PST ---
Commits pushed to master at https://github.com/D-Programming-Language/tools

https://github.com/D-Programming-Language/tools/commit/4086e393874ae8634aa2d6818083cfaed0efc2f4 Fix issue 9622 - Range violation in rdmd

https://github.com/D-Programming-Language/tools/commit/9fc4f6a382c9d4c5c07a30df11c8cfb2be971576 Merge pull request #47 from andralex/rdmd

Fix issue 9622 - Range violation in rdmd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 01, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Alex Rønne Petersen <alex@lycus.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |alex@lycus.org
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 01, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Puneet Goel <puneet@coverify.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
                 CC|                            |puneet@coverify.org
         Resolution|FIXED                       |


--- Comment #2 from Puneet Goel <puneet@coverify.org> 2013-03-01 08:44:46 PST ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |thecybershadow@gmail.com


--- Comment #3 from Vladimir Panteleev <thecybershadow@gmail.com> 2013-03-02 07:15:22 EET ---
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.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull


--- Comment #4 from Vladimir Panteleev <thecybershadow@gmail.com> 2013-03-02 07:16:34 EET ---
https://github.com/D-Programming-Language/tools/pull/48

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 02, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622



--- Comment #5 from github-bugzilla@puremagic.com 2013-03-02 01:05:39 PST ---
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

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
March 10, 2013
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|                            |FIXED


-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------