<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 - nft v0.3 - Segmentation fault when read input file specifies the "num" queue's option"
   href="https://bugzilla.netfilter.org/show_bug.cgi?id=984">984</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>nft v0.3 - Segmentation fault when read input file specifies the "num" queue's option
          </td>
        </tr>

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

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

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

        <tr>
          <th>OS</th>
          <td>Gentoo
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>blocker
          </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>lucazorzo@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=452" name="attach_452" title="Strace with "queue num 0"">attachment 452</a> <a href="attachment.cgi?id=452&action=edit" title="Strace with "queue num 0"">[details]</a></span>
Strace with "queue num 0"

Hello,
as described in the summary if the file passed to nft contains a "queue num x"
rule, nft segfauls with si_signo=SIGSEGV and si_code=SEGV_MAPERR, as you can
see in the attached strace files. Deleting the "num x" option solves the
problem.

Testing input file:

table ip filter {
  chain forward {
    type filter hook forward priority 0;
    queue num 0
  }
}

Environment ("-r*" releases can be gentoo specific):
- kernel: hardened-sources-3.17.1-r1
- nftables: nftables-0.3-r2
- gcc: gcc-4.7.3-r1

I found a similar problem in the wrong bugzilla:
<a href="https://bugs.launchpad.net/zope3/+bug/1353458">https://bugs.launchpad.net/zope3/+bug/1353458</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>