<html>
    <head>
      <base href="https://bugzilla.netfilter.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Buggy parsing of malformed rule within implicit chain causes assertion and core dump"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1485">1485</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Buggy parsing of malformed rule within implicit chain causes assertion and core dump
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>nftables
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P5
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>nft
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pablo@netfilter.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>kfm@plushkava.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>For example:-

# nft add table ip t
# nft add chain ip t c
# nft add rule ip t c tcp dport 80 jump { ip saddr 127.0.0.1 daddr 127.0.0.1 }
nft: parser_bison.y:75: close_scope: Assertion `state->scope > 0' failed.
Aborted (core dumped)

Eschewing the use of the implicit chain results in a proper error message:-

# nft add rule ip t c tcp dport 80 ip saddr 127.0.0.1 daddr 127.0.0.1
Error: syntax error, unexpected daddr, expecting end of file or newline or
semicolon
add rule ip t c tcp dport 80 ip saddr 127.0.0.1 daddr 127.0.0.1</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>