[Bug 197035] sysutils/bbcp: segmentation fault and core dump when running latest version (20150113)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Thu Jul 9 10:04:20 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197035

lampa at fit.vutbr.cz changed:

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

--- Comment #6 from lampa at 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.


More information about the freebsd-ports-bugs mailing list