Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 587158 - net-firewall/fwbuilder-5.3.6 segfaults when editing NAT rules
Summary: net-firewall/fwbuilder-5.3.6 segfaults when editing NAT rules
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Kevin Bauman
URL: https://github.com/UNINETT/fwbuilder/...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2016-06-26 15:01 UTC by Alexander Wetzel
Modified: 2017-09-24 08:34 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Fix for problem (fwbuilder.patch,538 bytes, patch)
2016-06-26 15:01 UTC, Alexander Wetzel
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Wetzel 2016-06-26 15:01:24 UTC
Created attachment 438874 [details, diff]
Fix for problem

net-firewall/fwbuilder-5.3.6 in the tree is broken and can't edit nat rules.
It segfaults when adding new objects to NAT rules.

That is a known and fixed issue upstream:
https://github.com/UNINETT/fwbuilder/issues/5

The proposed fix is working for me:
https://github.com/UNINETT/fwbuilder/commit/d79acf40997d75f33513240543fd4d5862a4593b

Unfortunately the fix seems to be only in upstream git, but not in the packet gentoo is downloading from the archive (https://github.com/UNINETT/fwbuilder/archive/v5.3.6.tar.gz)
Comment 1 PetaMem R&D 2016-10-03 08:42:51 UTC
If this is known and fixed upstream, please:

1) put status of this ticket to CONFIRMED
2) either provide an update or a 9999 git version so one can update


Proposed fix works, but we want a solution within the distribution - don't we?



last lines of a strace in 5.3.6 NAT edit:


poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLIN|POLLOUT}])
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\22\0\332v\6\203\200\5\6\203\200\5\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 32
writev(6, [{iov_base="\33\0\2\0\354\370\362\255", iov_len=8}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 8
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\10\3\332v\355\370\362\255*\2\0\0\6\203\200\5\0\0\0\0d\10\217\4\366\377\366\377\20\0\2\2"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 96
recvmsg(6, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
poll([{fd=6, events=POLLIN|POLLOUT}], 1, -1) = 1 ([{fd=6, revents=POLLOUT}])
writev(6, [{iov_base="\212\7\2\0\7\203\200\5\23\0\3\0\6\203\200\5}\1\0\0\4\0\2\0\10\203\200\5\22\0\n\0"..., iov_len=116}, {iov_base=NULL, iov_len=0}, {iov_base="", iov_len=0}], 3) = 116
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\336v\6\203\200\5}\1\0\0\356\370\362\255\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 160
poll([{fd=6, events=POLLIN}], 1, -1)    = 1 ([{fd=6, revents=POLLIN}])
recvmsg(6, {msg_name=NULL, msg_namelen=0, msg_iov=[{iov_base="\34\0\341v\6\203\200\5d\1\0\0\356\370\362\255\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., iov_len=4096}], msg_iovlen=1, msg_controllen=0, msg_flags=0}, 0) = 512
recvmsg(6, {msg_namelen=0}, 0)          = -1 EAGAIN (Resource temporarily unavailable)
--- SIGSEGV {si_signo=SIGSEGV, si_code=SEGV_MAPERR, si_addr=0x38} ---
+++ killed by SIGSEGV +++
Segmentation fault
Comment 2 Sławomir Nizio 2017-04-11 14:51:47 UTC
bumping to 5.3.7 should fix several crashes (inc. the mentioned issue 5 which is closed):

https://github.com/fwbuilder/fwbuilder/issues/5
https://github.com/fwbuilder/fwbuilder/issues/9
Comment 3 Larry the Git Cow gentoo-dev 2017-09-24 08:34:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5f3b0c0a042d6ed032464bf97fd0eb6643d5628

commit f5f3b0c0a042d6ed032464bf97fd0eb6643d5628
Author:     Michael Palimaka <kensington@gentoo.org>
AuthorDate: 2017-09-24 08:25:36 +0000
Commit:     Michael Palimaka <kensington@gentoo.org>
CommitDate: 2017-09-24 08:33:46 +0000

    net-firewall/fwbuilder: version bump 5.3.7
    
    Closes: https://bugs.gentoo.org/587158
    Closes: https://bugs.gentoo.org/597608
    Closes: https://bugs.gentoo.org/599466
    Closes: https://bugs.gentoo.org/612306
    Package-Manager: Portage-2.3.8, Repoman-2.3.3

 net-firewall/fwbuilder/Manifest               |  1 +
 net-firewall/fwbuilder/fwbuilder-5.3.7.ebuild | 71 +++++++++++++++++++++++++++
 2 files changed, 72 insertions(+)