[Bug 872] New: extra symbols in console output

bugzilla-daemon at netfilter.org bugzilla-daemon at netfilter.org
Tue Nov 12 00:12:17 CET 2013


https://bugzilla.netfilter.org/show_bug.cgi?id=872

           Summary: extra symbols in console output
           Product: nftables
           Version: unspecified
          Platform: x86_64
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P5
         Component: nft
        AssignedTo: pablo at netfilter.org
        ReportedBy: loki at lokis-chaos.de
   Estimated Hours: 0.0


nft shows extra symbols. I could reproduce this at least for iifname.
The extra symbols are not shown if the output is not the tty:


fwtest01 ~ # nft -i
nft> table filter
nft> add chain filter input
nft> add rule filter input meta iifname "lo" accept
nft> list table filter
table ip filter {
        chain input {
                 meta iifname "lo�.�" accept
        }
}
nft> 
fwtest01 ~ # nft list table filter -n  -a
table ip filter {
        chain input {
                 meta iifname "lo�V" accept # handle 2
        }
}
fwtest01 ~ # nft list table filter -n  -a | cat 
table ip filter {
        chain input {
                 meta iifname "lo" accept # handle 2
        }
}


i have tried to backtrace the error, and it looks like an optimizer error in
string_type_print (datatype.c:262):
Breakpoint 1, string_type_print (expr=0x63cc90) at src/datatype.c:257
257     {
(gdb) p expr
$1 = (const struct expr *) 0x63cc90
(gdb) p expr->len
$2 = 16
(gdb) p expr->value
$3 = {{_mp_alloc = 2, _mp_size = 1, _mp_d = 0x63c7f0}}
(gdb) p BITS_PER_BYTE
No symbol "BITS_PER_BYTE" in current context.
(gdb) s
261             mpz_export_data(data, expr->value, BYTEORDER_HOST_ENDIAN, len);
(gdb) p  len
$4 = <optimized out>

The nft util was compiled with gcc 4.6.3.

-- 
Configure bugmail: https://bugzilla.netfilter.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the netfilter-buglog mailing list