* picca <[email protected]> [2025-06-23 11:22]:
git clone https://salsa.debian.org/picca/pkg-haskell-toolsto reproduce the issue create a p directory in the repository cd pkg-haskell-tools mkdir p cd p && apt source ufo-core cd .. cabal run make-all -- --unshare
Thanks, I was able to reproduce this after apt build-dep pkg-haskell-tools and installing some more packages. The problem is that make-all leaks file descriptors: $ ls -l /proc/423642/fd/ lr-x------ 1 jspricke jspricke 64 23. Jun 13:30 0 -> 'pipe:[412637]' l-wx------ 1 jspricke jspricke 64 23. Jun 13:30 1 -> 'pipe:[418570]' l-wx------ 1 jspricke jspricke 64 23. Jun 13:30 2 -> 'pipe:[418556]' lr-x------ 1 jspricke jspricke 64 23. Jun 13:30 3 -> /usr/bin/mmdebstrap lrwx------ 1 jspricke jspricke 64 23. Jun 13:30 4 -> /home/jspricke/pkg-haskell-tools/lab/.shake/.shake.lock lrwx------ 1 jspricke jspricke 64 23. Jun 13:30 5 -> /home/jspricke/pkg-haskell-tools/lab/.shake/.shake.database lr-x------ 1 jspricke jspricke 64 23. Jun 13:30 6 -> /home/jspricke/pkg-haskell-tools/lab/cache/binaries/ufo-core.txt (I used a sleep(9999); at the beginning of mmdebstrap to get this.) I guess you want to set close_fds here: https://hackage.haskell.org/package/process-1.0.1.1/docs/System-Process.html#t%3ACreateProcessMaybe mmdebstrap could also close the fie descriptors before running the shell commands @josch?
* picca <[email protected]> [2025-06-23 11:27]:
You need also to add this in your sbuild configuration$unshare_bind_mounts = [ { directory => "/dev/shm", mountpoint => "/sharedshm" } ];
Can you give some reasoning why you want to do that?
signature.asc
Description: PGP signature

