phpMyAdmin Script Failed To Update

SYSTEM INFORMATION
OS type and version: Debian 9
Webmin version: 1.973
Virtualmin version: 6.16 Pro
Related products version: n/a

Hi, I tried to update phpMyAdmin scripts this morning, got this:

Upgrade Scripts
Now upgrading phpMyAdmin to version 5.1.1 in 1 locations …
Installing in domain
HTTP/1.0 500 Perl execution failed Server: MiniServ/1.973 Date: Thu, 22 Jul 2021 22:51:12 GMT Content-type: text/html; Charset=utf-8 Connection: close
ERROR — PERL EXECUTION FAILED
panic: attempt to copy freed scalar 55d208fba560 to 55d208fb93f8 at /usr/share/webmin/web-lib-funcs.pl line 3353.

Is there a fix?

Hello,

Yes, there is a fix to this already. At the moment you would need to manually apply it by editing /usr/share/webmin/web-lib-funcs.pl file, updating the following subroutine:

sub to_ip6address
{
my ($host) = @_;
my @rv;
if (&check_ip6address($host)) {
	@rv = ( $host );	# Already in v6 format
	}
elsif (&check_ipaddress($host)) {
	@rv = ( );		# A v4 address cannot be v6
	}
elsif (!&supports_ipv6()) {
	@rv = ( );		# v6 lookups not supported
	}
else {
	# Perform IPv6 DNS lookup
	eval {
		my @ai = getaddrinfo($host, undef, AF_INET6(), SOCK_STREAM);
		while(@ai) {
			my ($inaddr, @newai);
			(undef, undef, undef, $inaddr, undef, @newai) = @ai;
			if ($inaddr) {
				my $addr;
				(undef, $addr) = unpack_sockaddr_in6($inaddr);
				push(@rv, inet_ntop(AF_INET6(), $addr));
				}
			@ai = @newai;
			}
		};
	}
return wantarray ? @rv : $rv[0];
}

… and restarting Webmin afterwards with /etc/webmin/restart.

FOLLOW-UP: This worked PERFECTLY, thanks again!!!

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.