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

Launchpad Bug Tracker 2019852 at bugs.launchpad.net
Mon May 22 22:14:19 UTC 2023


This bug was fixed in the package nbd - 1:3.24-1.1ubuntu1

---------------
nbd (1:3.24-1.1ubuntu1) mantic; urgency=medium

  * cherry-pick patches 3cb679f4a97e1a54a7285ee1f22e2888c9d3b900 and
    a10d07b43fe5169cd295604632faf6a08c52f75b from upstream git HEAD to
    fix operation with glib >= 2.76.0. LP: #2019852.

 -- Wouter Verhelst <wouter at debian.org>  Fri, 19 May 2023 10:38:13 +0200

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

-- 
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 Released
Status in nbd source package in Lunar:
  Triaged
Status in nbd source package in Mantic:
  Fix Released

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