Bug#669942: uscan fails because of signal handlers

Dominique Dumont dod at debian.org
Sat Apr 20 14:44:57 UTC 2013


Hello

Commenting out line 321 to 324 will work-around the issue regarding the thread 
error message.

These lines add a signal handler for __DIE__ and __WARN__. According to 
perlipc man page, using a filehandler in a signal handler is dangerous.
(print is used through dehs_die and dehs_output).

To issue an error message in a XML format for DEHS, it would be safer to 
create a my_die function that would be called instead of die.

This function could be something like:

sub my_die {
	my $msg = shift ;

	if ($dehs) {
		dehs_output($msg);
		exit 1;
     }
	else {
		die $msg ;
	}
}

If this idea is fine with uscan maitainer, I can prepare a patch.
 
Hope this helps


-- 
 https://github.com/dod38fr/   -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/  -o-   irc: dod at irc.debian.org



More information about the devscripts-devel mailing list