Skip to content

"stack smashing detected" since recent 23.05 upstream change when entering nix-shell with buildFHSUserEnv #262080

@phip1611

Description

@phip1611

Describe the bug

I'm on a flake-based system with NixOS 23.05 on a x86_64 machine.

I have a reproducible bug that came in very lately in NixOS 23.05 stable. When opening a nix-shell in a specific project, the nix-shell itself creates a pkgs.buildFHSUserEnv with many inputs and end's up with the following error:

image

It's hard to create a minimal example and I can't provide you the original nix-shell as it relies on some company-internal Nix files.

I know that rev 5a237ae (nixos-23.05 branch) from October 7th works and the NixOS 23.05 branch head from October 18th doesn't work. I verified that the issue is not caused by the Linux kernel update from 6.5.5 to 6.5.7. I think it's glibc or another very basic component.

I tried to do some kind of "manual bisecting" by going commit by commit through the log and build my NixOS system based on that nixpkgs version, but this failed as my system tried to build like everything from nixpkgs, i.e., all the derivations aren't cached (anymore).

Steps To Reproduce

I'm sorry that I can't provide a real reproducer now due to the limitations mentioned above.

Expected behavior

A normal nix-shell should open.

Screenshots

image

Additional context

None.

Notify maintainers

Not sure who is in charge as it is not clear what the problem is.

Metadata

Please run nix-shell -p nix-info --run "nix-info -m" and paste the result.

 - system: `"x86_64-linux"`
 - host os: `Linux 6.1.58, NixOS, 23.05 (Stoat), 23.05.20231017.b5f8ec6`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.13.5`
 - channels(pschuster): `""`
 - channels(root): `""`
 - nixpkgs: `/nix/store/37yxpbic78zskxf2di9nbkf0673gjh1p-source`

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bugSomething is broken0.kind: regressionSomething that worked before working no longer
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions