tag 18955 + moreinfo thanks On Fri, Apr 18, 2003 at 08:12:28PM +0200, Dennis Brakhane wrote: > I already filed a bugreport against dpkg, but maybe you could find the > reason for the segfault, as xlibs is the only package where i found the > following behaviour: > > Installing xlibs via dpkg doesn't lead to success, as many files are > missing after "successful" installation, i suspect that postinst fails > silently, because if i install xlibs passing -D2 to dpkg (and only if i > pass -D2), dpkg tells me that postinst segfaults. > > using strace dpkg -i xlibs... (without -D2) reveals: > > [...] > stat64("/var/lib/dpkg/info/xlibs.postinst", {st_mode=S_IFREG|0755, > st_size=7196, ...}) = 0 > fork() = 13629 > rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0 > rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0 > wait4(13629, [WIFEXITED(s) && WEXITSTATUS(s) == 0], 0, NULL) = 13629 > --- SIGCHLD (Child exited) @ 0 (0) --- > [...] > > It appears xlibs.postinst exists before it performs anything. This information is not sufficient. dpkg spawns all kinds of subprocesses, so you need to use the -f or -ff options to strace. However, a better debugging method, at least initially, might simply be to edit /var/lib/dpkg/info/xlibs.postinst and put the following at the top of the script on a line by itself: set -x That will turn on the shell's debugging option. -- G. Branden Robinson | I've made up my mind. Don't try to Debian GNU/Linux | confuse me with the facts. branden@debian.org | -- Indiana Senator Earl Landgrebe http://people.debian.org/~branden/ |
Attachment:
pgpwDw3RqEMUk.pgp
Description: PGP signature