www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 9622] New: Range violation in rdmd

reply d-bugmail puremagic.com writes:
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



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: -------
Mar 01 2013
next sibling parent d-bugmail puremagic.com writes:
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



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


Fix issue 9622 - Range violation in rdmd

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
Mar 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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: -------
Mar 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
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                       |



---
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: -------
Mar 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Vladimir Panteleev <thecybershadow gmail.com> changed:

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



07:15:22 EET ---

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: -------
Mar 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9622


Vladimir Panteleev <thecybershadow gmail.com> changed:

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



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: -------
Mar 01 2013
prev sibling next sibling parent d-bugmail puremagic.com writes:
http://d.puremagic.com/issues/show_bug.cgi?id=9622




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


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: -------
Mar 02 2013
prev sibling parent d-bugmail puremagic.com writes:
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: -------
Mar 10 2013