dynamic libraries load problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

dynamic libraries load problem

Farid Abizeid
Hi,
I recently switched from valgrind 2.0.0 to valgrind 2.4.0.
when I start valgrind with the following options:
 valgrind --skin=none --trace-syscalls=yes -v  MyProgram
valgrind works fine in version 2.0.0 but loading the dynamic libraries at startup takes a long long time to load in verion 2.4.0 (some dynamic libraries took around 4 minutes each to load. Also system calls which did not show in 2.0.0 are now showing in 2.4.0.
For example in Valgrind 2.0.0 I will get
==8927== Reading syms from /sanbox/foo.so
but in Valgrind 2.4.0 I will get something like the following and then a long pause for most dynamic libraries
 --> 985698304 (0x3AC09000)
SYSCALL[8287,1](125):sys_mprotect ( 0x3AC20000, 13224, 0 ) --> 0 (0x0)
SYSCALL[8287,1]( 90) special:old_mmap ( 0x3AC20000, 16384, 3, 18, 3, 90112 ) --> 985792512 (0x3AC20000)
SYSCALL[8287,1](  6):sys_close ( 3 ) --> 0 (0x0)
SYSCALL[8287,1](  5) mayBlock:sys_open ( 0xAFEFD4BC(/sandbox/foo.so), 0 ) --> ...
SYSCALL[8287,1](  5) --> 3 (0x3)
SYSCALL[8287,1](  3) mayBlock:sys_read ( 3, 0xAFEFD694, 1024 ) --> ...
SYSCALL[8287,1](  3) --> 1024 (0x400)
SYSCALL[8287,1](197):sys_fstat64 ( 3, 0xAFEFD5C4 ) --> 0 (0x0)
SYSCALL[8287,1]( 90) special:old_mmap ( 0x0, 4096, 3, 34, -1, 0 ) --> 985812992 (0x3AC25000)
SYSCALL[8287,1]( 90) special:old_mmap ( 0x0, 77212, 5, 2, 3, 0 )==8287== Reading syms from /sandbox/foo.so (0x3AC27000)
 --> 985821184 (0x3AC27000)

What could be wrong?
Thanks
Farid
------------------------------------------------------- This SF.Net email is sponsored by: NEC IT Guy Games. How far can you shotput a projector? How fast can you ride your desk chair down the office luge track? If you want to score the big prize, get to know the little guy. Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20 _______________________________________________ Valgrind-users mailing list [hidden email] https://lists.sourceforge.net/lists/listinfo/valgrind-users
Reply | Threaded
Open this post in threaded view
|

Re: dynamic libraries load problem

jeremy (Bugzilla)
Farid Abizeid wrote:  

> I recently switched from valgrind 2.0.0 to valgrind 2.4.0.
> when I start valgrind with the following options:
>  valgrind --skin=none --trace-syscalls=yes -v  MyProgram
> valgrind works fine in version 2.0.0 but loading the dynamic libraries
> at startup takes a long long time to load in verion 2.4.0 (some
> dynamic libraries took around 4 minutes each to load. Also system
> calls which did not show in 2.0.0 are now showing in 2.4.0.

I noticed that too.  Something got a lot slower in the stabs debug
reader in 2.4; I had a quick look, but couldn't see anything obvious.
What distro are you using?  The quick (possibly undesirable) fix might
be to strip your libraries; this will retain all the dynamic information
they need to function but remove the debug info.

Could you check Bugzilla and see if this has already been reported, and
report it if not?

Thanks,
    J



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users
Reply | Threaded
Open this post in threaded view
|

Re: dynamic libraries load problem

Farid Abizeid
I compiled valgrind 2.4.0 on Debian with KDE 3.1 and gcc version 3.2.3
I don't seem to find this problem in Bugzilla.

Thanks

----Original Message Follows----
From: Jeremy Fitzhardinge <[hidden email]>
To: Farid Abizeid <[hidden email]>
CC: [hidden email]
Subject: Re: [Valgrind-users] dynamic libraries load problem
Date: Wed, 15 Jun 2005 12:26:43 -0700
MIME-Version: 1.0
Received: from mail.goop.org ([64.81.55.164]) by mc4-f41.hotmail.com with
Microsoft SMTPSVC(6.0.3790.211); Wed, 15 Jun 2005 13:14:52 -0700
Received: by lurch.goop.org (Postfix, from userid 525)id 7E6022C808F; Wed,
15 Jun 2005 13:14:49 -0700 (PDT)
Received: from [172.17.215.163] (host113.pao.digeo.com [12.47.58.113])by
lurch.goop.org (Postfix) with ESMTPid 44A1E2C8087; Wed, 15 Jun 2005 13:14:47
-0700 (PDT)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
User-Agent: Mozilla Thunderbird 1.0.2-1.3.3 (X11/20050513)
X-Accept-Language: en-us, en
References: <[hidden email]>
X-Enigmail-Version: 0.90.1.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Return-Path: [hidden email]
X-OriginalArrivalTime: 15 Jun 2005 20:14:52.0835 (UTC)
FILETIME=[E3CF2F30:01C571E6]

Farid Abizeid wrote:

 > I recently switched from valgrind 2.0.0 to valgrind 2.4.0.
 > when I start valgrind with the following options:
 >  valgrind --skin=none --trace-syscalls=yes -v  MyProgram
 > valgrind works fine in version 2.0.0 but loading the dynamic libraries
 > at startup takes a long long time to load in verion 2.4.0 (some
 > dynamic libraries took around 4 minutes each to load. Also system
 > calls which did not show in 2.0.0 are now showing in 2.4.0.

I noticed that too.  Something got a lot slower in the stabs debug
reader in 2.4; I had a quick look, but couldn't see anything obvious.
What distro are you using?  The quick (possibly undesirable) fix might
be to strip your libraries; this will retain all the dynamic information
they need to function but remove the debug info.

Could you check Bugzilla and see if this has already been reported, and
report it if not?

Thanks,
     J




-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Valgrind-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/valgrind-users