After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350813 - Problem wrt a get command on an ipv6 link
Problem wrt a get command on an ipv6 link
Status: RESOLVED DUPLICATE of bug 683165
Product: gftp
Classification: Other
Component: general
2.0.18
Other OpenBSD
: Normal major
: 2.0.19
Assigned To: Brian Masney
Brian Masney
Depends on:
Blocks:
 
 
Reported: 2006-08-10 21:31 UTC by Alexandre Anriot
Modified: 2012-09-03 11:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Alexandre Anriot 2006-08-10 21:31:28 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.


  • #0 rfc959_ipv6_data_connection_new
    at rfc959.c line 834
  • #1 rfc959_get_file
    at rfc959.c line 1140
  • #2 gftp_get_file
    at protocols.c line 186
  • #3 gftp_transfer_file
    at protocols.c line 238
  • #4 gftpui_common_transfer_files
    at gftpui.c line 1360

print  request->current_hostp
$1 = (struct addrinfo *) 0x0
Comment 1 Brian Masney 2006-10-15 16:39:40 UTC
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
Comment 2 Alexandre Anriot 2006-10-25 12:40:25 UTC
Seems not; I tried and it crashed, and here is what naddy got:

  • #0 rfc959_ipv6_data_connection_new
    at rfc959.c line 880
  • #0 rfc959_ipv6_data_connection_new
    at rfc959.c line 880
  • #1 rfc959_data_connection_new
    at rfc959.c line 1014
  • #2 rfc959_get_file
    at rfc959.c line 1166
  • #3 gftp_get_file
    at protocols.c line 184
  • #4 gftp_transfer_file
    at protocols.c line 236
  • #5 _gftpui_common_trans_file_or_dir
    at gftpui.c line 1511
  • #6 gftpui_common_transfer_files
    at gftpui.c line 1563
  • #7 _gftpui_transfer_files
    at transfer.c line 682
  • #8 _thread_start
    at /usr/src/lib/libpthread/uthread/uthread_create.c line 244
  • #9 ??
  • #10 ??

(gdb) p request->current_hostp
$4 = (struct addrinfo *) 0x0

I didn't get the time to dig into the issue this time.
Comment 3 Alexander Koeppe 2012-09-03 11:19:45 UTC

*** This bug has been marked as a duplicate of bug 683165 ***