<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Magma Digital &#187; segfault</title>
	<atom:link href="http://blog.solutionperspectivemedia.co.uk/?feed=rss2&#038;tag=segfault" rel="self" type="application/rss+xml" />
	<link>http://blog.solutionperspectivemedia.co.uk</link>
	<description>our little place on the web</description>
	<lastBuildDate>Mon, 28 Jun 2010 22:07:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Segmentation fault using RPM</title>
		<link>http://blog.solutionperspectivemedia.co.uk/?p=3</link>
		<comments>http://blog.solutionperspectivemedia.co.uk/?p=3#comments</comments>
		<pubDate>Fri, 05 May 2006 00:40:00 +0000</pubDate>
		<dc:creator>Jeremy Coates</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos 4]]></category>
		<category><![CDATA[rpm]]></category>
		<category><![CDATA[segfault]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://blog.solutionperspectivemedia.co.uk/wordpress/?p=3</guid>
		<description><![CDATA[I&#8217;ve got a CentOS 4.2 machine (x86_64 variety) that usually runs very sweetly, with hindsight, the adage if it ain&#8217;t broke don&#8217;t fix it comes to mind!
There I was doing the usual &#8216;yum update&#8217; then the next thing &#8217;segmentation fault&#8217; &#8211; agghhh! Anything I tried with yum resulted in the same problem, so turned to [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve got a CentOS 4.2 machine (x86_64 variety) that usually runs very sweetly, with hindsight, the adage if it ain&#8217;t broke don&#8217;t fix it comes to mind!</p>
<p>There I was doing the usual &#8216;yum update&#8217; then the next thing &#8217;segmentation fault&#8217; &#8211; 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&#8217;s going on elsewhere on the system &#8211; all seemed fine as usual, still got web server, mail etc.</p>
<p>I tried digging around in yum, rpm and message logs &#8211; nothing of any interest, so I remembered that you can do a rpm rebuilddb as <a title="RPM repair database details" target="_blank" href="http://www.rpm.org/hintskinks/repairdb/">detailed on rpm&#8217;s site</a> however, that also failed with a segfault so it was obviously something a little more serious, but at least now I&#8217;d backed up the /var/lib/rpm directory which I&#8217;d need later.</p>
<p>This stumped me for a while, so I started looking at a lower level using &#8217;strace -f rpm&#8217; to see where things failed &#8211; always at the same point just after loading /lib64/tls/libc.so.6 &#8211; so I uploaded, did I mention this machine is remote, a replacement copy of the underlying libc-2.3.4.so and rsync&#8217;d it into place &#8211; 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 &#8211; a shell script to unpack an rpm file when rpm is not installed / working etc. &#8211; which I&#8217;d obviously not spotted before.</p>
<p>So here&#8217;s how it was fixed &#8211; so I don&#8217;t forget, and because it may be of some use to someone else <img src='http://blog.solutionperspectivemedia.co.uk/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  :</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.solutionperspectivemedia.co.uk/?feed=rss2&amp;p=3</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
