[Bug 1035512] Re: glibc detected *** dpkg-query: free(): invalid pointer: 0x00007f75dc7dcc84 ***

Launchpad Bug Tracker 1035512 at bugs.launchpad.net
Tue Oct 23 17:05:15 UTC 2012


This bug was fixed in the package dpkg - 1.16.9ubuntu1

---------------
dpkg (1.16.9ubuntu1) raring; urgency=low

  * Merge from Debian unstable.  Remaining changes:
    - Change the multiarch downgrade version checks in prerm/postrm
      from 1.16.2 to 1.16.0~ to reflect when multiarch landed in Ubuntu.
    - Migrate dpkg multiarch conffile (and other multi-arch-related
      conf settings) to the new DB with dpkg --add-architecture, but
      keep a copy of the old conffile if it was modified.
    - Out of paranoia, keep an option handler for foreign-architecture
      that informs people that they need to scrub their config files
      and upgrade, on the off chance that the above migration fails
      for some reason (this mitigates the chances of leaving users with
      a dpkg that fails to run due to a broken config).
    - Add DPKG_UNTRANSLATED_MESSAGES environment check so that higher-level
      tools can get untranslated dpkg terminal log messages while at the
      same time having translated debconf prompts.  This is useful for tools
      that hide the dpkg terminal by default and use apport for bug
      reporting with the untranslated error message.
    - Build-depend on gettext:any for cross-building support.
    - Apply patch from Steve McIntyre to special-case armhf/armel ELF
      objects in Shlibs/Objdump.pm, so we don't get incorrect deps.
    - lib/dpkg/pkg-spec.c: map unqualified package names of multiarch-same
      packages to the native arch instead of throwing an error, so that we
      don't break on upgrade when there are unqualified names stored in
      dpkg's own trigger database.
    - Add logic to the postinst to `dpkg --add-architecture i386' on new
      installs on amd64, and to also do so on upgrades from pre-conffile
      Ubuntu versions, mimicking our previous behaviour with the conffile.
    - Apply a workaround from mvo to consider RC packages as multiarch,
      during the dpkg consistency checks. (see LP: 1015567 and 1057367).

dpkg (1.16.9) unstable; urgency=low

  [ Raphaël Hertzog ]
  * Fix dpkg-source regression in "3.0 (quilt)" source packages while
    unapplying patches that remove all files in a directory. Closes: #683547
  * Fix segfault in field format parsing on empty strings, affecting
    «dpkg-query -W -f ''» and «dpkg-deb -W --showformat=''». LP: #1035512
  * Fix dpkg's French usage string which was missing the final “s“ in
    --print-foreign-architectures. Closes: #685863

  [ Guillem Jover ]
  * Use “statoverrides” instead of “statusoverrides” in dpkg-statoverride.
    Closes: #686995
  * Comment out dpkg(1) documentation about disabled --command-fd option.
    Closes: #685677
  * Cleanup dpkg-divert unit-test environment to avoid build failures.
    Closes: #687656
  * Fix update-alternatives test suite to behave correctly on non-Debian
    binary paths. Known to be affecting at least Gentoo and Mac OS X.
  * Do not leak subcall command arguments in update-alternatives.
  * Fix segfault on update-alternatives when passing --slave without any
    action at all. LP: #1037431
  * Fix memory leak in dpkg filesavespackage().
  * Do not print garbage (or worse) on dpkg shared conffile debug output.
  * Use a hash instead of a ref to a hash for keys() in Dpkg::BuildFlags
    get_feature_areas(). This causes compilation failures with older perl
    versions, which can be an issue with partial upgrades.
  * Fix filter subpattern debug output format string to print an actual
    value instead of just blanks.
  * Ignore trailing filter subpattern slashes on reinclusion comparison.
    This makes sure to reinclude directories previously excluded so that
    contained files marked for inclusion do not fail to unpack due to a
    missing directory. Closes: #688416
  * Do not consider obsolete conffiles as actively owned by the package.
    This ensures conffile entries are not misshandled nor mixed up when
    configuring packages owning the non-obsolete conffiles. Closes: #689836
    Based on a patch by Andreas Beckmann <debian at abeckmann.de>.
  * Properly mark in the database obsolete conffiles on package replaces.
  * Sync the Conffiles field values for all package instances. Because
    only the first package instance being configured will have a *.dpkg-new
    conffile available to be processed, the subsequent ones need to use the
    hash from the previously processed entries.
  * Fix logic for previously configured conffiles, so that the shared
    conffile checks actually work on reinstallation. Closes: #684776
  * Avoid info database corruption and bogus accesses on unknown format
    values, by always reading the format file and validating it.
  * Clarify that the most probable reason for multiarch database
    inconcistencies is due to upgrades from unofficial dpkg versions.
  * Only satisfy a dependency on a “Multi-Arch: foreign” if arch-unqualified.
  * Take architecture into account in virtual packages on remove and
    configure dpkg actions. Closes: #683411
  * Update update-alternatives --query format and examples in man page to
    match the implementation.
  * Add two missing 3rd person ‘s’ in dpkg-gensymbols(1). Closes: #689863
    Thanks to Paul Menzel <pm.debian at googlemail.com>.
  * Fix regression on old-style binNMUs for packages that specify an
    explicit binary version to dpkg-gencontrol, by always fixing up the
    source version. Closes: #690823

  [ Updated programs translations ]
  * Catalan (Guillem Jover).
  * Czech (Miroslav Kure).
  * Danish (Joe Dalton). Closes: #690808
  * French (Christian Perrier).
  * German (Sven Joachim).
  * Italian (Milo Casagrande).
  * Japanese (Kenshi Muto).
  * Polish (Michał Kułach). Closes: #690449
  * Portuguese (Miguel Figueiredo). Closes: #682582, #690431
  * Russian (Yuri Kozlov). Closes: #688050, #690415
  * Slovak (Ivan Masár). Closes: #690426
  * Swedish (Peter Krefting).
  * Thai (Theppitak Karoonboonyanan). Closes: #690678
  * Traditional Chinese (imacat). Closes: #687002

  [ Updated scripts translations ]
  * Polish (Michał Kułach). Closes: #683104
  * Spanish (Omar Campagne). Closes: #685297

  [ Updated dselect translations ]
  * Basque (Iñaki Larrañaga Murgoitio). Closes: #686421
  * Czech (Miroslav Kure).
  * Danish (Joe Dalton). Closes: #689820
  * Polish (Michał Kułach).

  [ Updated man page translations ]
  * French (Thomas Vincent, Sylvestre Ledru, Christian Perrier).
    Closes: #682978, #683221
  * German (Helge Kreutzmann).
  * Japanese (Hideki Yamane). Closes: #685103
  * Polish (Michał Kułach).
  * Spanish (Omar Campagne, Guillem Jover). Closes: #683514
  * Swedish (Peter Krefting).

dpkg (1.16.8) unstable; urgency=low

  [ Updated programs translations ]
  * Esperanto (Felipe Castro).
  * French (Christian Perrier).
  * Polish (Michał Kułach). Closes: #680561
  * Russian (Yuri Kozlov). Closes: #677850, #680411
  * Slovak (Ivan Masár).
  * Spanish (Javier Fernández-Sanguino)

  [ Updated man page translations ]
  * French (Christian Perrier).

  [ Updated scripts translations ]
  * French (Christian Perrier).
  * Russian (Yuri Kozlov).

  [ Updated dselect translations ]
  * Danish (Joe Dalton). Closes: #680108
  * Russian (Yuri Kozlov).
  * Traditional Chinese (Asho Yeh - 阿信).
 -- Adam Conrad <adconrad at ubuntu.com>   Tue, 23 Oct 2012 16:45:37 +0100

** Changed in: dpkg (Ubuntu)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/1035512

Title:
  glibc detected *** dpkg-query: free(): invalid pointer:
  0x00007f75dc7dcc84 ***

Status in “dpkg” package in Ubuntu:
  Fix Released

Bug description:
  ** I have not managed to use apport to report this (apport itself is
  crashing). I have attached the .crash and pasted the gdb backtrace
  below. **

  KERNEL: 3.5.0-7-generic #7-Ubuntu SMP Tue Jul 31 07:22:20 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux
  RELEASE:	12.10 (Quantal)

  The following is caused by invoking dpkg-query using double quotation
  marks (instead of single quotation marks) in the command syntax:

  sudo dpkg-query -W -f="${provides}" apt
  dpkg-query: error in show format: H�C0
  *** glibc detected *** dpkg-query: free(): invalid pointer: 0x00007f75dc7dcc84 ***
  ======= Backtrace: =========
  /lib/x86_64-linux-gnu/libc.so.6(+0x7e506)[0x7f75dc7df506]
  dpkg-query[0x4091a3]
  dpkg-query[0x404473]
  dpkg-query[0x402779]
  /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7f75dc78276d]
  dpkg-query[0x4027ed]
  ======= Memory map: ========
  00400000-0041f000 r-xp 00000000 08:01 2904021                            /usr/bin/dpkg-query
  0061e000-0061f000 r--p 0001e000 08:01 2904021                            /usr/bin/dpkg-query
  0061f000-00620000 rw-p 0001f000 08:01 2904021                            /usr/bin/dpkg-query
  00620000-00734000 rw-p 00000000 00:00 0 
  0180b000-0182c000 rw-p 00000000 00:00 0                                  [heap]
  7f75dc280000-7f75dc295000 r-xp 00000000 08:01 524420                     /lib/x86_64-linux-gnu/libgcc_s.so.1
  7f75dc295000-7f75dc494000 ---p 00015000 08:01 524420                     /lib/x86_64-linux-gnu/libgcc_s.so.1
  7f75dc494000-7f75dc495000 r--p 00014000 08:01 524420                     /lib/x86_64-linux-gnu/libgcc_s.so.1
  7f75dc495000-7f75dc496000 rw-p 00015000 08:01 524420                     /lib/x86_64-linux-gnu/libgcc_s.so.1
  7f75dc496000-7f75dc761000 r--p 00000000 08:01 2889281                    /usr/lib/locale/locale-archive
  7f75dc761000-7f75dc913000 r-xp 00000000 08:01 525233                     /lib/x86_64-linux-gnu/libc-2.15.so
  7f75dc913000-7f75dcb13000 ---p 001b2000 08:01 525233                     /lib/x86_64-linux-gnu/libc-2.15.so
  7f75dcb13000-7f75dcb17000 r--p 001b2000 08:01 525233                     /lib/x86_64-linux-gnu/libc-2.15.so
  7f75dcb17000-7f75dcb19000 rw-p 001b6000 08:01 525233                     /lib/x86_64-linux-gnu/libc-2.15.so
  7f75dcb19000-7f75dcb1e000 rw-p 00000000 00:00 0 
  7f75dcb1e000-7f75dcb40000 r-xp 00000000 08:01 525223                     /lib/x86_64-linux-gnu/ld-2.15.so
  7f75dcd1d000-7f75dcd20000 rw-p 00000000 00:00 0 
  7f75dcd3d000-7f75dcd40000 rw-p 00000000 00:00 0 
  7f75dcd40000-7f75dcd41000 r--p 00022000 08:01 525223                     /lib/x86_64-linux-gnu/ld-2.15.so
  7f75dcd41000-7f75dcd43000 rw-p 00023000 08:01 525223                     /lib/x86_64-linux-gnu/ld-2.15.so
  7fff26009000-7fff2602a000 rw-p 00000000 00:00 0                          [stack]
  7fff26057000-7fff26058000 r-xp 00000000 00:00 0                          [vdso]
  ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]

  BT:
  Core was generated by `dpkg-query -W -f= apt'.
  Program terminated with signal 6, Aborted.
  #0  0x00007faec01e8405 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
  64	../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
  (gdb) bt
  #0  0x00007faec01e8405 in __GI_raise (sig=<optimized out>) at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
  #1  0x00007faec01ebb6b in __GI_abort () at abort.c:91
  #2  0x00007faec0225d0e in __libc_message (do_abort=2, 
      fmt=0x7faec032dfd0 "*** glibc detected *** %s: %s: 0x%s ***\n") at ../sysdeps/unix/sysv/linux/libc_fatal.c:201
  #3  0x00007faec0230506 in malloc_printerr (action=3, str=0x7faec032af81 "free(): invalid pointer", 
      ptr=<optimized out>) at malloc.c:5007
  #4  0x00000000004091a3 in dpkg_error_destroy (err=err at entry=0x7fff3695e690) at ../../../lib/dpkg/error.c:91
  #5  0x0000000000404473 in showpackages (argv=0x7fff3695e800) at ../../src/querycmd.c:521
  #6  0x0000000000402779 in main (argc=<optimized out>, argv=0x7fff3695e800) at ../../src/querycmd.c:865

  Regards,
  Effenberg

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/1035512/+subscriptions




More information about the foundations-bugs mailing list