GNOME Bugzilla – Bug 350813
Problem wrt a get command on an ipv6 link
Last modified: 2012-09-03 11:19:45 UTC
A problem occurs while trying to fetch a file using an ipv6 connection, whatsoever the server, on OpenBSD -current (and it seems that Gentoo Linux is also affected). rfc959_connect() is entered and, as request->datafd > 0, is exited. But the "request" struct is only partially available in rfc959_ipv6_data_connection_new() and a SIGSEGV is thrown when trying to access request->current_hostp->ai_addrlen. The initial gftp_list_files() is working though. And if the test "if (request->datafd > 0) return (0);" in rfc959_connect() is commented out, a new connection is created and the problem does not occur.
+ Trace 70209
print request->current_hostp $1 = (struct addrinfo *) 0x0
This is fixed in CVS[1]. Can you please try that version and confirm? The gftp_request structure is copied whenever a file transfer is started. That element of the structure was not being copied, which was causing the segfault whenever a file was transferred. [1] http://gftp.org/faq.html#AEN58
Seems not; I tried and it crashed, and here is what naddy got:
+ Trace 78226
(gdb) p request->current_hostp $4 = (struct addrinfo *) 0x0 I didn't get the time to dig into the issue this time.
*** This bug has been marked as a duplicate of bug 683165 ***