On Fri, 2004-05-14 at 20:56, Stas Bekman wrote:
Marc Gracia (Oasyssoft) wrote:
> Opps.. Sorry after all gdb an strace I forgot to send the perl -V
> 
> Summary of my perl5 (revision 5.0 version 8 subversion 0) configuration:
[...]

Thanks.

Have you tried a more recent 5.8.x perl? 5.8.4 is out for quite some time 
already. I'm not sure if it's going to be of help, since it seems to be a 
glibc bug, but if you are already building from scratch, why not go with the 
best available version.

I'll try it... But I'll preffer not to modify this system more by now.

> The staticaly linked perl it's a good idea... but will this hit the
> memory space of the running httpd proceses? There will be a lot on those
> machines....

You mean you will have several independent Apache/mod_perl instances running 
on the same machine? If so, yes, then you will use more memory as there will 
be no perl's libperl.so sharing. Though I'm thinking - if you use a static 
perl's libperl.a, but dynamic modperl's libperl.so (which is confusingly 
called in the same way in mp1), you may not be affected at all. I guess that 
doesn't work, since modperl's shared lib gets loaded by Apache, and not 
through ld.so, so the system will not know to reuse the already loaded instance.

There something else you can try though. Force an early resolution of all 
symbols when the program loads (which is a default behavior for MacOSX and a 
few other platforms). For perl xs modules you do that by setting env var 
RTLD_NOW=1. Though that won't work for perl itself. For perl itself (or any 
other app that links to shared libs) you will need to set env var 
LD_BIND_NOW=1. Let us know whether that trick has worked.

I'll try it now, get back to you with the results...

Also this seems to be an interesting util, which I haven't tried yet.
http://www.linuxforum.com/man/prelink.8.php

Aha!! You thinked like me, I'm also a fanatic gentoo user, and gentoo makes use of this utility intensively.
When I suspected a dinamic link resoultion problem I've tried it (RedHat9 includes the utility, and the latest rpm seems to use it... I did'nt know this).
Perl libperl and mod_perl libperl gets prelinked OK, but definitively, is something wrong with the glibc, because prelink "aborts" trying to prelink it....

And also, I can't recompile the glibc srpms. I'm sure it's because I've changed the default RedHat kernel for the aggresive "Wolk" kernel, and there are some incompatibility....

Many thanks for the help, and sorry for this now off-topic post :)

Marc Gracia
Promotion Manager

e-mail: [EMAIL PROTECTED]
tel:      +34 675 508 820
fax:      +34 938 721 549


http://www.bubblesoulmusic.com
C/Muralla del Carme, 10
08240 Manresa
BARCELONA
SPAIN


<<attachment: image001.gif>>

Reply via email to