perl-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Jacobowitz <d...@andrew.cmu.edu>
Subject Re: perlrequire/perlmodule are running twice and slow
Date Mon, 26 Nov 2001 19:47:06 GMT
On Tue, Nov 27, 2001 at 02:02:57AM +0800, Stas Bekman wrote:
> I've a bunch of them, but I think that the one in /lib/ that's used:
> 
> % urpmf libthread_db
> glibc:/lib/libthread_db-1.0.so
> glibc:/lib/libthread_db.so.1
> glibc_lsb:/lib/lsb/libthread_db-1.0.so
> glibc_lsb:/lib/lsb/libthread_db.so.1
> glibc-devel:/usr/lib/libthread_db.so
> glibc_lsb-devel:/usr/lib/lsb/libthread_db.so
> 
> what should I ldd to figure out which one is used?

Well, what version of the glibc RPM is installed?  (glibc, not any of
the others).  My bet is that his is just broken somehow; I recall a
recent version having that problem.

> >Also, you might want to see if setting auto-solib-add to 0 speeds you
> >up.  You'll need to add them by hand (I think "sharedlibrary" or "info
> >sharedlibrary" will do it) before setting breakpoints in them, but that
> >may be fine for your use.
> 
> 
> Whoah! That makes a huge difference!
> 
> with this -commands file:
> 
> handle SIGPIPE pass
> handle SIGPIPE nostop
> set auto-solib-add 0
> b apr_poll
> run -DONE_PROCESS -d /home/stas/apache.org/mp-subproc/t -f 
> /home/stas/apache.org/mp-subproc/t/conf/httpd.conf -DAPACHE2 
> -DPERL_USEITHREADS
> 
> I get the gdb prompt in less than 5 secs! That's so sweet :) the only 
> problem now is that I need to craft gdb command files to load the 
> symbols that I want to debug, but I can live with that.
> 
> I can see what shared libraries it has loaded (without reading the 
> symbol table) with 'info sharedlibrary' and then I force gdb to read the 
> symbols from the wanted library using 'sharedlibrary regex' and voila, I 
> can set the breakpoint.
> 
> Thanks a lot for this very timely help, Daniel!

Glad to help.  Now back to fixing the actual problems...

> While we are on this topic, do you know of a good book about gdb, shared 
> libs, symbols, linking and stuff? The manuals are useful, but I'm really 
> looking for a good book about this material, as I see many books that 
> mention a bit but none does indepth coverage. The book "PANIC! UNIX 
> System Crash, Dump Analysis" seems to be exactly what I'm looking for, 
> but it's not very useful as it uses Sun's proprietary tools :(

Nope, sorry.  There needs to be a good one published :)

-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org


Mime
View raw message