bugGNU tar - Bugs: bug #64533, Coredump when using tar in a nixos...


bug #64533: Coredump when using tar in a nixos build

Submitter:  Steve Dierker <steved>
Submitted:  Wed 09 Aug 2023 11:36:39 AM UTC
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup

Wed 09 Aug 2023 02:10:12 PM UTC, comment #2: 

Thanks for reporting. Coredump is useless without a binary used.  Even with that binary it would be of no use if the binary was built without debugging information.  So that, unfortunately, this gives no information on where the bug might be or how to trigger it.

Sergey Poznyakoff <gray>
Group administrator
Wed 09 Aug 2023 12:11:39 PM UTC, comment #1: 

It might be that fakechroot is the initial cause. See https://github.com/dex4er/fakechroot/issues/114

Steve Dierker <steved>
Wed 09 Aug 2023 11:36:39 AM UTC, original submission:  

I hope this is the right place. I encountered the bug when using `nix build` to build a layered Docker image. I asked in the NixOS official Matrix room and they pointed me here to open a bug and include the coredump. The log message Nix gives me is:

* buffer overflow detected *: terminated
bash: line 9:   162 Aborted                 (core dumped) tar --sort name --numeric-owner --mtime "@$SOURCE_DATE_EPOCH" --hard-dereference -cf $out/layer.tar .

The coredump is attached.


Steve Dierker <steved>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by gray (Posted a comment)
  • -email is unavailable- added by steved (Submitted the item)

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.


    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-08-09 gray StatusNone Postponed
    2023-08-09 steved Attached File- Added core._nix_store_z7ziky1qlp3qajmrri2flizfhm0z42gk-gnutar-1_34_bin_tar.30001.fdc0929c-a2b8-43f1-b697-65504f9d2f3a.74018.56419, #55018

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code