Gregor,

Try the attached patch, You can also apply the patch manually to the installed Amanda/Debug.pm if you do not compile amanda yourself.

Post the complete debug file if it fail again.

Jean-Louis

On 12/12/2011 10:16 AM, [email protected] wrote:
Hi,

I'm using Amanda for 7 years now, and now the version 2.6.* does not compile anymore on linux. So I tried versions 3.2.* and 3.3.* , and every version I tried it segfaults on some point.
On amlabel, or amcheck or amdump.

I get errors like TypeError in method 'critical' , argument 1 of type char *

Best regards
Gregor

diff --git a/perl/Amanda/Debug.swg b/perl/Amanda/Debug.swg
index 7c51edf..d4fff6c 100644
--- a/perl/Amanda/Debug.swg
+++ b/perl/Amanda/Debug.swg
@@ -62,7 +62,7 @@ sub _my_die {
        my ($msg) = @_;
        chomp $msg;
        suppress_error_traceback();
-       critical(@_);
+       critical("$msg");
     }
 };
 $SIG{__DIE__} = \&_my_die;

Reply via email to