Menu

#996 compiler crashes with larger program

devel
closed-fixed
None
5
2015-09-30
2015-09-29
Karl Fant
No

Compiler crashes.

MAC OS X 10.9.5 verilog 0.9.7

The code is attached.

In the make file steerD crashes the compiler and steerD2 a trimmed down version of steerD works correctly.
SteerD has 4 similar code segments. Any two will not crash the compiler while and three or more will crash the compiler. SteerD2 is a program reduced to two of the code segments.

make steerD crashes thus.

twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c" -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c" -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
48679 Abort trap: 6 | /usr/local/lib/ivl/ivl -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c" -C"/usr/local/lib/ivl/vvp.conf" -- -
make: *** [steerD] Error 134
karlfansmbp1617:steering karlfant$

make steerD2 runs correcly thus

twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
VVP -n twoD_steer32D2
VCD info: dumpfile twoD_steer32D2.vcd opened for output.
pass
pass
karlfansmbp1617:steering karlfant$

1 Attachments

Related

Bugs: #996

Discussion

  • Martin Whitaker

    Martin Whitaker - 2015-09-29

    Please try the latest release (v10.0). I can reproduce the bug with v0.9, but not with v10.

     
    • Karl Fant

      Karl Fant - 2015-09-29

      Thanks.

      I installed version 10. iverilog -v says I am executing version 10 but I still get the same error on make steerD.

      Karl Fant
      fant@theseusresearch.com

      On Sep 29, 2015, at 11:29 AM, Martin Whitaker martinwhitaker@users.sf.net wrote:

      Please try the latest release (v10.0). I can reproduce the bug with v0.9, but not with v10.

      [bugs:#996] compiler crashes with larger program

      Status: open
      Group: devel
      Created: Tue Sep 29, 2015 06:05 PM UTC by Karl Fant
      Last Updated: Tue Sep 29, 2015 06:05 PM UTC
      Owner: nobody
      Attachments:

      sandbox 6 steering.zip (3.1 MB; application/zip)
      Compiler crashes.

      MAC OS X 10.9.5 verilog 0.9.7

      The code is attached.

      In the make file steerD crashes the compiler and steerD2 a trimmed down version of steerD works correctly.
      SteerD has 4 similar code segments. Any two will not crash the compiler while and three or more will crash the compiler. SteerD2 is a program reduced to two of the code segments.

      make steerD crashes thus.

      twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c" -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c" -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
      48679 Abort trap: 6 | /usr/local/lib/ivl/ivl -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c" -C"/usr/local/lib/ivl/vvp.conf" -- -
      make: *** [steerD] Error 134
      karlfansmbp1617:steering karlfant$

      make steerD2 runs correcly thus

      twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      VVP -n twoD_steer32D2
      VCD info: dumpfile twoD_steer32D2.vcd opened for output.
      pass
      pass
      karlfansmbp1617:steering karlfant$

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/iverilog/bugs/996/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #996

  • Stephen Williams

    I tried "make steerD" in my build, and it worked fine. Or at least it didn't crash. So I think we are going to need a little more detail. Perhaps it is something mac specific? I have a Mac, so I can give it a try later if no one else pins this down better.

     
  • Martin Whitaker

    Martin Whitaker - 2015-09-29

    It looks to be a buffer overrun in NetScope::auto_name. Printing out new_name just before it returns true gives the following with v0.9:

    auto name : genblk9
    auto name : genblk09
    auto name : genblk009
    auto name : genblk0009
    auto name : genblk00009
    auto name : genblk000009
    auto name : genblk0000009
    auto name : genblk00000009
    auto name : genblk000000009
    auto name : genblk0000000009
    auto name : genblk00000000009
    auto name : genblk000000000009
    auto name : genblk0000000000009
    auto name : genblk00000000000009
    auto name : genblk000000000000009
    auto name : genblk0000000000000009
    auto name : genblk00000000000000009
    auto name : genblk000000000000000009
    auto name : genblk0000000000000000009
    auto name : genblk00000000000000000009
    auto name : genblk000000000000000000009
    auto name : genblk0000000000000000000009
    auto name : genblk00000000000000000000009
    auto name : genblk000000000000000000000009
    auto name : genblk0000000000000000000000009
    twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
    twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
    twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
    twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
    twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
    twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
    twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
    auto name : genblk10
    auto name : genblk0010
    auto name : genblk001010
    auto name : genblk00001010
    auto name : genblk0000101010
    auto name : genblk000000101010
    auto name : genblk00000010101010
    auto name : genblk0000000010101010
    auto name : genblk000000001010101010
    auto name : genblk00000000001010101010
    auto name : genblk0000000000101010101010
    auto name : genblk000000000000101010101010
    auto name : genblk00000000000010101010101010
    auto name : genblk0000000000000010101010101010
    auto name : genblk000000000000001010101010101010
    auto name : genblk00000000000000001010101010101010
    auto name : genblk0000000000000000101010101010101010
    sh: line 1:  2966 Done                    /usr/local/lib/ivl-0.9/ivlpp -L -F"/tmp/ivrlg25bdc8a97" -f"/tmp/ivrlg5bdc8a97" -p"/tmp/ivrli5bdc8a97"
          2967 Segmentation fault      | /usr/local/lib/ivl-0.9/ivl -C"ivl.conf" -C"/usr/local/lib/ivl-0.9/vvp.conf" -- -
    

    With v10, I don't get the segfault, but the subsequent auto-generated names exceed the buffer size, and have garbage at the end.

    That's as far as I'll get tonight, so feel free to take it.

     
  • Stephen Williams

    OK, I see some things that can be done. I'll take this one on.

     
  • Stephen Williams

    • assigned_to: Stephen Williams
     
  • Stephen Williams

    I have pushed a fix into git master. I'll probably port this into the v10 branch
    as well, but that will happen tomorrow.

     
    • Stephen Williams

      Patch cherry-picked into the v10 branch.

       
  • Stephen Williams

    • status: open --> closed-fixed
     
    • Karl Fant

      Karl Fant - 2015-09-30

      Hi Stephen

      Thank you. I downloaded from github this morning which said it was updated 17 hours ago and while this is all new to me I think I did the download and install correctly. I there anyway to make sure that I am actually executing the iverilog with the patch from my terminal window?

      I am still getting the same error with make steerD

      twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      sh: line 1: 86926 Done /usr/local/lib/ivl/ivlpp -L -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg257140c54" -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg57140c54" -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli57140c54"
      86927 Abort trap: 6 | /usr/local/lib/ivl/ivl -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh57140c54" -C"/usr/local/lib/ivl/vvp.conf" -- -
      make: *** [steerD] Error 134
      karlfansmbp1617:steering karlfant$ iverilog -v
      Icarus Verilog version 10.0 (stable) (v10_0)

      Karl Fant
      fant@theseusresearch.com

      On Sep 30, 2015, at 9:56 AM, Stephen Williams stevewilliams@users.sf.net wrote:

      status: open --> closed-fixed
      [bugs:#996] compiler crashes with larger program

      Status: closed-fixed
      Group: devel
      Created: Tue Sep 29, 2015 06:05 PM UTC by Karl Fant
      Last Updated: Wed Sep 30, 2015 12:47 AM UTC
      Owner: Stephen Williams
      Attachments:

      sandbox 6 steering.zip (3.1 MB; application/zip)
      Compiler crashes.

      MAC OS X 10.9.5 verilog 0.9.7

      The code is attached.

      In the make file steerD crashes the compiler and steerD2 a trimmed down version of steerD works correctly.
      SteerD has 4 similar code segments. Any two will not crash the compiler while and three or more will crash the compiler. SteerD2 is a program reduced to two of the code segments.

      make steerD crashes thus.

      twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c" -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c" -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
      48679 Abort trap: 6 | /usr/local/lib/ivl/ivl -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c" -C"/usr/local/lib/ivl/vvp.conf" -- -
      make: *** [steerD] Error 134
      karlfansmbp1617:steering karlfant$

      make steerD2 runs correcly thus

      twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
      VVP -n twoD_steer32D2
      VCD info: dumpfile twoD_steer32D2.vcd opened for output.
      pass
      pass
      karlfansmbp1617:steering karlfant$

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/iverilog/bugs/996/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       

      Related

      Bugs: #996

      • Stephen Williams

        The devel version (git master) would have reported as
        version 11.0 (devel), so you are still running version 10.
        I ported the patch to version to a few hours ago, so you
        might not have got that yet if you went to the v10 branch.

        On 09/30/2015 01:19 PM, Karl Fant wrote:

        Hi Stephen

        Thank you. I downloaded from github this morning which said it was
        updated 17 hours ago and while this is all new to me I think I did the
        download and install correctly. I there anyway to make sure that I am
        actually executing the iverilog with the patch from my terminal window?

        I am still getting the same error with make steerD

        twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        sh: line 1: 86926 Done /usr/local/lib/ivl/ivlpp -L
        -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg257140c54"
        -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg57140c54"
        -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli57140c54"
        86927 Abort trap: 6 | /usr/local/lib/ivl/ivl
        -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh57140c54"
        -C"/usr/local/lib/ivl/vvp.conf" -- -
        make: *** [steerD] Error 134
        karlfansmbp1617:steering karlfant$ iverilog -v
        Icarus Verilog version 10.0 (stable) (v10_0)

        Karl Fant
        fant@theseusresearch.com

        On Sep 30, 2015, at 9:56 AM, Stephen Williams stevewilliams@users.sf.net
        stevewilliams@users.sf.net wrote:

        status: open --> closed-fixed
        [bugs:#996] <http://sourceforge.net/p/iverilog/bugs/996/> compiler
        crashes with larger program
        
        Status: closed-fixed
        Group: devel
        Created: Tue Sep 29, 2015 06:05 PM UTC by Karl Fant
        Last Updated: Wed Sep 30, 2015 12:47 AM UTC
        Owner: Stephen Williams
        Attachments:
        
        sandbox 6 steering.zip (3.1 MB; application/zip)
        Compiler crashes.
        
        MAC OS X 10.9.5 verilog 0.9.7
        
        The code is attached.
        
        In the make file steerD crashes the compiler and steerD2 a trimmed
        down version of steerD works correctly.
        SteerD has 4 similar code segments. Any two will not crash the
        compiler while and three or more will crash the compiler. SteerD2 is
        a program reduced to two of the code segments.
        
        make steerD crashes thus.
        
        twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L
        -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c"
        -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c"
        -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
        48679 Abort trap: 6 | /usr/local/lib/ivl/ivl
        -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c"
        -C"/usr/local/lib/ivl/vvp.conf" -- -
        make: *** [steerD] Error 134
        karlfansmbp1617:steering karlfant$
        
        make steerD2 runs correcly thus
        
        twoD_steer32D2.v:517: warning: Couldn't build unique name for
        unnamed generate block - using internal name $gen9
        twoD_steer32D2.v:517: warning: Couldn't build unique name for
        unnamed generate block - using internal name $gen9
        VVP -n twoD_steer32D2
        VCD info: dumpfile twoD_steer32D2.vcd opened for output.
        pass
        pass
        karlfansmbp1617:steering karlfant$
        
        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/iverilog/bugs/996/
        
        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/
        

        [bugs:#996] http://sourceforge.net/p/iverilog/bugs/996/ compiler
        crashes with larger program

        Status: closed-fixed
        Group: devel
        Created: Tue Sep 29, 2015 06:05 PM UTC by Karl Fant
        Last Updated: Wed Sep 30, 2015 04:56 PM UTC
        Owner: Stephen Williams
        Attachments:

        Compiler crashes.

        MAC OS X 10.9.5 verilog 0.9.7

        The code is attached.

        In the make file steerD crashes the compiler and steerD2 a trimmed down
        version of steerD works correctly.
        SteerD has 4 similar code segments. Any two will not crash the compiler
        while and three or more will crash the compiler. SteerD2 is a program
        reduced to two of the code segments.

        make steerD crashes thus.

        twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L
        -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c"
        -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c"
        -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
        48679 Abort trap: 6 | /usr/local/lib/ivl/ivl
        -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c"
        -C"/usr/local/lib/ivl/vvp.conf" -- -
        make: *** [steerD] Error 134
        karlfansmbp1617:steering karlfant$

        make steerD2 runs correcly thus

        twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed
        generate block - using internal name $gen9
        VVP -n twoD_steer32D2
        VCD info: dumpfile twoD_steer32D2.vcd opened for output.
        pass
        pass
        karlfansmbp1617:steering karlfant$


        Sent from sourceforge.net because you indicated interest in
        https://sourceforge.net/p/iverilog/bugs/996/

        To unsubscribe from further messages, please visit
        https://sourceforge.net/auth/subscriptions/

        --
        Steve Williams "The woods are lovely, dark and deep.
        steve at icarus.com But I have promises to keep,
        http://www.icarus.com and lines to code before I sleep,
        http://www.picturel.com And lines to code before I sleep."

         

        Related

        Bugs: #996

        • Karl Fant

          Karl Fant - 2015-09-30

          got it and it works. Thanks

          Karl Fant
          fant@theseusresearch.com

          On Sep 30, 2015, at 2:22 PM, Stephen Williams stevewilliams@users.sf.net wrote:

          The devel version (git master) would have reported as
          version 11.0 (devel), so you are still running version 10.
          I ported the patch to version to a few hours ago, so you
          might not have got that yet if you went to the v10 branch.

          On 09/30/2015 01:19 PM, Karl Fant wrote:

          Hi Stephen

          Thank you. I downloaded from github this morning which said it was
          updated 17 hours ago and while this is all new to me I think I did the
          download and install correctly. I there anyway to make sure that I am
          actually executing the iverilog with the patch from my terminal window?

          I am still getting the same error with make steerD

          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          sh: line 1: 86926 Done /usr/local/lib/ivl/ivlpp -L
          -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg257140c54"
          -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg57140c54"
          -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli57140c54"
          86927 Abort trap: 6 | /usr/local/lib/ivl/ivl
          -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh57140c54"
          -C"/usr/local/lib/ivl/vvp.conf" -- -
          make: *** [steerD] Error 134
          karlfansmbp1617:steering karlfant$ iverilog -v
          Icarus Verilog version 10.0 (stable) (v10_0)

          Karl Fant
          fant@theseusresearch.com

          On Sep 30, 2015, at 9:56 AM, Stephen Williams stevewilliams@users.sf.net
          stevewilliams@users.sf.net wrote:

          status: open --> closed-fixed
          [bugs:#996] http://sourceforge.net/p/iverilog/bugs/996/ compiler
          crashes with larger program

          Status: closed-fixed
          Group: devel
          Created: Tue Sep 29, 2015 06:05 PM UTC by Karl Fant
          Last Updated: Wed Sep 30, 2015 12:47 AM UTC
          Owner: Stephen Williams
          Attachments:

          sandbox 6 steering.zip (3.1 MB; application/zip)
          Compiler crashes.

          MAC OS X 10.9.5 verilog 0.9.7

          The code is attached.

          In the make file steerD crashes the compiler and steerD2 a trimmed
          down version of steerD works correctly.
          SteerD has 4 similar code segments. Any two will not crash the
          compiler while and three or more will crash the compiler. SteerD2 is
          a program reduced to two of the code segments.

          make steerD crashes thus.

          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L
          -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c"
          -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c"
          -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
          48679 Abort trap: 6 | /usr/local/lib/ivl/ivl
          -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c"
          -C"/usr/local/lib/ivl/vvp.conf" -- -
          make: *** [steerD] Error 134
          karlfansmbp1617:steering karlfant$

          make steerD2 runs correcly thus

          twoD_steer32D2.v:517: warning: Couldn't build unique name for
          unnamed generate block - using internal name $gen9
          twoD_steer32D2.v:517: warning: Couldn't build unique name for
          unnamed generate block - using internal name $gen9
          VVP -n twoD_steer32D2
          VCD info: dumpfile twoD_steer32D2.vcd opened for output.
          pass
          pass
          karlfansmbp1617:steering karlfant$

          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/iverilog/bugs/996/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/
          [bugs:#996] http://sourceforge.net/p/iverilog/bugs/996/ compiler
          crashes with larger program

          Status: closed-fixed
          Group: devel
          Created: Tue Sep 29, 2015 06:05 PM UTC by Karl Fant
          Last Updated: Wed Sep 30, 2015 04:56 PM UTC
          Owner: Stephen Williams
          Attachments:

          sandbox 6 steering.zip
          https://sourceforge.net/p/iverilog/bugs/996/attachment/sandbox%206%20steering.zip
          (3.1 MB; application/zip)
          Compiler crashes.

          MAC OS X 10.9.5 verilog 0.9.7

          The code is attached.

          In the make file steerD crashes the compiler and steerD2 a trimmed down
          version of steerD works correctly.
          SteerD has 4 similar code segments. Any two will not crash the compiler
          while and three or more will crash the compiler. SteerD2 is a program
          reduced to two of the code segments.

          make steerD crashes thus.

          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L
          -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c"
          -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c"
          -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
          48679 Abort trap: 6 | /usr/local/lib/ivl/ivl
          -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c"
          -C"/usr/local/lib/ivl/vvp.conf" -- -
          make: *** [steerD] Error 134
          karlfansmbp1617:steering karlfant$

          make steerD2 runs correcly thus

          twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed
          generate block - using internal name $gen9
          VVP -n twoD_steer32D2
          VCD info: dumpfile twoD_steer32D2.vcd opened for output.
          pass
          pass
          karlfansmbp1617:steering karlfant$

          Sent from sourceforge.net because you indicated interest in
          https://sourceforge.net/p/iverilog/bugs/996/

          To unsubscribe from further messages, please visit
          https://sourceforge.net/auth/subscriptions/

          --
          Steve Williams "The woods are lovely, dark and deep.
          steve at icarus.com But I have promises to keep,
          http://www.icarus.com and lines to code before I sleep,
          http://www.picturel.com And lines to code before I sleep."

          [bugs:#996] compiler crashes with larger program

          Status: closed-fixed
          Group: devel
          Created: Tue Sep 29, 2015 06:05 PM UTC by Karl Fant
          Last Updated: Wed Sep 30, 2015 04:56 PM UTC
          Owner: Stephen Williams
          Attachments:

          sandbox 6 steering.zip (3.1 MB; application/zip)
          Compiler crashes.

          MAC OS X 10.9.5 verilog 0.9.7

          The code is attached.

          In the make file steerD crashes the compiler and steerD2 a trimmed down version of steerD works correctly.
          SteerD has 4 similar code segments. Any two will not crash the compiler while and three or more will crash the compiler. SteerD2 is a program reduced to two of the code segments.

          make steerD crashes thus.

          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
          twoD_steer32D.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
          sh: line 1: 48678 Done /usr/local/lib/ivl/ivlpp -L -F"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg230c32d7c" -f"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlg30c32d7c" -p"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrli30c32d7c"
          48679 Abort trap: 6 | /usr/local/lib/ivl/ivl -C"/var/folders/bv/pnxrttkn3znfyrbrbfdz4mpr0000gn/T//ivrlh30c32d7c" -C"/usr/local/lib/ivl/vvp.conf" -- -
          make: *** [steerD] Error 134
          karlfansmbp1617:steering karlfant$

          make steerD2 runs correcly thus

          twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
          twoD_steer32D2.v:517: warning: Couldn't build unique name for unnamed generate block - using internal name $gen9
          VVP -n twoD_steer32D2
          VCD info: dumpfile twoD_steer32D2.vcd opened for output.
          pass
          pass
          karlfansmbp1617:steering karlfant$

          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/iverilog/bugs/996/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

           

          Related

          Bugs: #996


Log in to post a comment.