twosigma / nsncd

nscd-compatible daemon that proxies lookups, without caching
Apache License 2.0
59 stars 14 forks source link

New release for updated crates / GHA build failures #117

Open srd424 opened 3 months ago

srd424 commented 3 months ago

I run the provided debian package on Ubuntu 22.04 and find it very unstable - it often stops responding, or spins with 100% cpu etc. I've also seen segfaults and other random errors, e.g.:

Aug 04 02:00:01 xubuntu nsncd[441260]: free(): unaligned chunk detected in tcache 2

Before digging any further it would make sense to be running the latest code - I've tried forking the repo and tweaking the Github Actions but I can't seem to get a working build with either the stable or nightly rust toolchains. I would really appreciate it if someone who's more familiar with rust could do the necessary fix-ups and push a point release? Just in case any of the dependency bumps in crates etc have fixed some issue that my weird hacked-up system is triggering :)

srd424 commented 3 months ago

(I have just noticed that this system uses nss-extrausers, I should be able to replace that with nss-systemd, which might be an interesting/useful experiment.)

On Sun, 4 Aug 2024, 11:16 srd424, @.***> wrote:

I run the provided debian package on Ubuntu 22.04 and find it very unstable - it often stops responding, or spins with 100% cpu etc. I've also seen segfaults and other random errors, e.g.:

Aug 04 02:00:01 xubuntu nsncd[441260]: free(): unaligned chunk detected in tcache 2

Before digging any further it would make sense to be running the latest code - I've tried forking the repo and tweaking the Github Actions but I can't seem to get a working build with either the stable or nightly rust toolchains. I would really appreciate it if someone who's more familiar with rust could do the necessary fix-ups and push a point release? Just in case any of the dependency bumps in crates etc have fixed some issue that my weird hacked-up system is triggering :)

— Reply to this email directly, view it on GitHub https://github.com/twosigma/nsncd/issues/117, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB4TJUTITZXJH25PKALL6K3ZPX5PVAVCNFSM6AAAAABL6WVI6WVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2DOMBWG4YDONY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

leifwalsh commented 3 months ago

I can't seem to get a working build with either the stable or nightly rust toolchains

What build errors are you seeing? We do recommend debug builds for debugging, so while we could cut a new release I'd still rather figure out why you're having trouble building it on your own.

srd424 commented 3 months ago

I just hacked up your own GHA workflows! Nightly: https://github.com/srd424/nsncd/actions/runs/10235189099/job/28315666470#step:6:83 Stable: https://github.com/srd424/nsncd/actions/runs/10235156172/job/28315590851#step:6:254

Probably trivial to someone who understands the rust ecosystem, but I'm a bit of a dinosaur :(

srd424 commented 3 months ago

FWIW, I've converted the user records that were using nss-extrausers into json for nss-systemd instead, and dropped extrausers from nsswitch.conf - 24 hours should be enough to tell if it's any more stable.

srd424 commented 3 months ago

~36 hours without a crash, I'm going to tentatively call that fixed! My immediate need for a rebuild is therefore gone, feel free to close this, or alternatively leave it open as a placeholder for the build issues?

picnoir commented 3 months ago

The nightly build issue is related to https://github.com/rust-lang/rust/issues/127343