<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 - coredump in --optimize"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=1762">1762</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>coredump in --optimize
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>git (please specify your HEAD)
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86_64
          </td>
        </tr>

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

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </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>pgnd@dev-mail.net
          </td>
        </tr></table>
      <p>
        <div>
        <pre>#!/usr/sbin/nft -f

define wan = "eth0"
define lan = "eth1"
define vpn = "tun0"
define server = "10.10.10.1"


table nat {
        chain prerouting {
            type nat hook prerouting priority -100; policy accept;
            iifname $wan tcp dport 10000 dnat to $server:10000;
        }
        chain postrouting {
            type nat hook postrouting priority 100; policy accept;
            oifname $vpn masquerade
            oifname $wan masquerade
        }
}

checks ok, no error

        nft -c -f tmp.nft
                (empty)

but optimize fails

        nft: optimize.c:486: rule_build_stmt_matrix_stmts: Assertion `k >= 0'
failed.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>