<span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hello,</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I looked through the archives till Jan 2011 but could not find a thread similar to this issue, so I hope this is not a repost.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
System configuration: I am running 32-bit RHEL 6 basic server with rpm-4.8.0-27.el6.i686</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Rpm package: Let's call it myApp.rpm</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Before I go into the details, I am able to install/upgrade/erase myApp.rpm on RHEL 5 without any problems. This has been working for more than a year. I had to move to RHEL 6 because myApp now requires a glibc version which is newer than the one on RHEL 5.</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
The Problem: After I install myApp.rpm and start the application, I am not able to upgrade or re-install myApp.rpm. I have been using -vv option and the output looks like:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Success case: Fresh install</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>D:         60 /usr/libexec/hostd/</div><div>D:         61 /usr/sbin/</div>
<div>D:         62 /vmfs/devices/char/vmkdriver/</div><div>D:         63 /vmfs/volumes/sdrsLoadDef/</div><div>D: ==========</div><div>D: fini      120777  1 (   0,   0)        15 /bin/python;506a01b8</div><div>D: fini      100555  1 (   0,   0)   1093280 /bin/rhttpproxy;506a01b8</div>
<div>D: fini      100500  1 (   0,   0)      4891 /etc/init.d/mgmt-vmware;506a01</div></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Failure case: Upgrade/re-install after running the application</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>D:         60 /usr/libexec/hostd/</div>
<div>D:         61 /usr/sbin/</div><div>D:         62 /vmfs/devices/char/vmkdriver/</div><div>D:         63 /vmfs/volumes/sdrsLoadDef/</div><div>D: ==========</div><div>Segmentation fault (core dumped)    <---------------------------------- Failure</div>
</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
I tried a lot of different scenarios and below is the list of what works:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">1. Fresh install works fine - rpm -ivvf</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">2. Delete works fine - rpm -evv</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
3. Re-insall after deleting rpm in step (2) works fine as long as myApp was not started after installation: rpm -ivvf</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
4. Upgrade after step (1) works fine  as long as myApp was not started after installation: rpm -Uvvf</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br>
</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Scenarios that don't work:</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
5. Upgrade after step (1) after starting myApp: rpm -Uvvf</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">6. Re-insall after deleting rpm in step (2) after starting myApp: rpm -ivvf</div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">7. I see the crash even if stop myApp and then do upgrade/re-install</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">So basically after the app is started, I can only do erase. Upgrade or re-install fails with Seg fault. The crash is after rpm has done processing ''Directories not explicitly included in package:'' I can upload the complete output of -vv for success(install, upgrade, erase) and failure(upgrade, re-install). </div>
<div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Any help about how to find the root cause of the crash would be highly appreciated! </div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
Thanks,</div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Gaurav</div>