Menu

#1028 "a;" outside a module causes compiler to segfault

devel
closed-works-for-me
nobody
None
5
2019-08-02
2018-04-17
No

This is on version 10.1, which I believe is the latest.

Related

Bugs: #1028

Discussion

  • Martin Whitaker

    Martin Whitaker - 2018-04-17

    I am unable to reproduce this. The code

    a;
    

    results in the error message

    -:1: error: variable declarations must be contained within a module.
    

    The compiler used to segfault on this code, but this was fixed just before the v10.0 release (bug #992).

    Can you provide a simple test case that demonstrates the fault you are seeing.

     
    • Theodore Dubois

      Theodore Dubois - 2018-04-17

      I am able to reproduce it on Mac on version 10.2, but not on Linux.

      ~Theodore

      On Apr 17, 2018, at 10:52 AM, Martin Whitaker martinwhitaker@users.sourceforge.net wrote:

      I am unable to reproduce this. The code

      a;

      results in the error message

      -:1: error: variable declarations must be contained within a module.

      The compiler used to segfault on this code, but this was fixed just before the v10.0 release (bug #992).

      Can you provide a simple test case that demonstrates the fault you are seeing.

      [bugs:#1028] "a;" outside a module causes compiler to segfault

      Status: open
      Group: devel
      Created: Tue Apr 17, 2018 12:11 AM UTC by Theodore Dubois
      Last Updated: Tue Apr 17, 2018 12:11 AM UTC
      Owner: nobody

      This is on version 10.1, which I believe is the latest.

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

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

       

      Related

      Bugs: #1028

      • Theodore Dubois

        Theodore Dubois - 2018-04-17

        The difference appears to be the version of bison used at compile time. macOS includes bison 2.3, and building with that version causes the segfault. Building with bison 3.0.4 works fine.

        ~Theodore

        On Apr 17, 2018, at 11:37 AM, Theodore Dubois tblodt@icloud.com wrote:

        I am able to reproduce it on Mac on version 10.2, but not on Linux.

        ~Theodore

        On Apr 17, 2018, at 10:52 AM, Martin Whitaker martinwhitaker@users.sourceforge.net wrote:

        I am unable to reproduce this. The code

        a;

        results in the error message

        -:1: error: variable declarations must be contained within a module.

        The compiler used to segfault on this code, but this was fixed just before the v10.0 release (bug #992).

        Can you provide a simple test case that demonstrates the fault you are seeing.

        [bugs:#1028] "a;" outside a module causes compiler to segfault

        Status: open
        Group: devel
        Created: Tue Apr 17, 2018 12:11 AM UTC by Theodore Dubois
        Last Updated: Tue Apr 17, 2018 12:11 AM UTC
        Owner: nobody

        This is on version 10.1, which I believe is the latest.

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

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

         

        Related

        Bugs: #1028

  • Martin Whitaker

    Martin Whitaker - 2019-08-02
    • status: open --> closed-works-for-me
     
  • Martin Whitaker

    Martin Whitaker - 2019-08-02

    I have added a note in the README file to alert users to the problem with bison 2.3.

     

Log in to post a comment.

MongoDB Logo MongoDB