<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Thanks for the tips Dan. I'll try them on the OpenSUSE box here in just a bit. <div><br></div><div>I did try installation on an Ubuntu x86-64 box as well, and had it up and running in less than 10 minutes (I'm very impressed thus-far with Ubuntu). The Ubuntu i386 server and the packages on the ag-projects website was an insanely fast installation.</div><div><br></div><div>With both Ubuntu installations, I did end up having to upgrade to the latest version of libnetfilter-conntrack1_0.0.89-1 and libnetfilter-conntrack-dev_0.0.89-1 from what was available on the repositories. </div><div><br></div><div>In any case, I'm putting together a comprehensive write-up and will stick it on my site when I'm done.</div><div><br></div><div>Thanks again,</div><div><br></div><div> - Darren</div><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div><br class="Apple-interchange-newline"><br></div><div>_____________________________</div><div><br></div><div><a href="mailto:dmsessions@gmail.com">dmsessions@gmail.com</a></div><div><a href="http://www.darrensessions.com">http://www.darrensessions.com</a></div><div><font class="Apple-style-span" face="Arial"><span class="Apple-style-span" style="line-height: 14px; white-space: pre-wrap; ">_____________________________</span></font></div><div><br></div></span></div></span></div></span></div></span></div></span><br class="Apple-interchange-newline"></div></span><br class="Apple-interchange-newline"> </div><br><div><div>On Aug 18, 2008, at 7:10 AM, Dan Pascu wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><br>Make sure you rebuild python-gnutls after you installed a new libgnutls <br>and libgcrypt on your system. Also make sure you build it with the right <br>libgcrypt. As I see from your syslog, it gave the error first with <br>libgcrypt.so.11.4.3 then with libgcrypt.so.11.4.4 which means the library <br>changed in between.<br><br>python-gnutls loads libgnutls at runtime, it is not linked with it, but at <br>the same time it is linked with libgcrypt at build time. That means it <br>will load whatever the latest version of libgnutls you have installed at <br>the moment you run the application, while still being linked with the <br>libgcrypt from the build time. However libgnults itself also is linked <br>with libgcrpt independently of python-gnutls. If the version of the <br>libgcrypt used by python-gnutls is different from the one used by <br>libgnutls internally, you have a conflict which usually results in a <br>segmentation fault.<br><br>To give an example to make it more clear:<br><br>1. You have libgnutls-2.4.1, libgcrypt-1.4.0 and libgcrypt-1.4.0-dev <br>installed.<br>2. You build python-gnults, which will link it with lingcrypt-1.4.0<br>3. You run some python-gnutls based application. When it starts it will <br>load libgcrypt-1.4.0 and setup some thread safety procedures inside <br>libgcrypt. Then python-gnults loads libgnutls-2.4.1 which in turn loads <br>its own libgcrypt-1.4.0, which is the same version already initialized by <br>python-gnutls, so there is no conflict.<br><br>4. You install a new libgnutls-2.5.3 and its corresponding libgcrypt-1.4.1<br>5. Without rebuilding python-gnutls, you run a python-gnutls based <br>application. When it starts it loads libgcrypt-1.4.0 to do the thread <br>safety setup, and then loads libgnutls-2.5.3 which in turn loads <br>libgcrypt-1.4.1 (a different version) which was not initialized to be <br>thread safe. In this case a core dump occurs sooner or later.<br><br>6. You rebuild python-gnults, but you still have libgcrypt-1.4.0-dev <br>installed. In this case nothing happens as it will still link with <br>libgcrypt-1.4.0 instead of 1.4.1 (which is linked by libgnutls itself) so <br>you end up with the same problem.<br><br>In conclusion, you need to make sure you have the libgcrypt-dev that <br>corresponds to the libcgrypt with which libgnutls itself is linked, and <br>then rebuild python-gnutls after you upgraded libgnutls or libgcrypt.<br><br><br><blockquote type="cite">ss1:/src # /usr/local/bin/media-dispatcher --no-fork<br></blockquote><blockquote type="cite">Starting MediaProxy Dispatcher 2.0.3<br></blockquote><blockquote type="cite">Twisted is using epollreactor<br></blockquote><blockquote type="cite">Segmentation fault<br></blockquote><blockquote type="cite">ss1:/src # tail -f /var/log/messages<br></blockquote><blockquote type="cite">--snip--<br></blockquote><blockquote type="cite">Aug 15 19:44:03 ss1 kernel: media-dispatche[21922]: segfault at 10 ip<br></blockquote><blockquote type="cite">7ffb9f27fe69 sp 7fffad19e690 error 4 in libgcrypt.so.<br></blockquote><blockquote type="cite">11.4.3[7ffb9f23b000+64000]<br></blockquote><blockquote type="cite">Aug 15 19:44:21 ss1 kernel: media-dispatche[21924]: segfault at 10 ip<br></blockquote><blockquote type="cite">7f255b4e1e69 sp 7fff69400900 error 4 in libgcrypt.so.<br></blockquote><blockquote type="cite">11.4.3[7f255b49d000+64000]<br></blockquote><blockquote type="cite">Aug 15 19:52:25 ss1 kernel: media-dispatche[11611]: segfault at 10 ip<br></blockquote><blockquote type="cite">7f9cfde05a79 sp 7fff0bd25230 error 4 in libgcrypt.so.<br></blockquote><blockquote type="cite">11.4.4[7f9cfddc1000+64000]<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm using:<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">OpenSUSE 11 x86-64<br></blockquote><blockquote type="cite">mediaproxy-2.0.3<br></blockquote><blockquote type="cite">libtasn1-1.4<br></blockquote><blockquote type="cite">libgcrypt-1.4.1<br></blockquote><blockquote type="cite">libnetfilter_conntrack-0.0.96<br></blockquote><blockquote type="cite">libnfnetlink-0.0.39<br></blockquote><blockquote type="cite">gnutls-2.5.3<br></blockquote><blockquote type="cite">python-application-1.0.9<br></blockquote><blockquote type="cite">python-gnutls-1.1.6<br></blockquote><blockquote type="cite">python-cjson-1.0.5<br></blockquote><blockquote type="cite">SQLObject-0.10.2<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I've tried the stock libgcrypt and gnutls in OpenSUSE 11, and was get<br></blockquote><blockquote type="cite">x509 related error messages, so I removed them and upgraded.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Any ideas would be appreciated.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"> - Darren<br></blockquote><br>-- <br>Dan<br></div></blockquote></div><br></div></body></html>