[Bug 992760] Re: Python stop to work on do-release-upgrade from 11.10 to 12.04 with "Illegal instruction"

Matthias Klose doko at ubuntu.com
Wed Nov 28 18:31:16 UTC 2012


*** This bug is a duplicate of bug 992842 ***
    https://bugs.launchpad.net/bugs/992842

** This bug has been marked a duplicate of bug 992842
   update-manager dpkg: error processing python2.7-minimal (--configure) : Illegal instruction

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

Title:
  Python stop to work on do-release-upgrade from 11.10 to 12.04 with
  "Illegal instruction"

Status in “python2.7” package in Ubuntu:
  New

Bug description:
  Ubuntu version: 12.04
  Package version: happens with python 2.7.2 and python 2.7.3, not tried other versions
  Is expected that python runs normally and all commands that depend of it, including apt related ones, too, but instead, all fail with Illegal Instruction.

  This is a bug while upgrading from 11.10 to 12.04 in a Ubuntu Server.

  The issue hapenned while running do-release-upgrade.

  The server is a python application server running many instances of
  Django sites, so python was working before issue.

  Now details.

  The do-release-upgrade at end of process give me the following error
  message:

  Errors were encountered while processing:
   python2.7-minimal
   python2.7
   python2.7-dev
   libpython2.7
   vim
   vim-nox

  Python fail on execution:

  $ python
  Illegal instruction

  $ python -vvvvvvvvvvvvvvvvvvvv
  # installing zipimport hook
  import zipimport # builtin
  # installed zipimport hook
  # trying /usr/lib/python2.7/site.so
  # trying /usr/lib/python2.7/sitemodule.so
  # trying /usr/lib/python2.7/site.py
  # /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
  import site # precompiled from /usr/lib/python2.7/site.pyc
  # trying /usr/lib/python2.7/os.so
  # trying /usr/lib/python2.7/osmodule.so
  # trying /usr/lib/python2.7/os.py
  # /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
  import os # precompiled from /usr/lib/python2.7/os.pyc
  import errno # builtin
  import posix # builtin
  # trying /usr/lib/python2.7/posixpath.so
  # trying /usr/lib/python2.7/posixpathmodule.so
  # trying /usr/lib/python2.7/posixpath.py
  # /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
  import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
  # trying /usr/lib/python2.7/stat.so
  # trying /usr/lib/python2.7/statmodule.so
  # trying /usr/lib/python2.7/stat.py
  # /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
  import stat # precompiled from /usr/lib/python2.7/stat.pyc
  # trying /usr/lib/python2.7/genericpath.so
  # trying /usr/lib/python2.7/genericpathmodule.so
  # trying /usr/lib/python2.7/genericpath.py
  # /usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py
  import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
  # trying /usr/lib/python2.7/warnings.so
  # trying /usr/lib/python2.7/warningsmodule.so
  # trying /usr/lib/python2.7/warnings.py
  # /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
  import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
  # trying /usr/lib/python2.7/linecache.so
  # trying /usr/lib/python2.7/linecachemodule.so
  # trying /usr/lib/python2.7/linecache.py
  # /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
  import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
  # trying /usr/lib/python2.7/types.so
  # trying /usr/lib/python2.7/typesmodule.so
  # trying /usr/lib/python2.7/types.py
  # /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
  import types # precompiled from /usr/lib/python2.7/types.pyc
  # trying /usr/lib/python2.7/UserDict.so
  # trying /usr/lib/python2.7/UserDictmodule.so
  # trying /usr/lib/python2.7/UserDict.py
  # /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
  import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
  # trying /usr/lib/python2.7/_abcoll.so
  # trying /usr/lib/python2.7/_abcollmodule.so
  # trying /usr/lib/python2.7/_abcoll.py
  # /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
  import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
  # trying /usr/lib/python2.7/abc.so
  # trying /usr/lib/python2.7/abcmodule.so
  # trying /usr/lib/python2.7/abc.py
  # /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
  import abc # precompiled from /usr/lib/python2.7/abc.pyc
  # trying /usr/lib/python2.7/_weakrefset.so
  # trying /usr/lib/python2.7/_weakrefsetmodule.so
  # trying /usr/lib/python2.7/_weakrefset.py
  # /usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py
  import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
  import _weakref # builtin
  # trying /usr/lib/python2.7/copy_reg.so
  # trying /usr/lib/python2.7/copy_regmodule.so
  # trying /usr/lib/python2.7/copy_reg.py
  # /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
  import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
  # trying /usr/lib/python2.7/traceback.so
  # trying /usr/lib/python2.7/tracebackmodule.so
  # trying /usr/lib/python2.7/traceback.py
  # /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
  import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
  # trying /usr/lib/python2.7/sysconfig.so
  # trying /usr/lib/python2.7/sysconfigmodule.so
  # trying /usr/lib/python2.7/sysconfig.py
  # /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
  import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
  # trying /usr/lib/python2.7/re.so
  # trying /usr/lib/python2.7/remodule.so
  # trying /usr/lib/python2.7/re.py
  # /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
  import re # precompiled from /usr/lib/python2.7/re.pyc
  # trying /usr/lib/python2.7/sre_compile.so
  # trying /usr/lib/python2.7/sre_compilemodule.so
  # trying /usr/lib/python2.7/sre_compile.py
  Illegal instruction

  lsb_release fails as any package that depends of Python:

  $ lsb_release
  Illegal instruction

  $ do-release-upgrade
  Illegal instruction

  Thinking that issue is in python I tried to compile from zero, but
  ends on that error when running make:

  /bin/sh: line 1: 13008 Illegal instruction     LD_LIBRARY_PATH=/root/src/Python-2.7.3: CC='gcc -pthread' LDSHARED='gcc -pthread -shared ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes' ./python -E ./setup.py build
  make: *** [sharedmods] Error 132

  Python works if run without import site (option -S), but when import
  site from python shell same error happens:

  $ python -S -vvvvvvvvv
  # installing zipimport hook
  import zipimport # builtin
  # installed zipimport hook
  import encodings # directory /usr/lib/python2.7/encodings
  # trying /usr/lib/python2.7/encodings/__init__.so
  # trying /usr/lib/python2.7/encodings/__init__module.so
  # trying /usr/lib/python2.7/encodings/__init__.py
  # /usr/lib/python2.7/encodings/__init__.pyc matches /usr/lib/python2.7/encodings/__init__.py
  import encodings # precompiled from /usr/lib/python2.7/encodings/__init__.pyc
  # trying /usr/lib/python2.7/encodings/codecs.so
  # trying /usr/lib/python2.7/encodings/codecsmodule.so
  # trying /usr/lib/python2.7/encodings/codecs.py
  # trying /usr/lib/python2.7/encodings/codecs.pyc
  # trying /usr/lib/python2.7/codecs.so
  # trying /usr/lib/python2.7/codecsmodule.so
  # trying /usr/lib/python2.7/codecs.py
  # /usr/lib/python2.7/codecs.pyc matches /usr/lib/python2.7/codecs.py
  import codecs # precompiled from /usr/lib/python2.7/codecs.pyc
  import _codecs # builtin
  # trying /usr/lib/python2.7/encodings/encodings.so
  # trying /usr/lib/python2.7/encodings/encodingsmodule.so
  # trying /usr/lib/python2.7/encodings/encodings.py
  # trying /usr/lib/python2.7/encodings/encodings.pyc
  # trying /usr/lib/python2.7/encodings/aliases.so
  # trying /usr/lib/python2.7/encodings/aliasesmodule.so
  # trying /usr/lib/python2.7/encodings/aliases.py
  # /usr/lib/python2.7/encodings/aliases.pyc matches /usr/lib/python2.7/encodings/aliases.py
  import encodings.aliases # precompiled from /usr/lib/python2.7/encodings/aliases.pyc
  # trying /usr/lib/python2.7/encodings/__builtin__.so
  # trying /usr/lib/python2.7/encodings/__builtin__module.so
  # trying /usr/lib/python2.7/encodings/__builtin__.py
  # trying /usr/lib/python2.7/encodings/__builtin__.pyc
  # trying /usr/lib/python2.7/encodings/utf_8.so
  # trying /usr/lib/python2.7/encodings/utf_8module.so
  # trying /usr/lib/python2.7/encodings/utf_8.py
  # /usr/lib/python2.7/encodings/utf_8.pyc matches /usr/lib/python2.7/encodings/utf_8.py
  import encodings.utf_8 # precompiled from /usr/lib/python2.7/encodings/utf_8.pyc
  Python 2.7.3 (default, Apr 20 2012, 22:39:59) 
  [GCC 4.6.3] on linux2
  # trying readline.so
  # trying readlinemodule.so
  # trying readline.py
  # trying readline.pyc
  # trying /usr/lib/python2.7/readline.so
  # trying /usr/lib/python2.7/readlinemodule.so
  # trying /usr/lib/python2.7/readline.py
  # trying /usr/lib/python2.7/readline.pyc
  # trying /usr/lib/python2.7/plat-linux2/readline.so
  # trying /usr/lib/python2.7/plat-linux2/readlinemodule.so
  # trying /usr/lib/python2.7/plat-linux2/readline.py
  # trying /usr/lib/python2.7/plat-linux2/readline.pyc
  # trying /usr/lib/python2.7/lib-tk/readline.so
  # trying /usr/lib/python2.7/lib-tk/readlinemodule.so
  # trying /usr/lib/python2.7/lib-tk/readline.py
  # trying /usr/lib/python2.7/lib-tk/readline.pyc
  # trying /usr/lib/python2.7/lib-dynload/readline.so
  dlopen("/usr/lib/python2.7/lib-dynload/readline.so", 2);
  import readline # dynamically loaded from /usr/lib/python2.7/lib-dynload/readline.so
  >>> import sys, os
  # trying os.so
  # trying osmodule.so
  # trying os.py
  # trying os.pyc
  # trying /usr/lib/python2.7/os.so
  # trying /usr/lib/python2.7/osmodule.so
  # trying /usr/lib/python2.7/os.py
  # /usr/lib/python2.7/os.pyc matches /usr/lib/python2.7/os.py
  import os # precompiled from /usr/lib/python2.7/os.pyc
  import errno # builtin
  import posix # builtin
  # trying posixpath.so
  # trying posixpathmodule.so
  # trying posixpath.py
  # trying posixpath.pyc
  # trying /usr/lib/python2.7/posixpath.so
  # trying /usr/lib/python2.7/posixpathmodule.so
  # trying /usr/lib/python2.7/posixpath.py
  # /usr/lib/python2.7/posixpath.pyc matches /usr/lib/python2.7/posixpath.py
  import posixpath # precompiled from /usr/lib/python2.7/posixpath.pyc
  # trying stat.so
  # trying statmodule.so
  # trying stat.py
  # trying stat.pyc
  # trying /usr/lib/python2.7/stat.so
  # trying /usr/lib/python2.7/statmodule.so
  # trying /usr/lib/python2.7/stat.py
  # /usr/lib/python2.7/stat.pyc matches /usr/lib/python2.7/stat.py
  import stat # precompiled from /usr/lib/python2.7/stat.pyc
  # trying genericpath.so
  # trying genericpathmodule.so
  # trying genericpath.py
  # trying genericpath.pyc
  # trying /usr/lib/python2.7/genericpath.so
  # trying /usr/lib/python2.7/genericpathmodule.so
  # trying /usr/lib/python2.7/genericpath.py
  # /usr/lib/python2.7/genericpath.pyc matches /usr/lib/python2.7/genericpath.py
  import genericpath # precompiled from /usr/lib/python2.7/genericpath.pyc
  # trying warnings.so
  # trying warningsmodule.so
  # trying warnings.py
  # trying warnings.pyc
  # trying /usr/lib/python2.7/warnings.so
  # trying /usr/lib/python2.7/warningsmodule.so
  # trying /usr/lib/python2.7/warnings.py
  # /usr/lib/python2.7/warnings.pyc matches /usr/lib/python2.7/warnings.py
  import warnings # precompiled from /usr/lib/python2.7/warnings.pyc
  # trying linecache.so
  # trying linecachemodule.so
  # trying linecache.py
  # trying linecache.pyc
  # trying /usr/lib/python2.7/linecache.so
  # trying /usr/lib/python2.7/linecachemodule.so
  # trying /usr/lib/python2.7/linecache.py
  # /usr/lib/python2.7/linecache.pyc matches /usr/lib/python2.7/linecache.py
  import linecache # precompiled from /usr/lib/python2.7/linecache.pyc
  # trying types.so
  # trying typesmodule.so
  # trying types.py
  # trying types.pyc
  # trying /usr/lib/python2.7/types.so
  # trying /usr/lib/python2.7/typesmodule.so
  # trying /usr/lib/python2.7/types.py
  # /usr/lib/python2.7/types.pyc matches /usr/lib/python2.7/types.py
  import types # precompiled from /usr/lib/python2.7/types.pyc
  # trying UserDict.so
  # trying UserDictmodule.so
  # trying UserDict.py
  # trying UserDict.pyc
  # trying /usr/lib/python2.7/UserDict.so
  # trying /usr/lib/python2.7/UserDictmodule.so
  # trying /usr/lib/python2.7/UserDict.py
  # /usr/lib/python2.7/UserDict.pyc matches /usr/lib/python2.7/UserDict.py
  import UserDict # precompiled from /usr/lib/python2.7/UserDict.pyc
  # trying _abcoll.so
  # trying _abcollmodule.so
  # trying _abcoll.py
  # trying _abcoll.pyc
  # trying /usr/lib/python2.7/_abcoll.so
  # trying /usr/lib/python2.7/_abcollmodule.so
  # trying /usr/lib/python2.7/_abcoll.py
  # /usr/lib/python2.7/_abcoll.pyc matches /usr/lib/python2.7/_abcoll.py
  import _abcoll # precompiled from /usr/lib/python2.7/_abcoll.pyc
  # trying abc.so
  # trying abcmodule.so
  # trying abc.py
  # trying abc.pyc
  # trying /usr/lib/python2.7/abc.so
  # trying /usr/lib/python2.7/abcmodule.so
  # trying /usr/lib/python2.7/abc.py
  # /usr/lib/python2.7/abc.pyc matches /usr/lib/python2.7/abc.py
  import abc # precompiled from /usr/lib/python2.7/abc.pyc
  # trying _weakrefset.so
  # trying _weakrefsetmodule.so
  # trying _weakrefset.py
  # trying _weakrefset.pyc
  # trying /usr/lib/python2.7/_weakrefset.so
  # trying /usr/lib/python2.7/_weakrefsetmodule.so
  # trying /usr/lib/python2.7/_weakrefset.py
  # /usr/lib/python2.7/_weakrefset.pyc matches /usr/lib/python2.7/_weakrefset.py
  import _weakrefset # precompiled from /usr/lib/python2.7/_weakrefset.pyc
  import _weakref # builtin
  # trying copy_reg.so
  # trying copy_regmodule.so
  # trying copy_reg.py
  # trying copy_reg.pyc
  # trying /usr/lib/python2.7/copy_reg.so
  # trying /usr/lib/python2.7/copy_regmodule.so
  # trying /usr/lib/python2.7/copy_reg.py
  # /usr/lib/python2.7/copy_reg.pyc matches /usr/lib/python2.7/copy_reg.py
  import copy_reg # precompiled from /usr/lib/python2.7/copy_reg.pyc
  >>> print sys.path
  ['', '/usr/lib/python2.7/', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload']
  >>> import site
  # trying site.so
  # trying sitemodule.so
  # trying site.py
  # trying site.pyc
  # trying /usr/lib/python2.7/site.so
  # trying /usr/lib/python2.7/sitemodule.so
  # trying /usr/lib/python2.7/site.py
  # /usr/lib/python2.7/site.pyc matches /usr/lib/python2.7/site.py
  import site # precompiled from /usr/lib/python2.7/site.pyc
  # trying traceback.so
  # trying tracebackmodule.so
  # trying traceback.py
  # trying traceback.pyc
  # trying /usr/lib/python2.7/traceback.so
  # trying /usr/lib/python2.7/tracebackmodule.so
  # trying /usr/lib/python2.7/traceback.py
  # /usr/lib/python2.7/traceback.pyc matches /usr/lib/python2.7/traceback.py
  import traceback # precompiled from /usr/lib/python2.7/traceback.pyc
  # trying /root/src/Python-2.7.3/sysconfig.so
  # trying /root/src/Python-2.7.3/sysconfigmodule.so
  # trying /root/src/Python-2.7.3/sysconfig.py
  # trying /root/src/Python-2.7.3/sysconfig.pyc
  # trying /usr/lib/python2.7/sysconfig.so
  # trying /usr/lib/python2.7/sysconfigmodule.so
  # trying /usr/lib/python2.7/sysconfig.py
  # /usr/lib/python2.7/sysconfig.pyc matches /usr/lib/python2.7/sysconfig.py
  import sysconfig # precompiled from /usr/lib/python2.7/sysconfig.pyc
  # trying /root/src/Python-2.7.3/re.so
  # trying /root/src/Python-2.7.3/remodule.so
  # trying /root/src/Python-2.7.3/re.py
  # trying /root/src/Python-2.7.3/re.pyc
  # trying /usr/lib/python2.7/re.so
  # trying /usr/lib/python2.7/remodule.so
  # trying /usr/lib/python2.7/re.py
  # /usr/lib/python2.7/re.pyc matches /usr/lib/python2.7/re.py
  import re # precompiled from /usr/lib/python2.7/re.pyc
  # trying /root/src/Python-2.7.3/sre_compile.so
  # trying /root/src/Python-2.7.3/sre_compilemodule.so
  # trying /root/src/Python-2.7.3/sre_compile.py
  # trying /root/src/Python-2.7.3/sre_compile.pyc
  # trying /usr/lib/python2.7/sre_compile.so
  # trying /usr/lib/python2.7/sre_compilemodule.so
  # trying /usr/lib/python2.7/sre_compile.py
  Illegal instruction

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python2.7/+bug/992760/+subscriptions




More information about the foundations-bugs mailing list