[Xapian-discuss] php bindings error

Ryan Mahoney ryan at frameweld.com
Thu Mar 30 17:38:57 BST 2006


Hi Olly, after more investigation, I found that I would see that error 
*any time* I had that line in my php.ini.  So, I can't run php at all 
(from the command line) when that line is present.  I have been just 
using dl("xapian.so"); and things have been working just fine.  Strange!

-r

Olly Betts wrote:
> Ryan Mahoney wrote:
>   
>> However, when I run the smoketest or the examples, I get the following 
>> message from php:
>>
>> *** glibc detected *** double free or corruption (!prev): 0x0a37e760 ***
>>
>> any thoughts?  I don't seem to be seeing this message when I run php 
>> through apache, but I haven't tested that much.
>>     
>
> In recent glibc versions, the malloc implementation detects an attempt
> to free the same allocation twice.
>
> It's unclear what is trying to do this though.  It's probably not Xapian
> (since we run the test suite under valgrind which should detect this).
> Or it could be the SWIG generated code or our hand written glue code,
> or PHP itself.
>
> If you look in the apache error.log, do you see the message when you
> run under apache?
>
> On Fri, Mar 24, 2006 at 04:57:21PM -0500, Ryan Mahoney wrote:
>   
>> I don't know why, but when I take 'extension=xapian.so' out of php.ini, 
>> and add  'dl("xapian.so");' to my php scripts... everything works fine!
>>     
>
> It would be good to work out what's going on though.  Double-free can
> be an exploitable security hole.
>
> If you cut down smoketest.php what's the smallest example which causes
> this?
>
> Cheers,
>     Olly
>
> _______________________________________________
> Xapian-discuss mailing list
> Xapian-discuss at lists.xapian.org
> http://lists.xapian.org/mailman/listinfo/xapian-discuss
>
>
>
>
>   





More information about the Xapian-discuss mailing list