Bug 253509 - ftp-proxy not handling connections
Summary: ftp-proxy not handling connections
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: 13.0-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-14 14:32 UTC by Daniel Ponte
Modified: 2021-06-11 06:06 UTC (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Ponte 2021-02-14 14:32:44 UTC
stable/13-n244514-18097ee2fb7c

After updating to 13-STABLE from 12-STABLE, ftp-proxy no longer appears to function. Running it manually with -d -D7, it only prints its "listening" message and never anything else. Running it in ktrace only shows periodic kevent() calls and nothing else when a connection is made:

[...]
 57897 ftp-proxy GIO   fd 2 wrote 33 bytes
       "listening on 127.0.0.1 port 8021
       "
 57897 ftp-proxy RET   write 33/0x21
 57897 ftp-proxy CALL  kevent(0x5,0x800a4d000,0,0x800a4c000,0x40,0x7fffffffe690)
 57897 ftp-proxy STRU  struct kevent[] = {  }
 57897 ftp-proxy STRU  struct kevent[] = {  }
 57897 ftp-proxy RET   kevent 0
 57897 ftp-proxy CALL  kevent(0x5,0x800a4d000,0,0x800a4c000,0x40,0x7fffffffe690)
 57897 ftp-proxy STRU  struct kevent[] = {  }


It is definitely actually listening, and pf configured correctly to rdr to it, as stopping the service closes client connections.
Comment 1 Daniel Ponte 2021-02-14 16:20:06 UTC
Recompiling ftp-proxy linked instead to ports libevent (not libprivateevent1) resolves the issue on 13. The issue is contrib/pf/libevent/.
Comment 2 Hauke Fath 2021-05-17 16:05:17 UTC
Problem confirmed - coming from 11.1 to 13.0.

An ftp-proxy linked to pkgsrc libevent (the machine does not use ports) works fine.

Is there a perspective for a fix?