All of lore.kernel.org
 help / color / mirror / Atom feed
From: Francesco Ciocchetti <primero@fastwebnet.it>
To: netfilter-devel@lists.netfilter.org
Subject: libiptc ... and matches , seg fault
Date: Thu, 14 Jul 2005 20:21:32 +0200	[thread overview]
Message-ID: <42D6AD2C.5070304@fastwebnet.it> (raw)

Hi all ML.

I'm tryng to develop a small apps with libiptc copyng as much as
possible from iptables.c

i'm getting a segmentation fault when i call find_match with 'tcp' as
argument.

searching with gdb i found that :

my segfault arrives when in register_match

if (strcmp(me->version, program_version) != 0) (line 1052 of iptables.c
1.2.11)

Program received signal SIGSEGV, Segmentation fault.
0x0ff0b824 in strcmp () from /lib/tls/libc.so.6
(gdb) where
#0  0x0ff0b824 in strcmp () from /lib/tls/libc.so.6
#1  0x100083e8 in register_match ()
#2  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#3  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#4  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#5  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#6  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#7  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#8  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#9  0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#10 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#11 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#12 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#13 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#14 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#15 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#16 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#17 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#18 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#19 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
#20 0x0fe53584 in _init () from /lib/iptables/libipt_tcp.so
Previous frame inner to this frame (corrupt stack?)

If i missed some info don't esiatate to ask :)

anyone has some hints?

thx
Francesco

             reply	other threads:[~2005-07-14 18:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-14 18:21 Francesco Ciocchetti [this message]
2005-07-14 19:18 ` libiptc ... and matches , seg fault Tomáš Macek
2005-07-15  8:06   ` primero
2005-07-15  8:12     ` Jan Engelhardt
2005-07-15  9:17       ` primero
2005-07-15  9:46         ` Tomáš Macek
2005-07-15  9:57           ` Francesco Ciocchetti
2005-07-15 10:11             ` Patrick Schaaf
2005-07-15 10:29               ` Francesco Ciocchetti
2005-07-15 13:08         ` Jan Engelhardt

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42D6AD2C.5070304@fastwebnet.it \
    --to=primero@fastwebnet.it \
    --cc=netfilter-devel@lists.netfilter.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.