Thanks for the replies, Greg and Panu. And sorry for the delay in replying, I was travelling.<div><br></div><div>Greg: I had already looked at the pre and post install/uninstall scripts, there was nothing interesting there.</div>
<div><br></div><div>Panu: strace didn't give much info either and gbd complained that the backtrace was corrupted. I increased the size of the VM and was finally able to get a backtrace with some info.</div><div><br></div>
<div>It turned out that the rpm bundle was replaced libz.so with a version that the "rpm" command didn't like. So the first install would work, but any rpm command after that failed because libz.so version was not what "rpm" expected. Not replacing the existing libz.so and setting LD_LIBRARY_PATH for the program being installed to use the required version from a different location fixed the issue.</div>
<div><br></div><div>Thanks for all the help!</div><div><br></div><div>Gaurav<br><br><div class="gmail_quote">On Wed, Oct 3, 2012 at 11:39 PM, Panu Matilainen <span dir="ltr"><<a href="mailto:pmatilai@laiskiainen.org" target="_blank">pmatilai@laiskiainen.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On 10/03/2012 01:44 AM, gaurav salia wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
I looked through the archives till Jan 2011 but could not find a thread<br>
similar to this issue, so I hope this is not a repost.<br>
<br>
System configuration: I am running 32-bit RHEL 6 basic server<br>
with rpm-4.8.0-27.el6.i686<br>
Rpm package: Let's call it myApp.rpm<br>
<br>
Before I go into the details, I am able to install/upgrade/erase myApp.rpm<br>
on RHEL 5 without any problems. This has been working for more than a year.<br>
I had to move to RHEL 6 because myApp now requires a glibc version which is<br>
newer than the one on RHEL 5.<br>
<br>
The Problem: After I install myApp.rpm and start the application, I am not<br>
able to upgrade or re-install myApp.rpm. I have been using -vv option and<br>
the output looks like:<br>
Success case: Fresh install<br>
D:         60 /usr/libexec/hostd/<br>
D:         61 /usr/sbin/<br>
D:         62 /vmfs/devices/char/vmkdriver/<br>
D:         63 /vmfs/volumes/sdrsLoadDef/<br>
D: ==========<br>
D: fini      120777  1 (   0,   0)        15 /bin/python;506a01b8<br>
D: fini      100555  1 (   0,   0)   1093280 /bin/rhttpproxy;506a01b8<br>
D: fini      100500  1 (   0,   0)      4891 /etc/init.d/mgmt-vmware;506a01<br>
<br>
Failure case: Upgrade/re-install after running the application<br>
D:         60 /usr/libexec/hostd/<br>
D:         61 /usr/sbin/<br>
D:         62 /vmfs/devices/char/vmkdriver/<br>
D:         63 /vmfs/volumes/sdrsLoadDef/<br>
D: ==========<br>
Segmentation fault (core dumped)    <-----------------------------<u></u>-----<br>
Failure<br>
<br>
I tried a lot of different scenarios and below is the list of what works:<br>
1. Fresh install works fine - rpm -ivvf<br>
2. Delete works fine - rpm -evv<br>
3. Re-insall after deleting rpm in step (2) works fine as long as myApp was<br>
not started after installation: rpm -ivvf<br>
4. Upgrade after step (1) works fine  as long as myApp was not started<br>
after installation: rpm -Uvvf<br>
<br>
Scenarios that don't work:<br>
5. Upgrade after step (1) after starting myApp: rpm -Uvvf<br>
6. Re-insall after deleting rpm in step (2) after starting myApp: rpm -ivvf<br>
7. I see the crash even if stop myApp and then do upgrade/re-install<br>
<br>
So basically after the app is started, I can only do erase. Upgrade or<br>
re-install fails with Seg fault. The crash is after rpm has done processing<br>
''Directories not explicitly included in package:'' I can upload the<br>
complete output of -vv for success(install, upgrade, erase) and<br>
failure(upgrade, re-install).<br>
<br>
Any help about how to find the root cause of the crash would be highly<br>
appreciated!<br>
</blockquote>
<br></div></div>
Rpm segfaulting typically means a bug in rpm... and if it worked in RHEL 5 and crashes in 6, its a regression.<br>
<br>
Since you're apparently a RHEL customer, you should report this through the official support channels (note that bugzilla is NOT an official support channel, although an additional bugzilla report wont hurt either) to get it fixed.<div class="im">
<br>
<br>
> D:         62 /vmfs/devices/char/vmkdriver/<br>
> D:         63 /vmfs/volumes/sdrsLoadDef/<br>
<br></div>
This smells like some kind of virtual filesystem (Vmware?), which probably has some special characteristics when accessed, and would be my primary initial suspect for the cause of the crash. A strace of the failure case might provide the necessary clues, gdb backtrace for added bonus. The -vv output of rpm might be helpful too.<span class="HOEnZb"><font color="#888888"><br>

<br>
        - Panu -</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<u></u>_________________<br>
Rpm-list mailing list<br>
<a href="mailto:Rpm-list@lists.rpm.org" target="_blank">Rpm-list@lists.rpm.org</a><br>
<a href="http://lists.rpm.org/mailman/listinfo/rpm-list" target="_blank">http://lists.rpm.org/mailman/<u></u>listinfo/rpm-list</a><br>
</div></div></blockquote></div><br></div>