#821194 libwx-perl: dobule free at exit because of envvars handling

Package:
libwx-perl
Source:
libwx-perl
Description:
interface to wxWidgets cross-platform GUI toolkit
Submitter:
Tobias Frost
Date:
2026-01-19 23:09:01 UTC
Severity:
important
Tags:
#821194#5
Date:
2016-04-16 15:15:55 UTC
From:
To:
libwx-perl FTBFS on hurd-i386 but built before.
Please take a look.

As this is preventing decrufting of wxwidgets3.0, I've filed an RM for this arch.
See #821189

#821194#10
Date:
2016-08-13 10:33:30 UTC
From:
To:
retitle 821194 libwx-perl: dobule free at exit because of envvars handling
severity 821194  important
tag 821194 + patch
thanks

Hi,

the issue here is Perl crashing when closing down, in particular it
happens in perl/perl.c:perl_destruct, down in the cleanup of the custom
environment: apparently the perl interpreter was not the only one to set
environment variables.  Indeed, looking down the road, wxApp::Initialize
in wxWidgets calls its own wxSetEnv (which uses setenv).
A similar issue was reported for the Inline::Python module [1][2], and
fixed [3] by setting PL_use_safe_putenv=1: Wx::Perl actually sets it,
but only with DEBUGGING defined as well (which IIRC is set only when Perl
is built in debugging mode).

While the crash seems to happen on Hurd only, running the tests under
valgrind in a current sid chroot shows that valgrind reports double
free cases. Hence, I'm attaching the following patch to just remove the
check on DEBUGGING, and use PL_use_safe_putenv as it should
(the !PERL_USE_SAFE_PUTENV check needs to stay for builds of Perl with
"safe putenv").

Can you please apply it for Debian, and forward it upstream?

[1] https://github.com/niner/inline-python-pm/issues/7
[2] https://github.com/niner/inline-python-pm/issues/9
[3] https://github.com/niner/inline-python-pm/commit/35db0d3109880b9104c0a9d2562520997825de0c

Thanks,

#821194#21
Date:
2017-10-10 05:51:32 UTC
From:
To:
This issue block the build of slic3r on hurd.  Did anyone have a chance
to check out the patch yet?

#821194#26
Date:
2026-01-19 22:43:19 UTC
From:
To:
Dear maintainer and hurd porters,

Does this package still have problems on the hurd? Build logs suggest that it is
building on the hurd.
Should the bug report be closed?

Regards,
João

#821194#31
Date:
2026-01-19 23:06:26 UTC
From:
To:
Hello,

João Pedro Malhado, le lun. 19 janv. 2026 22:43:19 +0000, a ecrit:

It's possibly building fine on the Hurd only by luck, the issue raised
by Pino might still be valid.

Samuel