Attached backport of patch for latest stable 7.9-1+deb13u1.

I can confirm awstats is working again.

Best regards,

JK

On 29. 04. 26 10:32, Christian Marillat wrote:
On 29 avril 2026 09:55, Jan Korbel <[email protected]> wrote:

Package: awstats
Version: 7.9-1

Debian stable (13.4).

Hello.

Hi,

There is a bug in awstats which freezes process at some conditions
based on keyword detections. There is original bugreport:

https://github.com/eldy/AWStats/issues/250

Fix was already merged in 2024:

In awstats 8.0

Christian
--- /usr/bin/awstats.old	2026-05-21 09:09:01.000000000 +0200
+++ /usr/bin/awstats		2026-05-21 09:28:01.000000000 +0200
@@ -8366,7 +8366,7 @@
 		}
 		return;
 	}
-	if ( $val{$keyval} ) {    # Val is already in tree
+        if ( exists($val{$keyval}) ) {    # Val is already in tree
 		if ($Debug) { debug( "  val is already in tree", 4 ); }
 		$egal{$keytoadd} = $val{$keyval};
 		$val{$keyval}    = $keytoadd;
@@ -8413,7 +8413,7 @@
 	while ( $nextval{$valcursor} && ( $nextval{$valcursor} < $keyval ) ) {
 		$valcursor = $nextval{$valcursor};
 	}
-	if ( $nextval{$valcursor} )
+        if ( exists($nextval{$valcursor}) )
 	{    # keyval is between valcursor and nextval{valcursor}
 		$nextval{$keyval} = $nextval{$valcursor};
 	}
@@ -8441,7 +8441,7 @@
 	if ($Debug) {
 		debug( "   remove for lowerval=$lowerval: key=$keytoremove", 4 );
 	}
-	if ( $egal{$keytoremove} ) {
+        if ( exists($egal{$keytoremove}) ) {
 		$val{$lowerval} = $egal{$keytoremove};
 		delete $egal{$keytoremove};
 	}

Reply via email to