Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables symbox has different size in shared object
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1555

PostPosted: Mon Dec 09, 2024 4:41 pm    Post subject: iptables symbox has different size in shared object Reply with quote

this started happening after my world update, I have not changed any use flags
Code:
t14 ~ # iptables -L
iptables: Symbol `xtables_chain_protos' has different size in shared object, consider re-linking
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
free(): invalid pointer
Aborted (core dumped)
t14 ~ # emerge iptables -pv

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 0.83 s (backtrack: 0/20).

[ebuild   R    ] net-firewall/iptables-1.8.11:0/1.8.3::gentoo  USE="-conntrack -netlink -nftables -pcap -static-libs -test" 0 KiB

Back to top
View user's profile Send private message
nox23
n00b
n00b


Joined: 15 Jul 2012
Posts: 41

PostPosted: Tue Dec 10, 2024 1:16 am    Post subject: Reply with quote

It could be kernel related. (incomplete, missing symbol, ...)
Are your kernel, kernel's modules, initrd, ... synchronized to the same version ?
Is it custom kernel ? If so, consider recompiling, reinstalling, regenerate initramfs ?
Beforehand backup your kernel's config and run make distclean or don't forget to run make clean between config changes.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5219
Location: Bavaria

PostPosted: Tue Dec 10, 2024 1:38 am    Post subject: Reply with quote

Hmmm ... maybe sync portage and update iptables again, because "eix" tells me there is a version 1.8.11-r1 now available
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Adel Ahmed
Veteran
Veteran


Joined: 21 Sep 2012
Posts: 1555

PostPosted: Wed Dec 11, 2024 7:08 pm    Post subject: Reply with quote

one kernel and sytem update later and the problem persists:
Code:
t14 /usr/src/linux # uname -a
Linux t14 6.12.4-gentoo #1 SMP PREEMPT_DYNAMIC Wed Dec 11 20:40:16 EET 2024 x86_64 12th Gen Intel(R) Core(TM) i7-1270P GenuineIntel GNU/Linux
t14 /usr/src/linux # eselect kernel list
Available kernel symlink targets:
  [1]   linux-6.12.4-gentoo *
t14 /usr/src/linux # iptables -L
iptables: Symbol `xtables_chain_protos' has different size in shared object, consider re-linking
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         
ACCEPT     iptables --  anywhere             anywhere           
ACCEPT     iptables --  anywhere             anywhere           
ACCEPT     iptables --  anywhere             anywhere           

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         
free(): invalid pointer
Aborted
Back to top
View user's profile Send private message
nox23
n00b
n00b


Joined: 15 Jul 2012
Posts: 41

PostPosted: Thu Dec 12, 2024 1:39 am    Post subject: Reply with quote

Maybe it's time to file a bug.
- Try safer CFLAGS
- Install app-portage/gentoolkit and run revdep-rebuild -pv to see eventual linking consistency problem
- Run strace iptables -L and see if you can get a more detailed error
- Try a previous version of iptables
- Provide iptables ruleset
- Report to bugs.gentoo.org
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9617
Location: beyond the rim

PostPosted: Thu Dec 12, 2024 3:56 pm    Post subject: Reply with quote

Kernel should not impact this. xtables_chain_protos is a variable defined in libxtables which maps the names of various IP protocols to their internal IDs.
libxtables is part of iptables as far as upstream is concerned, not sure how things are packages in Gentoo these days though.

Maybe you can find some useful information at https://stackoverflow.com/questions/15054973/c-symbol-has-different-size-in-shared-object which describes the same error in a different situation.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5931

PostPosted: Sat Dec 14, 2024 7:50 pm    Post subject: Reply with quote

rebuild iptables, it should solve your issue
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum