Account registration has been disabled due to spammers, please send an email to bugzilla-account@netfilter.org to request your account, please also describe the bug you would like to report as a way to prove you are not a spammer :-)
Bug 910 - Segmentation Fault
Summary: Segmentation Fault
Status: RESOLVED FIXED
Alias: None
Product: conntrack-tools
Classification: Unclassified
Component: conntrack-daemon (show other bugs)
Version: unspecified
Hardware: x86_64 Debian GNU/Linux
: P5 normal
Assignee: netfilter buglog mailinglist
URL:
Depends on:
Blocks:
 
Reported: 2014-03-24 15:57 CET by jann
Modified: 2014-06-25 16:27 CEST (History)
1 user (show)

See Also:


Attachments
Configuration file for conntrackd (13.71 KB, application/octet-stream)
2014-03-24 15:57 CET, jann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jann 2014-03-24 15:57:37 CET
Created attachment 439 [details]
Configuration file for conntrackd

Version-Information:
Connection tracking userspace daemon v1.4.2. Licensed under GPLv2.
(C) 2006-2009 Pablo Neira Ayuso <pablo@netfilter.org>

Error:

Program received signal SIGSEGV, Segmentation fault.
0x0000000000414cdb in ct_build_u8 (b=22, n=0x635240, a=12, ct=0x127fe40) at build.c:49
49              memcpy(ptr, nfct_get_attr(ct, a), sizeof(uint8_t));

Stack trace:

#0  0x0000000000414cdb in ct_build_u8 (b=22, n=0x635240, a=12, ct=0x127fe40) at build.c:49
No locals.
#1  build_l4proto_icmp (ct=ct@entry=0x127fe40, n=n@entry=0x635240) at build.c:150
No locals.
#2  0x0000000000414f97 in ct2msg (ct=0x127fe40, n=n@entry=0x635240) at build.c:228
        l4proto = 58 ':'
#3  0x000000000040ed4e in cache_ct_build_msg (obj=0x179dd80, type=0) at cache-ct.c:326
        __net = "\020\000,\000\257\271JY\000\f\000\000dG\026z \001\a\300\000\b\000\005\000\000\001\230\000\005\000\002:\000\000\000\000\005\000\026\334\000\000\000\000\b\000\006\000\000\000\036\000\b\000\006\000\000\000<\000\b\000\f\212\372H\215\000\b\000\033ftp\000\000\b\000\006\000\000\000\035\000\006\000\017\000\000\000\000w\343H\215\000\b\000\033ftp\000\000\b\000\033ftp", '\000' <repeats 3984 times>
        __hdr = 0x635240
#4  0x00000000004136df in tx_queue_xmit (n=0x179ddb8, data=<optimized out>) at sync-ftfw.c:521
        cn = 0x179ddb8
        type = <optimized out>
        net = <optimized out>
#5  0x000000000040a55c in queue_iterate (b=0x658820, data=data@entry=0x0, iterate=iterate@entry=0x4136b0 <tx_queue_xmit>) at queue.c:179
        i = <optimized out>
        tmp = 0x658840
        n = <optimized out>
#6  0x000000000041302b in ftfw_xmit () at sync-ftfw.c:545
No locals.
#7  0x0000000000411fe5 in tx_queue_cb (data=<optimized out>) at sync-mode.c:356
No locals.
#8  0x000000000040dcf4 in select_main_step (next_alarm=0x7fffffffd290) at fds.c:126
        ret = <optimized out>
        readfds = {__fds_bits = {8192, 0 <repeats 15 times>}}
        cur = <optimized out>
        tmp = 0x658c20
#9  select_main_loop () at fds.c:147
        next_alarm = {tv_sec = 0, tv_usec = 999556}
        next = 0x7fffffffd290
#10 0x0000000000409094 in main (argc=<optimized out>, argv=<optimized out>) at main.c:428
        ret = <optimized out>
        i = <optimized out>
        action = -1
        config_file = "/etc/conntrackd/conntrackd.conf", '\000' <repeats 4064 times>
        type = 0
        u = {sysname = "Linux", '\000' <repeats 59 times>, nodename = "nat-1", '\000' <repeats 59 times>, 
          release = "3.2.0-4-amd64", '\000' <repeats 51 times>, version = "#1 SMP Debian 3.2.54-2", '\000' <repeats 42 times>, 
          machine = "x86_64", '\000' <repeats 58 times>, __domainname = "(none)", '\000' <repeats 58 times>}
        version = 3
        major = 2
        minor = 0

some more debug information:
 
(gdb) print ptr
$1 = <optimized out>
(gdb) print nfct_get_attr(ct, a)
$2 = 0
(gdb) print ct
$3 = (const struct nf_conntrack *) 0x127fe40
(gdb) print a
$4 = 12
Comment 1 Pablo Neira Ayuso 2014-06-25 16:21:31 CEST
Jann confirmed this resolved this problem. Closing this bug.