All of lore.kernel.org
 help / color / mirror / Atom feed
* libiptc ... and matches , seg fault
@ 2005-07-14 18:21 Francesco Ciocchetti
  2005-07-14 19:18 ` Tomáš Macek
  0 siblings, 1 reply; 10+ messages in thread
From: Francesco Ciocchetti @ 2005-07-14 18:21 UTC (permalink / raw)
  To: netfilter-devel

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

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-07-15 13:08 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-14 18:21 libiptc ... and matches , seg fault Francesco Ciocchetti
2005-07-14 19:18 ` 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

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.