|
From: Farid A. <far...@ho...> - 2005-06-13 15:39:14
|
<html><div style='background-color:'><DIV> <DIV class=RTE>Hi, <BR>I recently switched from valgrind 2.0.0 to valgrind 2.4.0.</DIV> <DIV class=RTE>when I start valgrind with the following options:<BR> valgrind --skin=none --trace-syscalls=yes -v MyProgram</DIV> <DIV class=RTE>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.</DIV> <DIV class=RTE>For example in Valgrind 2.0.0 I will get </DIV> <DIV class=RTE>==8927== Reading syms from /sanbox/foo.so</DIV> <DIV class=RTE>but in Valgrind 2.4.0 I will get something like the following and then a long pause for most dynamic libraries</DIV> <DIV class=RTE> --> 985698304 (0x3AC09000)<BR>SYSCALL[8287,1](125):sys_mprotect ( 0x3AC20000, 13224, 0 ) --> 0 (0x0)<BR>SYSCALL[8287,1]( 90) special:old_mmap ( 0x3AC20000, 16384, 3, 18, 3, 90112 ) --> 985792512 (0x3AC20000)<BR>SYSCALL[8287,1]( 6):sys_close ( 3 ) --> 0 (0x0)<BR>SYSCALL[8287,1]( 5) mayBlock:sys_open ( 0xAFEFD4BC(/sandbox/foo.so), 0 ) --> ...<BR>SYSCALL[8287,1]( 5) --> 3 (0x3)<BR>SYSCALL[8287,1]( 3) mayBlock:sys_read ( 3, 0xAFEFD694, 1024 ) --> ...<BR>SYSCALL[8287,1]( 3) --> 1024 (0x400)<BR>SYSCALL[8287,1](197):sys_fstat64 ( 3, 0xAFEFD5C4 ) --> 0 (0x0)<BR>SYSCALL[8287,1]( 90) special:old_mmap ( 0x0, 4096, 3, 34, -1, 0 ) --> 985812992 (0x3AC25000)<BR>SYSCALL[8287,1]( 90) special:old_mmap ( 0x0, 77212, 5, 2, 3, 0 )==8287== Reading syms from /sandbox/foo.so (0x3AC27000)<BR> --> 985821184 (0x3AC27000)</DIV> <DIV class=RTE><BR>What could be wrong?<BR>Thanks<BR>Farid</DIV></DIV></div></html> |
|
From: Jeremy F. <je...@go...> - 2005-06-15 20:14:54
|
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
|
|
From: Farid A. <far...@ho...> - 2005-06-16 20:58:01
|
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 <je...@go...> To: Farid Abizeid <far...@ho...> CC: val...@li... 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: <BAY...@ph...l> X-Enigmail-Version: 0.90.1.0 X-Enigmail-Supports: pgp-inline, pgp-mime Return-Path: je...@go... 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 |