[CentOS-pt-br] Yum Segmentation Fault

João Paulo (littleoak) whilelive em gmail.com
Sexta Junho 17 20:20:30 EDT 2011


yum clean all
rm -f /var/lib/rpm/__db*
rpm –rebuilddb
yum update

Se persistir:

rm /dev/urandom
mknod -m 644 /dev/urandom c 1 9

(DEVE RESOLVER se for um vps)
Caso não resolva pare a vps
mknod –mode 644 /vz/private/100/lib/udev/devices/urandom c 1 9
start VPS


Em 17 de junho de 2011 15:18, Lincoln Zuljewic Silva <
lincolnzsilva em gmail.com> escreveu:

> Boa tarde Lucas,
>
> Não nunca mexi nada na configuração do Python desta máquina.
>
> Acabei de instalar uma versão mais nova dele (python-2.4.3-43, que vem no
> Red Hat 5.6) e o problema permanece...
>
> Dei uma "cavucada" no funcionamento do yum e ele (/usr/bin/yum) carrega os
> scripts de /usr/share/yum-cli/. Peguei um deles (o cli.py) e rodei com a
> opção "-d";
>
> [root em server py]# python -v /usr/share/yum-cli/cli.py
> # installing zipimport hook
> import zipimport # builtin
> # installed zipimport hook
> # /usr/lib/python2.4/site.pyc matches /usr/lib/python2.4/site.py
> import site # precompiled from /usr/lib/python2.4/site.pyc
> # /usr/lib/python2.4/os.pyc matches /usr/lib/python2.4/os.py
> import os # precompiled from /usr/lib/python2.4/os.pyc
> import posix # builtin
> # /usr/lib/python2.4/posixpath.pyc matches /usr/lib/python2.4/posixpath.py
> import posixpath # precompiled from /usr/lib/python2.4/posixpath.pyc
> # /usr/lib/python2.4/stat.pyc matches /usr/lib/python2.4/stat.py
> import stat # precompiled from /usr/lib/python2.4/stat.pyc
> import errno # builtin
> # /usr/lib/python2.4/UserDict.pyc matches /usr/lib/python2.4/UserDict.py
> import UserDict # precompiled from /usr/lib/python2.4/UserDict.pyc
> # /usr/lib/python2.4/copy_reg.pyc matches /usr/lib/python2.4/copy_reg.py
> import copy_reg # precompiled from /usr/lib/python2.4/copy_reg.pyc
> # /usr/lib/python2.4/types.pyc matches /usr/lib/python2.4/types.py
> import types # precompiled from /usr/lib/python2.4/types.pyc
> import japanese # directory /usr/lib/python2.4/site-packages/japanese
> # /usr/lib/python2.4/site-packages/japanese/__init__.pyc matches
> /usr/lib/python2.4/site-packages/japanese/__init__.py
> import japanese # precompiled from
> /usr/lib/python2.4/site-packages/japanese/__init__.pyc
> import japanese.aliases # directory
> /usr/lib/python2.4/site-packages/japanese/aliases
> # /usr/lib/python2.4/site-packages/japanese/aliases/__init__.pyc matches
> /usr/lib/python2.4/site-packages/japanese/aliases/__init__.py
> import japanese.aliases # precompiled from
> /usr/lib/python2.4/site-packages/japanese/aliases/__init__.pyc
> import encodings # directory /usr/lib/python2.4/encodings
> # /usr/lib/python2.4/encodings/__init__.pyc matches
> /usr/lib/python2.4/encodings/__init__.py
> import encodings # precompiled from
> /usr/lib/python2.4/encodings/__init__.pyc
> # /usr/lib/python2.4/codecs.pyc matches /usr/lib/python2.4/codecs.py
> import codecs # precompiled from /usr/lib/python2.4/codecs.pyc
> import _codecs # builtin
> # /usr/lib/python2.4/encodings/aliases.pyc matches
> /usr/lib/python2.4/encodings/aliases.py
> import encodings.aliases # precompiled from
> /usr/lib/python2.4/encodings/aliases.pyc
> # /usr/lib/python2.4/warnings.pyc matches /usr/lib/python2.4/warnings.py
> import warnings # precompiled from /usr/lib/python2.4/warnings.pyc
> # /usr/lib/python2.4/linecache.pyc matches /usr/lib/python2.4/linecache.py
> import linecache # precompiled from /usr/lib/python2.4/linecache.pyc
> # /usr/lib/python2.4/encodings/utf_8.pyc matches
> /usr/lib/python2.4/encodings/utf_8.py
> import encodings.utf_8 # precompiled from
> /usr/lib/python2.4/encodings/utf_8.pyc
> Python 2.4.3 (#1, Dec 10 2010, 17:24:32)
> [GCC 4.1.2 20080704 (Red Hat 4.1.2-50)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> # /usr/lib/python2.4/re.pyc matches /usr/lib/python2.4/re.py
> import re # precompiled from /usr/lib/python2.4/re.pyc
> # /usr/lib/python2.4/sre.pyc matches /usr/lib/python2.4/sre.py
> import sre # precompiled from /usr/lib/python2.4/sre.pyc
> # /usr/lib/python2.4/sre_compile.pyc matches
> /usr/lib/python2.4/sre_compile.py
> import sre_compile # precompiled from /usr/lib/python2.4/sre_compile.pyc
> import _sre # builtin
> # /usr/lib/python2.4/sre_constants.pyc matches
> /usr/lib/python2.4/sre_constants.py
> import sre_constants # precompiled from
> /usr/lib/python2.4/sre_constants.pyc
> # /usr/lib/python2.4/sre_parse.pyc matches /usr/lib/python2.4/sre_parse.py
> import sre_parse # precompiled from /usr/lib/python2.4/sre_parse.pyc
> dlopen("/usr/lib/python2.4/lib-dynload/timemodule.so", 2);
> import time # dynamically loaded from
> /usr/lib/python2.4/lib-dynload/timemodule.so
> # /usr/lib/python2.4/random.pyc matches /usr/lib/python2.4/random.py
> import random # precompiled from /usr/lib/python2.4/random.pyc
> dlopen("/usr/lib/python2.4/lib-dynload/mathmodule.so", 2);
> import math # dynamically loaded from
> /usr/lib/python2.4/lib-dynload/mathmodule.so
> dlopen("/usr/lib/python2.4/lib-dynload/binascii.so", 2);
> import binascii # dynamically loaded from
> /usr/lib/python2.4/lib-dynload/binascii.so
> Segmentation fault
>
> Aí eu criei um "hello.py" com o mesmo conteúdo inicial deste cli.py:
> #!/usr/bin/python
> import os
> import re
> import sys
> import time
> import random
> import logging
> from optparse import OptionParser,OptionGroup
> import rpm
> import output
> import shell
> import yum
> import yum.Errors
> import yum.logginglevels
> import yum.misc
> import yum.plugins
> import rpmUtils.arch
> import rpmUtils.miscutils
> from yum.packages import parsePackages
> from yum import _
> from yum.rpmtrans import RPMTransaction
> import signal
> import yumcommands
> from yum.i18n import to_unicode, to_utf8
> print "Hello, World!"
>
> Ao executá-lo assim: "Segmentation fault".
>
> Saí comentando um "import" de cada vez e o hello.py parou de dar problema
> quando comentei o "import random", ou seja, ele é o meu desafeto.
>
> O /dev/random e /dev/urandom estão com as permissões corretas.
>
> []'s
> Lincoln
>
>
> 2011/6/17 Lucas Timm LH <linuxhelper em gmail.com>
>
>> Python, gente. Python...
>>
>> Em 17 de junho de 2011 14:29, Emmanuel Alves <manel.pb em gmail.com>escreveu:
>>
>> eu também estou com este tipo de problema, mas em um servidor freebsd...
>>>
>>> deve ser algum pacote que está morrendo, já tentei procurar qual é, mas
>>> sem sucesso.
>>>
>>> []s
>>>
>>> Emmanuel Alves
>>>
>>> ---------------------------------------------------------------------
>>> Twitter: http://www.twitter.com/emartsnet
>>> Linked In: http://www.linkedin.com/in/emartsnet
>>>
>>>
>>>
>>> 2011/6/17 Guilherme Moraes <guimfonseca em gmail.com>
>>>
>>>> Essa eh a tela azul de hardware.
>>>>
>>>> A do software seria a segment fault
>>>>
>>>>
>>>> 2011/6/17 Lucas Timm LH <linuxhelper em gmail.com>
>>>>
>>>>> Na verdade a "tela azul" do Unix é o *kernel panic*, não a
>>>>> Segmentation Failure.
>>>>>
>>>>> Em 17 de junho de 2011 14:09, Guilherme Moraes <guimfonseca em gmail.com>escreveu:
>>>>>
>>>>> Não tem nada a ver com Hardware ...
>>>>>>
>>>>>> Segment Fault é a tela azul do linux em relação ao software.
>>>>>>
>>>>>> Alguma coisa ai em "C" ta com problema.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> 2011/6/17 Fábio de Sousa <fabiocs em gmail.com>
>>>>>>
>>>>>>> Não tenho muita experiência nos RedHats, mas no Debian isso pode ser
>>>>>>> HD e ou memória com defeito... se possível troque o pente de memória e faça
>>>>>>> um teste..
>>>>>>>
>>>>>>> Abraço,
>>>>>>> Fábio de Sousa
>>>>>>> SysAdmin
>>>>>>>
>>>>>>>   ~
>>>>>>>  °v°   Seja Livre...
>>>>>>> /(  )\  Use Linux...
>>>>>>>  ^ ^
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> Em 17 de junho de 2011 14:03, Lincoln Zuljewic Silva <
>>>>>>> lincolnzsilva em gmail.com> escreveu:
>>>>>>>
>>>>>>>> Boa tarde lista,
>>>>>>>>
>>>>>>>> Estou com um probleminha aqui em um servidor CentOS que está me
>>>>>>>> tirando o sono.
>>>>>>>>
>>>>>>>> Sem nenhum motivo o yum parou de funcionar:
>>>>>>>> [root em server ~]# yum
>>>>>>>> Segmentation fault
>>>>>>>>
>>>>>>>> Já reinstalei o rpm do yum, do rpm, de todas as dependências do yum.
>>>>>>>>
>>>>>>>> Um strace do yum pode ser encontrado em:
>>>>>>>> http://pastebin.com/PYL67pm4
>>>>>>>>
>>>>>>>> O CentOS é o:
>>>>>>>>
>>>>>>>> CentOS release 5.4 (Final)
>>>>>>>>
>>>>>>>> Com kernel:
>>>>>>>>
>>>>>>>> Linux server 2.6.18-164.11.1.el5.centos.plusPAE #1 SMP Wed Jan 20
>>>>>>>> 19:33:21 EST 2010
>>>>>>>>
>>>>>>>> E a versão do yum é a:
>>>>>>>>
>>>>>>>> [root em server ~]# rpm -qa |grep yum
>>>>>>>> yum-metadata-parser-1.1.2-3.el5.centos
>>>>>>>> yum-3.2.22-20.el5.centos
>>>>>>>> yum-utils-1.1.16-13.el5.centos
>>>>>>>> yum-fastestmirror-1.1.16-13.el5.centos
>>>>>>>>
>>>>>>>> Já procurei no Google, e também não achei nada que pudesse me
>>>>>>>> ajudar...
>>>>>>>>
>>>>>>>> Alguém já passou por isso antes?
>>>>>>>>
>>>>>>>> []’s
>>>>>>>> Lincoln
>>>>>>>>
>>>>>>>> --
>>>>>>>> Lincoln Zuljewic Silva
>>>>>>>> More contact info.: http://www.system.adm.br/contact.php
>>>>>>>>
>>>>>>>> "How often must a question be asked before it’s considered a
>>>>>>>> frequently asked question?"
>>>>>>>> _______________________________________________
>>>>>>>> CentOS-pt-br mailing list
>>>>>>>> CentOS-pt-br em centos.org
>>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> CentOS-pt-br mailing list
>>>>>>> CentOS-pt-br em centos.org
>>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> -------------------------------------------
>>>>>> At.
>>>>>>
>>>>>> Guilherme Moraes Da Fonseca
>>>>>> *LPIC1 - Linux Professional Institute Certified**
>>>>>> *
>>>>>> *CLA - Novell Certified Linux Administrator*
>>>>>> *DCTS - Novell Data Center Technical Specialist*
>>>>>> **
>>>>>> Analista de Suporte Gnu/Linux
>>>>>>
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> CentOS-pt-br mailing list
>>>>>> CentOS-pt-br em centos.org
>>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Lucas Timm, Goiânia/GO.
>>>>> http://timmerman.wordpress.com
>>>>>
>>>>> (62) 8198-0867
>>>>>
>>>>> _______________________________________________
>>>>> CentOS-pt-br mailing list
>>>>> CentOS-pt-br em centos.org
>>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>>
>>>>>
>>>>
>>>>
>>>> --
>>>> -------------------------------------------
>>>> At.
>>>>
>>>> Guilherme Moraes Da Fonseca
>>>> *LPIC1 - Linux Professional Institute Certified**
>>>> *
>>>> *CLA - Novell Certified Linux Administrator*
>>>> *DCTS - Novell Data Center Technical Specialist*
>>>> **
>>>> Analista de Suporte Gnu/Linux
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> CentOS-pt-br mailing list
>>>> CentOS-pt-br em centos.org
>>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>>
>>>>
>>>
>>> _______________________________________________
>>> CentOS-pt-br mailing list
>>> CentOS-pt-br em centos.org
>>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>>
>>>
>>
>>
>> --
>> Lucas Timm, Goiânia/GO.
>> http://timmerman.wordpress.com
>>
>> (62) 8198-0867
>>
>> _______________________________________________
>> CentOS-pt-br mailing list
>> CentOS-pt-br em centos.org
>> http://lists.centos.org/mailman/listinfo/centos-pt-br
>>
>>
>
>
> --
> Lincoln Zuljewic Silva
> More contact info.: http://www.system.adm.br/contact.php
>
> "How often must a question be asked before it’s considered a frequently
> asked question?"
>
> _______________________________________________
> CentOS-pt-br mailing list
> CentOS-pt-br em centos.org
> http://lists.centos.org/mailman/listinfo/centos-pt-br
>
>


-- 
--------------------------------
"*Software required*: Requires *Windows* or *better *... I installed *LINUX*
"
Thanks God.
http://www.twitter.com/little_oak
http://nerdblog.info
-------------- Próxima Parte ----------
Um anexo em HTML foi limpo...
URL: http://lists.centos.org/pipermail/centos-pt-br/attachments/20110617/6b52fb57/attachment.html 


Mais detalhes sobre a lista de discussão CentOS-pt-br