update-binfmts crashed with SIGSEGV in __libc_start_main()

Bug #686115 reported by Robert Hooker
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
binfmt-support (Ubuntu)
Fix Released
Medium
Colin Watson

Bug Description

Binary package hint: binfmt-support

I got this installing llvm.

Reading package lists... Done
Building dependency tree
Reading state information... Done
The following package was automatically installed and is no longer required:
  libxdot4
Use 'apt-get autoremove' to remove them.
The following extra packages will be installed:
  libllvm2.8 llvm-2.8 llvm-2.8-dev llvm-2.8-runtime llvm-runtime
Suggested packages:
  llvm-2.8-doc
The following NEW packages will be installed:
  libllvm2.8 llvm llvm-2.8 llvm-2.8-dev llvm-2.8-runtime llvm-runtime
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
Need to get 16.4 MB of archives.
After this operation, 52.1 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://us.archive.ubuntu.com/ubuntu/ natty/main libllvm2.8 i386 2.8-0ubuntu1 [5,683 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu/ natty/main llvm-2.8-runtime i386 2.8-0ubuntu1 [29.0 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu/ natty/universe llvm-runtime i386 2.8-0ubuntu3 [1,858 B]
Get:4 http://us.archive.ubuntu.com/ubuntu/ natty/main llvm-2.8 i386 2.8-0ubuntu1 [1,145 kB]
Get:5 http://us.archive.ubuntu.com/ubuntu/ natty/universe llvm i386 2.8-0ubuntu3 [1,604 B]
Get:6 http://us.archive.ubuntu.com/ubuntu/ natty/main llvm-2.8-dev i386 2.8-0ubuntu1 [9,548 kB]
Fetched 16.4 MB in 17s (927 kB/s)
Selecting previously deselected package libllvm2.8.
(Reading database ... 345204 files and directories currently installed.)
Unpacking libllvm2.8 (from .../libllvm2.8_2.8-0ubuntu1_i386.deb) ...
Selecting previously deselected package llvm-2.8-runtime.
Unpacking llvm-2.8-runtime (from .../llvm-2.8-runtime_2.8-0ubuntu1_i386.deb) ...
Selecting previously deselected package llvm-runtime.
Unpacking llvm-runtime (from .../llvm-runtime_2.8-0ubuntu3_i386.deb) ...
Selecting previously deselected package llvm-2.8.
Unpacking llvm-2.8 (from .../llvm-2.8_2.8-0ubuntu1_i386.deb) ...
Selecting previously deselected package llvm.
Unpacking llvm (from .../llvm_2.8-0ubuntu3_i386.deb) ...
Selecting previously deselected package llvm-2.8-dev.
Unpacking llvm-2.8-dev (from .../llvm-2.8-dev_2.8-0ubuntu1_i386.deb) ...
Processing triggers for man-db ...
Setting up libllvm2.8 (2.8-0ubuntu1) ...
Setting up llvm-2.8-runtime (2.8-0ubuntu1) ...
update-binfmts: warning: unable to open /usr/share/binfmts/llvm.binfmt: No such file or directory
Segmentation fault (core dumped)
Setting up llvm-runtime (2.8-0ubuntu3) ...
Setting up llvm-2.8 (2.8-0ubuntu1) ...
Setting up llvm (2.8-0ubuntu3) ...
Setting up llvm-2.8-dev (2.8-0ubuntu1) ...
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place

sarvatt@yamada{/opt}:ll /usr/share/binfmts/
total 24
-rw-r--r-- 1 root root 98 2010-09-14 15:43 cli
lrwxrwxrwx 1 root root 30 2010-11-02 09:21 jar -> /etc/alternatives/jexec-binfmt
-rw-r--r-- 1 root root 53 2010-11-24 10:52 llvm-2.7.binfmt
-rw-r--r-- 1 root root 53 2010-10-06 09:15 llvm-2.8.binfmt
-rw-r--r-- 1 root root 72 2010-10-12 12:06 python2.6
-rw-r--r-- 1 root root 72 2010-11-28 13:19 python2.7
-rw-r--r-- 1 root root 48 2010-11-26 20:32 wine

ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: binfmt-support 2.0.0
ProcVersionSignature: Ubuntu 2.6.37-7.19-generic-pae 2.6.37-rc3
Uname: Linux 2.6.37-7-generic-pae i686
NonfreeKernelModules: nvidia
Architecture: i386
Date: Mon Dec 6 13:31:05 2010
ExecutablePath: /usr/sbin/update-binfmts
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release i386 (20101007)
ProcCmdline: update-binfmts --import llvm.binfmt
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
SegvAnalysis:
 Segfault happened at: 0x8050d57: mov 0x10(%eax),%eax
 PC (0x08050d57) ok
 source "0x10(%eax)" (0x00000010) not located in a known VMA region (needed readable region)!
 destination "%eax" ok
SegvReason: reading NULL VMA
Signal: 11
SourcePackage: binfmt-support
StacktraceTop:
 ?? ()
 ?? ()
 __libc_start_main (main=0x804bef0, argc=3, ubp_av=0xbfaad0b4, init=0x8053010, fini=0x8053000, rtld_fini=0xb770cac0 <_dl_fini>, stack_end=0xbfaad0ac) at libc-start.c:226
 ?? ()
Title: update-binfmts crashed with SIGSEGV in __libc_start_main()
UserGroups:

Revision history for this message
Robert Hooker (sarvatt) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 hash_get_n_entries (table=0x0)
 act_import (name=<value optimized out>)
 ?? ()

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in binfmt-support (Ubuntu):
importance: Undecided → Medium
tags: removed: need-i386-retrace
Colin Watson (cjwatson)
visibility: private → public
Changed in binfmt-support (Ubuntu):
status: New → Fix Committed
assignee: nobody → Colin Watson (cjwatson)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package binfmt-support - 2.0.1

---------------
binfmt-support (2.0.1) experimental; urgency=low

  * Add a --find option to print the list of interpreters for an executable.
    Requested by Loïc Minier.
  * Fix crash if get_import returns NULL (LP: #686115).
  * Fix hexadecimal expansion to ensure that we only ever parse exactly two
    hex digits.
  * Use mem* functions rather than str* on binary data when finding
    interpreters.
 -- Colin Watson <email address hidden> Tue, 25 Jan 2011 14:35:12 +0000

Changed in binfmt-support (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.