osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug 62083] RTLD_GLOBAL should not be used for loading modules


https://bz.apache.org/bugzilla/show_bug.cgi?id=62083

--- Comment #2 from Alejandro Perez <alejandro.perez.mendez@xxxxxxxxx> ---
(In reply to Joe Orton from comment #1)
> Though we've tried to remove inter-module symbol dependencies there are
> still cases where modules depend on symbols of another (mod_proxy_* in
> particular) so even if APR allowed use of RTLD_LOCAL, httpd couldn't enable
> it everywhere.

I see. I didn't think of it, but you are right.

> 
> Which version of PHP are you using?  

PHP5

>I thought it used RTLD_DEEPBIND by
> default now which fixed these issues 

Umm, at least apr 1.6.3 does not seem to use DEEPBIND, that might fix the
issue, yes. A simple "grep DEEP * -R" gives nothing.

>alternatively you could patch
> apr_dso_open to do the same.

That's what I did, but instead replacing RTLD_GLOBAL with RTLD_LOCAL, and it
seemed to work. It seems to work as well with RTLD_DEEPBIND.

Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: bugs-help@xxxxxxxxxxxxxxxx