logo       

Re: Segmentation fault using libtidy (symptoms, diagnosis, and bush medicin: msg#00023

web.html-tidy.devel

Subject: Re: Segmentation fault using libtidy (symptoms, diagnosis, and bush medicine cure)

Matt, thanks for the excellent detective work. Nuno, thanks for the
dlopen() suggestion. A similar (possibly exact) conflict was reported
about a month ago. I suggested re-ordering the libs in the LD_LIBRARY_PATH
(or LIBPATH), but this might break RMagic in favor of Tidy.

So, I have a question, Matt who built your Tidy wrapper for Ruby? Possibly
they could use Nuno's suggestion when loading libtidy.so?

At 11:30 PM 6/25/2006 +0100, Nuno Lopes wrote:
> > It's been a long time since I did any C coding and I'm not really
> > familiar with the Unix library loading rules, especially as they
> > pertain to dynamically loading shared libraries so I'm not sure if
> > there is a rational explanation for this behaviour.
>
>Its normal, as the symbols are duplicated. Anyway, Ruby could use some of
>dlopen() flags (supported by newer glibcs) to try to avoid such problems.
>PHP uses those glibc tricks to try to avoid these problems (and there are
>many..), although miracles aren't possible, of course :)
>I would say that using RTLD_DEEPBIND in Ruby's dlopen mechanism would fix
>your problem.
>
>Anyway, thats why usually the C libraries prefix all their functions with
>the library name..
>
> > I hope this information might be useful in improving libtidy. Please
> > let me know if there is anything else I can add.
>
>The problem is: how to "fix" the problem without breaking compatibility with
>older tidy lib versions?
>
>Nuno
>
>
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
>_______________________________________________
>Tidy-develop mailing list
>Tidy-develop@xxxxxxxxxxxxxxxxxxxxx
>https://lists.sourceforge.net/lists/listinfo/tidy-develop


Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise