Re: [Valgrind-users] valgrind memcheck interferes with system responsiveness

2012-08-02 Thread Julian Seward
On Wednesday, August 01, 2012, songbird wrote:
   hello, and thanks for such a fun group of tools
 to work with, :)

Sounds like you need more memory.

 --00:00:00:00.000 27357----read-var-info=yes

This is possibly the cause of the problem.  Remove it.

Removing --track-origins=yes might also help a bit.

J

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Valgrind trunk on Mac

2012-08-02 Thread Julian Seward
On Wednesday, July 18, 2012, Nikolas Zimmermann wrote:
 Am 13.07.2012 um 13:55 schrieb Julian Seward:
  So it's precisely commit r12466 which makes valgrind fail on at least
  Lion. Commit diff: http://markmail.org/thread/gyxvhml2ungpxyad

I backed out r12466 just a few minutes ago, as r12813.  So the
unmodified ToT should work ok for you now.

Pls let me know any other critical failures on OSX asap.  I am 
planning to finalise OSX patches for the upcoming 3.8.0 release
in the next 24 hours or so.

J

--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Valgrind trunk on Mac

2012-08-02 Thread Jacob Goldstein
Hi Julian,

I just synced to r12813 and I'm still getting an error when running an
arbitrary WebKey layout test under Valgrind (see output below).

Nikolas - can you give this a try and see if you get the same results?

--- output ---

valgrind --dsymutil=yes --leak-check=full --trace-children=yes
WebKitBuild/Debug/DumpRenderTree
LayoutTests/fast/regions/content-webkit-from-flow-parsing.html
==1322== Memcheck, a memory error detector
==1322== Copyright (C) 2002-2011, and GNU GPL'd, by Julian Seward et al.
==1322== Using Valgrind-3.8.0.SVN and LibVEX; rerun with -h for copyright
info
==1322== Command: WebKitBuild/Debug/DumpRenderTree
LayoutTests/fast/regions/content-webkit-from-flow-parsing.html
==1322==
UNKNOWN __pthread_sigmask is unsupported. This warning will not be
repeated.
vex amd64-IR: unhandled instruction bytes: 0xF 0xB 0x55 0x48 0x89 0xE5
0x41 0x56
vex amd64-IR:   REX=0 REX.W=0 REX.R=0 REX.X=0 REX.B=0
vex amd64-IR:   VEX=0 VEX.L=0 VEX.n=0x0 ESC=0F
vex amd64-IR:   PFX.66=0 PFX.F2=0 PFX.F3=0
==1322== valgrind: Unrecognised instruction at address 0x950fb8c.
==1322==at 0x950FB8C: __abort (in /usr/lib/system/libsystem_c.dylib)
==1322==by 0x950FAAA: abort (in /usr/lib/system/libsystem_c.dylib)
==1322==by 0x96E7F01: _SCSessionUniverseByUIDAcquireAndLock (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0x96E1E28: FSNodeStorageGetAndLockCurrentUniverse (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0x96E1C90: FileIDTreeGetAndLockVolumeEntryForDeviceID (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0x96E1C46: FSMount::FSMount(unsigned int,
FSMountNumberType, short*, unsigned int const*) (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0x96E0490: PathGetObjectInfo(char const*, unsigned int,
unsigned int, short*, unsigned int*, unsigned int*, char*, unsigned int*,
unsigned char*) (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0x96E0278: FSPathMakeRefInternal(unsigned char const*,
unsigned int, unsigned int, FSRef*, unsigned char*) (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0x1763637: _CFGetFSRefFromURL (in
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundati
on)
==1322==by 0x17631A7: CFURLGetFSRef (in
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundati
on)
==1322==by 0x176D2E4:
_CFBundleCopyInfoDictionaryInResourceForkWithAllocator (in
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundati
on)
==1322==by 0x96FBFE5: GetBugsForOurBundleIDFromCoreservicesd (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0x96FBD75: _CSCheckFix (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Car
bonCore.framework/Versions/A/CarbonCore)
==1322==by 0xA0088E1: _LSApplicationCheckIn (in
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Lau
nchServices.framework/Versions/A/LaunchServices)
==1322==by 0xCCB73AE: _RegisterApplication (in
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewo
rks/HIServices.framework/Versions/A/HIServices)
==1322==by 0xCCB6F0C: GetCurrentProcess (in
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Framewo
rks/HIServices.framework/Versions/A/HIServices)
==1322==by 0xD4BA62E: _GetAggregateUIMode (in
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox
.framework/Versions/A/HIToolbox)
==1322==by 0xD4BA5E7: IsMenuBarVisible (in
/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox
.framework/Versions/A/HIToolbox)
==1322==by 0x1F140EA: _NSInitializeAppContext (in
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==1322==by 0x1F13626: -[NSApplication init] (in
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==1322==by 0x1F1324D: +[NSApplication sharedApplication] (in
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit)
==1322==by 0x100018FC8: main (DumpRenderTree.mm:912)
==1322== Your program just tried to execute an instruction that Valgrind
==1322== did not recognise.  There are two possible reasons for this.
==1322== 1. Your program has a bug and erroneously jumped to a non-code
==1322==location.  If you are running Memcheck and you just saw a
==1322==warning about a bad jump, it's probably your program's fault.
==1322== 2. The instruction is legitimate but Valgrind doesn't handle it,

[Valgrind-users] Using System Call in a Valgrind Tool

2012-08-02 Thread Wonjoon Song
Hello All

I am trying to build a new tool using valgrind. I'm also trying to use mmap 
system call to get huge memory block in my tool. When I use do_syscall in my 
tool I get an error message like this. I tried several other calls (getpid, 
etc) and every time I get this segmentation fault error.


===

--24479-- VALGRIND INTERNAL ERROR: Valgrind received a signal 11 (SIGSEGV) - 
exiting
--24479-- si_code=1;  Faulting address: 0x52;  sp: 0x629a2dc0

valgrind: the 'impossible' happened:
   Killed by fatal signal
==24479==at 0x38059A25: vgPlain_do_syscall (m_syscall.c:72)
==24479==by 0x3808E5E1: handle_syscall (scheduler.c:1057)


===

I tried to search for examples using system call in tools but it seems 
they(memcheck, massif, lackey) don't use it.

My question is, is it allowed to use system call in a valgrind tool? Is it 
recommended not to use system call? If it is allowed to use system call in a  
tool, what should I do to make this thing work?

I use valgrind-3.8.0.SVN, and 32 bit Ubuntu 12.04, which is a VM.

Thank you,
Wonjoon Song
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


[Valgrind-users] Valgrind on Mountain Lion

2012-08-02 Thread Jacob Goldstein
Has the ToT valgrind been tested on OS X 10.8 Mountain Lion?  Appears to 
perform different than on Lion, but I'm guessing Mountain Lion isn't support 
yet?
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users