Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 09 Jul 2015 10:04:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 197035] sysutils/bbcp:  segmentation fault and core dump when running latest version (20150113)
Message-ID:  <bug-197035-13-tRXxcIqnyo@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-197035-13@https.bugs.freebsd.org/bugzilla/>
References:  <bug-197035-13@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197035

lampa@fit.vutbr.cz changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |lampa@fit.vutbr.cz

--- Comment #6 from lampa@fit.vutbr.cz ---
Problem is probably with ipv6 bcpp code, try -4 argument

The reason of core dump is:

 n = getaddrinfo(iP, 0, hostHints, &rP);

It fails with n==3 (EAI_BADFLAGS) and then MyHost is NULL which results 
in segmentation fault in strdup().

The reason of getaddrinfo failure is that hostHints.ai_flags contains
AI_V4MAPPED | AI_CANONNAME 
AI_V4MAPPED flag is rejected if net.inet6.v6only==1

But fixing this was not sufficient, remote bcpp started listening on TCP6
socket, but local bcpp couldn't connect.

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-197035-13-tRXxcIqnyo>