user [EMAIL PROTECTED]
usertag 173975 pending-close
found 173975 1.13.25
thanks

#173975 - [SEGFAULT] dpkg: debug message causes segfault when installing
http://bugs.debian.org/173975

Hello,

Thanks for reporting this, and sorry for the huge delay.  (The state of
the dpkg BTS page makes it hard to keep track of bugs and even harder to
work on older ones).

I don't think this is a dpkg bug.  First, notice that dpkg actually
continues running for a short while, with the error message:
  subprocess post-installation script killed by signal (Segmentation fault)
This seems to indicate a problem with the package's postisnt script,
rather than with dpkg.  Indeed, lib/mlib.c shows that this is what
happens (and happens only) when the forked process is wait()ed on, and
its exit status indicates that it was killed, by a signal (and in this
case helpfull indicates that core was dumped).

Notice also that the debug output by preexecscript is:

  if (f_debug & dbg_scripts) {
    fprintf(stderr,"D0%05o: fork/exec %s (",dbg_scripts,path);
    while (*++argv) fprintf(stderr," %s",*argv);
    fputs(" )\n",stderr);
  }

Here, argv[0] is never dereferenced; the pointer is incremented first.

I think this bug can be closed, or at least reassigned from dpkg?

Justin



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to