Skip to content

Perl is broken in development container #490

@DRKV333

Description

@DRKV333

Description

The version of perl included in the current Flatcar development container was compiled wrong, and will immediately segfault under certain condition. This is actually a really old issue from CoreOS (coreos/bugs#2369), that was originally ignored, and has just been noticed and fixed in upstream not long ago (Perl/perl5#18739). This issue might be caused by the same problem: #307. Interestingly, a simple echo 'print("Hello, World!\n");' | perl is indeed not enough to trigger the segfault.

Impact

I'm trying to automate the build of zfs for Flatcar, and having to patch and rebuild perl every time is a bit of a pain. (https://github.com/lorenz/torcx-zfs/blob/cb9ad1fef25cda4dcb18935883151113af2f791d/build.sh#L13-L15)

Environment and steps to reproduce

  1. Enter development container with systemd-nspawn, as usual.
  2. Run perl -V
  3. Observe segfault.
Attempt to free unreferenced scalar: SV 0x55f7886da390 at /usr/lib64/perl5/5.26.2/strict.pm line 38.
Segmentation fault

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions