[Bug 2019852] Re: nbd-server hangs after fork

Steve Langasek 2019852 at bugs.launchpad.net
Mon May 22 20:14:56 UTC 2023


** Changed in: nbd (Ubuntu Mantic)
       Status: Triaged => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2019852

Title:
  nbd-server hangs after fork

Status in nbd package in Ubuntu:
  Fix Committed
Status in nbd source package in Lunar:
  Triaged
Status in nbd source package in Mantic:
  Fix Committed

Bug description:
  [Impact]
  Glib 2.76.0 reworked the implementation of GThreadPool, which nbd uses, in ways that it now no longer works if the treadpool is initialized before a fork() call, but used afterwards (which nbd used to do). A result of this bug in nbd is that, when run against glib 2.76.0 or above, it will accept() a connection from a client but then just sit there and never reply to any message from the client.

  [Test plan]
  The build contains a test which calls nbd-tester-client against the newly-built nbd-server. If the bug is still present, the test suite will fail. If the bug is not present, the test suite will complete successfully.

  [Original bug description]
  After updating to lunar, my nbd-server stopped working (it accepts connections, but the forked nbd-server just hangs and no traffic goes in or out)

  I tried building latest nbd (3.25) myself and the problem seems to be
  solved.

  Its changelog says
  - nbd-server now works as expected when compiled against glib >= 2.76.

  So I suppose an updated version is needed.

  Thanks!

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/nbd/+bug/2019852/+subscriptions




More information about the Ubuntu-sponsors mailing list