Your message dated Sun, 4 Jan 2009 11:17:00 +0200
with message-id <[email protected]>
and subject line Re: Bug#173975: dpkg: debug message causes segfault when 
installing
has caused the Debian Bug report #173975,
regarding [SEGFAULT] dpkg: debug message causes segfault when installing
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
173975: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=173975
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: dpkg
Version: 1.10.9
Severity: minor

Installing a package with --debug=7777 causes a segfault.
Here is the last part of the error message:

Setting up libglib2.0-doc (2.0.7-1) ...
D000001: deferred_configure updating conffiles
D000002: fork/exec /var/lib/dpkg/info/libglib2.0-doc.postinst (dpkg: error 
processing libglib2.0-doc (--install):
 subprocess post-installation script killed by signal (Segmentation fault), 
core dumped
Errors were encountered while processing:
 libglib2.0-0
 libglib2.0-data
 libglib2.0-dbg
 libglib2.0-dev
 libglib2.0-doc

This is a bug in do_script() in main/help.c .  It says:

  if (!c1) {
    const char **narglist;
    for (r=0; arglist[r]; r++) ;
    narglist=nfmalloc((r+1)*sizeof(char*));
    for (r=1; arglist[r-1]; r++)
      narglist[r]= arglist[r];
    scriptexec= preexecscript(scriptpath,narglist);
    narglist[0]= scriptexec;
    execv(scriptexec,narglist);
    ohshite(desc,name);
  }

preexecscript() is called before narglist[0] is set, so
narglist[0] will contain garbage.

-- System Information
Debian Release: 3.0
Kernel Version: Linux grain 2.4.18 #1 Fri Jul 19 13:47:12 JST 2002 i686 unknown

Versions of the packages dpkg depends on:
ii  dselect        1.10.9         a user tool to manage Debian packages
ii  libc6          2.2.5-6        GNU C Library: Shared libraries and Timezone


--- End Message ---
--- Begin Message ---
Version: 1.13.2

Hi,

On Mon, 2002-12-23 at 02:38:31 +0900, Oohara Yuuma wrote:
> Package: dpkg
> Version: 1.10.9
> Severity: minor
> 
> Installing a package with --debug=7777 causes a segfault.
> Here is the last part of the error message:
> 
> Setting up libglib2.0-doc (2.0.7-1) ...
> D000001: deferred_configure updating conffiles
> D000002: fork/exec /var/lib/dpkg/info/libglib2.0-doc.postinst (dpkg: error 
> processing libglib2.0-doc (--install):
>  subprocess post-installation script killed by signal (Segmentation fault), 
> core dumped
> Errors were encountered while processing:
>  libglib2.0-0
>  libglib2.0-data
>  libglib2.0-dbg
>  libglib2.0-dev
>  libglib2.0-doc
> 
> This is a bug in do_script() in main/help.c .  It says:
> 
>   if (!c1) {
>     const char **narglist;
>     for (r=0; arglist[r]; r++) ;
>     narglist=nfmalloc((r+1)*sizeof(char*));
>     for (r=1; arglist[r-1]; r++)
>       narglist[r]= arglist[r];
>     scriptexec= preexecscript(scriptpath,narglist);
>     narglist[0]= scriptexec;
>     execv(scriptexec,narglist);
>     ohshite(desc,name);
>   }
> 
> preexecscript() is called before narglist[0] is set, so
> narglist[0] will contain garbage.

This got fixed in commit 00e5640a99be03aba40c9e08a663b90d8f8aa797,
for dpkg 1.13.2. The ChangeLog entry was:

2005-03-18  Scott James Remnant  <[email protected]>

        * src/help.c (preexecscript): The first member of argv is always
        NULL because it's filled in by the return value of this function,
        so increment argv first when debug-outputting maintainer script
        arguments.

Thus closing, and thanks for the report!

regards,
guillem


--- End Message ---

Reply via email to