<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>Solution Perspective Media Blog - CentOS</title>
    <link>http://blog.solutionperspectivemedia.co.uk/</link>
    <description>Our little place on the web...</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.3.1 - http://www.s9y.org/</generator>
    <pubDate>Mon, 08 May 2006 22:06:31 GMT</pubDate>

    <image>
        <url>http://blog.solutionperspectivemedia.co.uk/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Solution Perspective Media Blog - CentOS - Our little place on the web...</title>
        <link>http://blog.solutionperspectivemedia.co.uk/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Segmentation fault using RPM</title>
    <link>http://blog.solutionperspectivemedia.co.uk/archives/3-Segmentation-fault-using-RPM.html</link>
            <category>CentOS</category>
            <category>Linux</category>
    
    <comments>http://blog.solutionperspectivemedia.co.uk/archives/3-Segmentation-fault-using-RPM.html#comments</comments>
    <wfw:comment>http://blog.solutionperspectivemedia.co.uk/wfwcomment.php?cid=3</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>http://blog.solutionperspectivemedia.co.uk/rss.php?version=2.0&amp;type=comments&amp;cid=3</wfw:commentRss>
    

    <author>nospam@example.com (Jeremy Coates)</author>
    <content:encoded>
    I&#039;ve got a CentOS 4.2 machine (x86_64 variety) that usually runs very sweetly, with hindsight, the adage if it ain&#039;t broke don&#039;t fix it comes to mind!&lt;br /&gt;&lt;br /&gt;There I was doing the usual &#039;yum update&#039; then the next thing &#039;segmentation fault&#039; - agghhh! Anything I tried with yum resulted in the same problem, so turned to the underlying rpm commands instead. Same problem, anything to do with rpm resulted in a segfault. Oh dear, or similar sentiments thinks I, best check what&#039;s going on elsewhere on the system - all seemed fine as usual, still got web server, mail etc.&lt;br /&gt;&lt;br /&gt;I tried digging around in yum, rpm and message logs - nothing of any interest, so I remembered that you can do a rpm rebuilddb as &lt;a onclick=&quot;javascript: pageTracker._trackPageview(&#039;/extlink/www.rpm.org/hintskinks/repairdb/&#039;);&quot;  title=&quot;RPM repair database details&quot; target=&quot;_blank&quot; href=&quot;http://www.rpm.org/hintskinks/repairdb/&quot;&gt;detailed on rpm&#039;s site&lt;/a&gt; however, that also failed with a segfault so it was obviously something a little more serious, but at least now I&#039;d backed up the /var/lib/rpm directory which I&#039;d need later.&lt;br /&gt;&lt;br /&gt;This stumped me for a while, so I started looking at a lower level using &#039;strace -f rpm&#039; to see where things failed - always at the same point just after loading /lib64/tls/libc.so.6 - so I uploaded, did I mention this machine is remote, a replacement copy of the underlying libc-2.3.4.so and rsync&#039;d it into place - no change rpm still segfaulting. After pondering, googling, trawling and no enlightenment later, I headed over to the nice folks at #rpm on irc.freenode.net, who were initially equally puzzled. Then, jbj (I think), mentioned about using rpm2cpio.sh - a shell script to unpack an rpm file when rpm is not installed / working etc. - which I&#039;d obviously not spotted before.&lt;br /&gt;&lt;br /&gt;So here&#039;s how it was fixed - so I don&#039;t forget, and because it may be of some use to someone else &lt;img src=&quot;http://blog.solutionperspectivemedia.co.uk/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; : &lt;br /&gt;&lt;a href=&quot;http://blog.solutionperspectivemedia.co.uk/archives/3-Segmentation-fault-using-RPM.html#extended&quot;&gt;Continue reading &quot;Segmentation fault using RPM&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 05 May 2006 00:40:00 +0000</pubDate>
    <guid isPermaLink="false">http://blog.solutionperspectivemedia.co.uk/archives/3-guid.html</guid>
    <category>centos 4</category>
<category>rpm</category>
<category>segfault</category>
<category>yum</category>

</item>

</channel>
</rss>