Re: dpkg segfault and internal debconf error with ucf-using package
> - Is the dpkg segfault probably a separate issue, or caused by the
> changed behavior of ucf (it didn't segfault in the original
> bugreport)?
dpkg segfault only in the debug mode.
# dpkg -i tetex-extra_2.0.2-8_all.deb
(Reading database ... 120127 files and directories currently installed.)
Preparing to replace tetex-extra 2.0.2-8 (using
tetex-extra_2.0.2-8_all.deb) ...
Unpacking replacement tetex-extra ...
Setting up tetex-extra (2.0.2-8) ...
Can't call method "description" on an undefined value at
/usr/share/perl5/Debconf/Question.pm line 76, <GEN0> line 1.
dpkg: error processing tetex-extra (--install):
subprocess post-installation script returned error exit status 9
Errors were encountered while processing:
tetex-extra
# dpkg -i -D7777 tetex-extra_2.0.2-8_all.deb
(...)
D000002: fork/exec /var/lib/dpkg/info/tetex-extra.postinst (dpkg: error
processing tetex-extra (--install):
subprocess post-installation script killed by signal (Segmentation fault)
Errors were encountered while processing:
tetex-extra
Please note I am not at all a perl coder... I had to ask help to add these
3 debug line in /usr/share/perl5/Debconf/Question.pm
74 sub description {
75 use Data::Dumper; // DEBUG
76 my $this=shift;
77 print Dumper($this); // DEBUG
78 print Dumper($this->template); // DEBUG
79 return $this->_expand_vars($this->template->description);
80 }
# dpkg -i tetex-extra_2.0.2-8_all.deb
(Reading database ... 120127 files and directories currently installed.)
Preparing to replace tetex-extra 2.0.2-8 (using
tetex-extra_2.0.2-8_all.deb) ...
Unpacking replacement tetex-extra ...
Setting up tetex-extra (2.0.2-8) ...
$VAR1 = bless( [
bless( {
'priority' => 2,
'name' => 1
}, 'pseudohash' ),
'ucf/title'
], 'Debconf::Question' );
$VAR1 = undef;
Can't call method "description" on an undefined value at
/usr/share/perl5/Debconf/Question.pm line 79, <GEN0> line 1.
In /var/lib/dpkg/info/ucf.templates:
Template: ucf/title
Type: title
Description: Modified configuration file
Description-fr.ISO-8859-15: Fichier de configuration modifié
Description-pt_BR.ISO-8859-1: Arquivo de configuração modificado
--
Benoît Sibaud
Reply to: