[GH-ISSUE #411] Double free #864

Closed
opened 2026-03-15 10:47:53 +03:00 by kerem · 3 comments
Owner

Originally created by @NorfairKing on GitHub (Jul 27, 2020).
Original GitHub issue: https://github.com/asciinema/asciinema/issues/411

I'm getting this error while running asciinema in a nix build:

efree(): double free detected in tcache 2

To reproduce, check this out:

github.com/NorfairKing/smos@3badab7a55

Then run

nix-build nix/pkgs.nix -A smosCasts

I'm not sure how/why this would happen because this project looks to be written in Python, which I thought was memory-safe...

Originally created by @NorfairKing on GitHub (Jul 27, 2020). Original GitHub issue: https://github.com/asciinema/asciinema/issues/411 I'm getting this error while running `asciinema` in a nix build: ``` efree(): double free detected in tcache 2 ``` To reproduce, check this out: https://github.com/NorfairKing/smos/commit/3badab7a55eaf8799445956682b32e445c95f097 Then run ``` nix-build nix/pkgs.nix -A smosCasts ``` I'm not sure how/why this would happen because this project looks to be written in Python, which I thought was memory-safe...
kerem closed this issue 2026-03-15 10:47:58 +03:00
Author
Owner

@NorfairKing commented on GitHub (Jul 28, 2020):

I managed to reproduce this problem without nix sometimes but I also noticed that this problem doesn't occur when I run the nix build locally (a machine with a screen) but it does occur when I run the nix build remotely (on a machine without a screen).

Edit: scratch that, the problem also occurs locally.

<!-- gh-comment-id:664936349 --> @NorfairKing commented on GitHub (Jul 28, 2020): I managed to reproduce this problem without nix _sometimes_ but I also noticed that this problem doesn't occur when I run the nix build locally (a machine with a screen) but it _does_ occur when I run the nix build remotely (on a machine without a screen). Edit: scratch that, the problem also occurs locally.
Author
Owner

@ku1ik commented on GitHub (Dec 29, 2020):

I haven't heard about this problem on other distros, it seems to me like this is nix-specific.

Were you able to pinpoint the problem? I'm afraid my nix skills are close to zero.

<!-- gh-comment-id:752042821 --> @ku1ik commented on GitHub (Dec 29, 2020): I haven't heard about this problem on other distros, it seems to me like this is nix-specific. Were you able to pinpoint the problem? I'm afraid my nix skills are close to zero.
Author
Owner

@NorfairKing commented on GitHub (Dec 29, 2020):

It's definitely not a nix-specific problem because the problem occurs without nix as well.
I ended up just not using asciinema rec but generating the casts myself.

<!-- gh-comment-id:752064633 --> @NorfairKing commented on GitHub (Dec 29, 2020): It's definitely not a nix-specific problem because the problem occurs without nix as well. I ended up just not using `asciinema rec` but generating the casts myself.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/asciinema#864
No description provided.