[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#279042: xdvi: xdvi.bin terminated abnormally: 11



On Mon, Nov 22, 2004 at 11:14:37AM +0100, Frank Küster wrote:
> reassign 279042 perl
> stop
> 
> Dear Perl maintainer,
> 
> we have here a bugreport about a Perl script that fails on one user's
> system. Unfortunately we do not know how to debug this, and it really
> seems to occurr in Perl.
 
> The script that fails is /usr/bin/xdvi from the tetex-bin package, a
> Perl wrapper script for /usr/bin/xdvi.bin, and according to a strace it
> fails before it even tries to call xdvi.bin. For your convenience, I
> attach again the strace output, and the script in case you do not have
> tetex-bin installed.

Hi,

I'm not starting BTS tennis, but this doesn't seem to have anything to
do with perl.

Looking at the end of the strace:

> pipe([3, 4])                            = 0
> fork()                                  = 829
> close(4)                                = 0
> rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
> rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
> waitpid(829, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV}], 0) = 829
> --- SIGCHLD (Child exited) @ 0 (0) ---
> rt_sigaction(SIGINT, {SIG_DFL}, NULL, 8) = 0
> rt_sigaction(SIGQUIT, {SIG_DFL}, NULL, 8) = 0
> read(3, "", 4)                          = 0
> close(3)                                = 0
> write(2, "xdvi: xdvi.bin terminated abnorm"..., 41) = 41
> exit_group(9)                           = ?

This shows that the wrapper script is doing a fork(), with the child
getting PID 829. Then the parent does a waitpid(), waiting for the
child to exit. Which it does, apparently with an abnormal exit code
(which is not shown in the trace).

The trace doesn't show the child process exec()ing xdvi.bin, because
strace(1) only traces the parent process unless called with '-f'.

If I understand correctly the relations between the return value and
errno here, xdvi.bin is exiting with the return value 11, as shown by
the error message) and with errno 9 ("Bad file number"), as shown by
the xdvi exit value and according to 'perldoc -f die'.

A 'strace -f' would show more, though.

Cheers,
-- 
Niko Tyni	ntyni@iki.fi



Reply to: