From b8bbce1c9ffa929af0f56179527b45a8c0da62a7 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 6 Mar 2012 20:33:08 +0000 Subject: (SEGV handler) fix double segfault when text installer fails to init --- perl-install/install/install2.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'perl-install/install/install2.pm') diff --git a/perl-install/install/install2.pm b/perl-install/install/install2.pm index bf4a294d1..4fdba1f57 100644 --- a/perl-install/install/install2.pm +++ b/perl-install/install/install2.pm @@ -26,6 +26,7 @@ use any; use log; use fs; use fs::any; +use Scalar::Util qw(blessed dualvar); #-####################################################################################### @@ -320,7 +321,7 @@ sub main { $SIG{SEGV} = sub { my $msg = "segmentation fault: install crashed (maybe memory is missing?)\n" . backtrace(); log::l("$msg\n"); - $o and $o->ask_warn('', $msg); + blessed($o) and $o->ask_warn('', $msg); setVirtual(1); require install::steps_auto_install; install::steps_auto_install_non_interactive::errorInStep($o, $msg); -- cgit v1.2.1