Re: [Valgrind-users] Using Valgrind (helgrind/drd) to detect data races in Inter-Process Communications

2016-08-01 Thread Alexander Potapenko
On Mon, Aug 1, 2016 at 1:45 PM, CJ YAMIGOS <cjyami...@gmail.com> wrote:
> Hi everyone,
>
> I started recently using Valgrind (Helgrind and DRD), and I mainly want to
> detect data races in my program composed of two processes that communicate
> via a POSIX shared memory object. I found quite a lot of examples showing
> how Valgrind can detect data races in multithreaded applications (where all
> threads belong to the same process). However, this is not the case I am
> interested in.
>
> Basically, my program is composed of two processes, namely Server and
> Client. The Server is responsible of creating a named shared memory object
> with "shm_open", sets the size with "ftruncate" and maps the shared memory
> object to Server's virtual address space with "mmap". On the other hand, the
> Client opens/gets this shared memory object with "shm_open" and then maps it
> to Client's virtual address space with "mmap". Both Server and Client
> processes have Read & Write access to this shared memory object. There is a
> nice example in:
> https://www.softprayog.in/programming/interprocess-communication-using-posix-shared-memory-in-linux;
> the main difference between this example and my program is I am not using
> any semaphore (i.e., any kind of protection mechanism neither) at all.
>
> When running my program with Valgrind (v 3.7.0) in Linux, I am getting no
> warnings about potential data races in my program. In fact, when both Server
> and Client processes are running in parallel (i.e., each in a different
> processor core) and there is not a mechanism protecting the access to the
> shared memory object (e.g., a data structure), I expect somehow to see some
> data races warnings.
Neither Helgrind nor DRD are able to detect data races between shared
memory pages.
This is hard, because the tool needs to track the happens-before
relation between threads belonging to different processes.
Because Valgrind itself is single-threaded (i.e. it serializes the
threads of the inspected program), synchronizing the states of two
Valgrind processes that have just a common shared memory page is going
to be quite painful.

> So, I wonder whether I am missing something here or Valgrind just does not
> support data race detection in Inter-Process Communications (like the one I
> have in my program). Many thanks in advance for your helps!
>
> Best,
>
> Carlos H.
>
> --
>
> _______
> Valgrind-users mailing list
> Valgrind-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>



-- 
Alexander Potapenko
Software Engineer

Google Germany GmbH
Erika-Mann-Straße, 33
80636 München

Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

--
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] helgrind, clang and thread_local

2016-03-21 Thread Alexander Potapenko
On Sat, Mar 19, 2016 at 10:02 PM, David Faure <fa...@kde.org> wrote:
> The following code (from Qt5's qlogging.cpp)
>
> static thread_local bool msgHandlerGrabbed = false;
>
> static bool grabMessageHandler()
> {
> if (msgHandlerGrabbed)
> return false;
>
> msgHandlerGrabbed = true;
> return true;
> }
>
> static void ungrabMessageHandler()
> {
> msgHandlerGrabbed = false;
> }
>
> (purpose: avoiding recursion)
>
> when compiled with clang 3.5.0, and called from multiple threads, leads to 
> this helgrind warning:
>
> ==1218== Possible data race during write of size 1 at 0x1E1F86F0 by thread #17
> ==1218== Locks held: none
> ==1218==at 0x783637B: grabMessageHandler() (qlogging.cpp:1543)
> ==1218==by 0x783640B: qt_message_print(QtMsgType, QMessageLogContext 
> const&, QString const&) (qlogging.cpp:1571)
> ==1218==by 0x783658A: qt_message_output(QtMsgType, QMessageLogContext 
> const&, QString const&) (qlogging.cpp:1622)
> ==1218==by 0x798DC32: QDebug::~QDebug() (qdebug.cpp:150)
> ==1218==by 0x4F24EF6: CompletionThread::done() (kurlcompletion.cpp:232)
> ==1218==by 0x4F1ECCD: DirectoryListThread::run() (kurlcompletion.cpp:368)
> ==1218==by 0x784B0B6: QThreadPrivate::start(void*) (qthread_unix.cpp:340)
> ==1218==by 0x4C3005E: mythread_wrapper (hg_intercepts.c:389)
> ==1218==by 0x9DAE0A3: start_thread (pthread_create.c:309)
> ==1218==by 0x869100C: clone (clone.S:111)
> ==1218==
> ==1218== This conflicts with a previous write of size 1 by thread #16
> ==1218== Locks held: none
> ==1218==at 0x7836399: ungrabMessageHandler() (qlogging.cpp:1549)
> ==1218==by 0x78364BC: qt_message_print(QtMsgType, QMessageLogContext 
> const&, QString const&) (qlogging.cpp:1579)
> ==1218==by 0x783658A: qt_message_output(QtMsgType, QMessageLogContext 
> const&, QString const&) (qlogging.cpp:1622)
> ==1218==by 0x798DC32: QDebug::~QDebug() (qdebug.cpp:150)
> ==1218==by 0x4F24EF6: CompletionThread::done() (kurlcompletion.cpp:232)
> ==1218==by 0x4F1ECCD: DirectoryListThread::run() (kurlcompletion.cpp:368)
> ==1218==by 0x784B0B6: QThreadPrivate::start(void*) (qthread_unix.cpp:340)
> ==1218==by 0x4C3005E: mythread_wrapper (hg_intercepts.c:389)
> ==1218==  Address 0x1e1f86f0 is in a rw- anonymous segment
>
> Helgrind bug, or is clang silently ignoring thread_local?
Clang documentation (http://clang.llvm.org/cxx_status.html) says
thread_local support requires libc++abi 3.6+ or libsupc++ 4.8+.
Does your binary use any of those?

> --
> David Faure, fa...@kde.org, http://www.davidfaure.fr
> Working on KDE Frameworks 5
>
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
> ___
> Valgrind-users mailing list
> Valgrind-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-users



-- 
Alexander Potapenko
Software Engineer

Google Germany GmbH
Erika-Mann-Straße, 33
80636 München

Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351=/4140
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] valgrind installation failed

2016-03-15 Thread Alexander Potapenko
It will be accessible, but you'll have to provide the full path to the
binary, e.g.
 $ /path/to/valgrind/source/inst/bin/valgrind ./your_program

If you want to just type `valgrind`, you'll need to either install it
to /usr/local, or add  /path/to/valgrind/source/inst/bin/ to your
PATH:
 $ export PATH="$PATH:/path/to/valgrind/source/inst/bin/"

HTH

On Tue, Mar 15, 2016 at 12:30 PM, Alla _ <modelling.d...@gmail.com> wrote:
> Alexander,
> Thank you very much for your answer.
>
> One more question:
>
> if I have the Valgrind package stored within my local directory together
> with usual documents and study programs, and if I manage to successfully
> install Valgrind (I will follow your advice now), do I understand correctly
> that
> it will be accessible from the Terminal, i.e. it doesn't matter where the
> original
> package is stored?
>
> Thank you!
> Best,
> Alla
>
> On Tue, Mar 15, 2016 at 3:12 PM, Alexander Potapenko <gli...@google.com>
> wrote:
>>
>> Looks like you're trying to install to /usr/local with insufficient
>> privileges.
>> You can either run `sudo make install` to install as root, or
>> configure the build to put the binaries into a local directory:
>>  $ ./autogen.sh
>>  $ ./configure --prefix=`pwd`/inst
>>  $ make && make install
>>
>> On Tue, Mar 15, 2016 at 11:41 AM, Alla _ <modelling.d...@gmail.com> wrote:
>> > Hello!
>> >
>> > I am a newbie, learning C programming. Have just tried to install
>> > Valgrind,
>> > following instructions in the README. Installation failed. My system:
>> > Mac OS
>> > X 10.7.5
>> >
>> > Here are the steps I made:
>> >
>> > installed
>> >
>> > curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
>> > tar -xzf autoconf-latest.tar.gz
>> > cd autoconf-[x.xx]
>> > ./configure && make && sudo make install
>> >
>> > curl -OL http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz
>> > tar -xzf automake-1.15.tar.gz
>> > cd automake-1.15
>> > ./configure && make && sudo make install
>> >
>> > cd valgrind-3.11.0
>> > ./autogen.sh
>> > ./configure
>> >
>> > make
>> >
>> > make install
>> >
>> > Here is the message I got in Terminal after make install command:
>> > make  install-recursive
>> > Making install in include
>> > make[3]: Nothing to be done for `install-exec-am'.
>> >  .././install-sh -c -d '/usr/local/include/valgrind'
>> > mkdir: /usr/local/include/valgrind: Permission denied
>> > make[3]: *** [install-nobase_pkgincludeHEADERS] Error 1
>> > make[2]: *** [install-am] Error 2
>> > make[1]: *** [install-recursive] Error 1
>> > make: *** [install] Error 2
>> >
>> >
>> >
>> > Respectfully,
>> > Alla
>> >
>> >
>> >
>> > --
>> > Transform Data into Opportunity.
>> > Accelerate data analysis in your applications with
>> > Intel Data Analytics Acceleration Library.
>> > Click to learn more.
>> > http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
>> > ___
>> > Valgrind-users mailing list
>> > Valgrind-users@lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/valgrind-users
>> >
>>
>>
>>
>> --
>> Alexander Potapenko
>> Software Engineer
>>
>> Google Germany GmbH
>> Erika-Mann-Straße, 33
>> 80636 München
>>
>> Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
>> Registergericht und -nummer: Hamburg, HRB 86891
>> Sitz der Gesellschaft: Hamburg
>
>
>
>
> --
> Respectfully,
> Alla
>



-- 
Alexander Potapenko
Software Engineer

Google Germany GmbH
Erika-Mann-Straße, 33
80636 München

Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] valgrind installation failed

2016-03-15 Thread Alexander Potapenko
Looks like you're trying to install to /usr/local with insufficient privileges.
You can either run `sudo make install` to install as root, or
configure the build to put the binaries into a local directory:
 $ ./autogen.sh
 $ ./configure --prefix=`pwd`/inst
 $ make && make install

On Tue, Mar 15, 2016 at 11:41 AM, Alla _ <modelling.d...@gmail.com> wrote:
> Hello!
>
> I am a newbie, learning C programming. Have just tried to install Valgrind,
> following instructions in the README. Installation failed. My system: Mac OS
> X 10.7.5
>
> Here are the steps I made:
>
> installed
>
> curl -OL http://ftpmirror.gnu.org/autoconf/autoconf-latest.tar.gz
> tar -xzf autoconf-latest.tar.gz
> cd autoconf-[x.xx]
> ./configure && make && sudo make install
>
> curl -OL http://ftpmirror.gnu.org/automake/automake-1.15.tar.gz
> tar -xzf automake-1.15.tar.gz
> cd automake-1.15
> ./configure && make && sudo make install
>
> cd valgrind-3.11.0
> ./autogen.sh
> ./configure
>
> make
>
> make install
>
> Here is the message I got in Terminal after make install command:
> make  install-recursive
> Making install in include
> make[3]: Nothing to be done for `install-exec-am'.
>  .././install-sh -c -d '/usr/local/include/valgrind'
> mkdir: /usr/local/include/valgrind: Permission denied
> make[3]: *** [install-nobase_pkgincludeHEADERS] Error 1
> make[2]: *** [install-am] Error 2
> make[1]: *** [install-recursive] Error 1
> make: *** [install] Error 2
>
>
>
> Respectfully,
> Alla
>
>
> --
> Transform Data into Opportunity.
> Accelerate data analysis in your applications with
> Intel Data Analytics Acceleration Library.
> Click to learn more.
> http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
> ___
> Valgrind-users mailing list
> Valgrind-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/valgrind-users
>



-- 
Alexander Potapenko
Software Engineer

Google Germany GmbH
Erika-Mann-Straße, 33
80636 München

Geschäftsführer: Matthew Scott Sucherman, Paul Terence Manicle
Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg

--
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785231=/4140
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Help Needed !

2015-07-02 Thread Alexander Potapenko
Apparently you're trying to use the cross-compiler targeting ARM as
the host compiler.
./configure is attempting to compile a small program with that
compiler and is unable to execute the resulting binary.
You need to look at ./configure source or the --help output to find
out how to supply different compilers for host and target.

On Thu, Jul 2, 2015 at 2:56 PM, Pinkesh Pachchigar pinkk...@live.com wrote:
 Hello everyone ,

 I am novice to valgrind tool . I want to configure valgrind for ARM
 Cortex-m4 .

 My host system is x86_64 GNU/Linux ..

 and cross-compile toolchain is arm-none-eabi .

 Anyone ?

  ./configure --target=arm-none-eabi --host=x86_64-linux
 CC=~/gcc/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc

 configure: WARNING: if you wanted to set the --build type, don't use --host.
 If a cross compiler is detected then cross compile mode will be used
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for x86_64-linux-strip... no
 checking for strip... strip
 checking for a thread-safe mkdir -p... /bin/mkdir -p
 checking for gawk... no
 checking for mawk... mawk
 checking whether make sets $(MAKE)... yes
 checking whether to enable maintainer-specific portions of Makefiles... no
 checking whether ln -s works... yes
 checking for x86_64-linux-gcc...
 /home/pinkesh/gcc/gcc-arm-none-eabi-4_9-2015q1/bin/arm-none-eabi-gcc
 checking whether the C compiler works... no
 configure: error: in `/home/pinkesh/installs/valgrind-3.10.1':
 configure: error: C compiler cannot create executables
 See `config.log' for more details

 - Pinkesh


 --
 Don't Limit Your Business. Reach for the Cloud.
 GigeNET's Cloud Solutions provide you with the tools and support that
 you need to offload your IT needs and focus on growing your business.
 Configured For All Businesses. Start Your Cloud Today.
 https://www.gigenetcloud.com/
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer

Google Germany GmbH
Dienerstraße 12
80331 München

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] memory barriers support

2014-08-19 Thread Alexander Potapenko
On Tue, Aug 19, 2014 at 5:59 PM, Milian Wolff m...@milianw.de wrote:
 On Tuesday 19 August 2014 14:23:26 Jan Včelák wrote:
 OK. Then it is likely that there is a bug in our software.

 snip

 I run the test case several times without Valgrind with address sanitizer.
 But I didn't hit the problem.

 If you think it's a race, then the address sanitizer won't find it, I guess.
 Rather, try the thread sanitizer.

 http://clang.llvm.org/docs/ThreadSanitizer.html

 Cheers
ThreadSanitizer won't comprehend the fence instructions inserted by urcu.
I believe even Helgrind won't, because these instructions do not imply
any happens-before relation.

--
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Need for help : to prevent valgrind from terminating due to SIGSEGV

2013-01-09 Thread Alexander Potapenko
 #0  0x04009a34 in _vgr20210ZU_libcZdsoZa_memset (s=0x0, c=0, n=2215) at
 mc_replace_strmem.c:1007
This line clearly denotes that for some reason memset(0, 0, 2215)
is being called.
You can insert assert(first_parameter_of_memset) before that line in
order to make sure it is (or is not) NULL.
Most probably this is a bug in your code - in this case Valgrind can't
fix it for you.
Recovering from SIGSEGV is a tricky thing which is not what most
people ever need.

--
Alexander Potapenko
Software Engineer
Google Moscow

--
Master Java SE, Java EE, Eclipse, Spring, Hibernate, JavaScript, jQuery
and much more. Keep your Java skills current with LearnJavaNow -
200+ hours of step-by-step video tutorials by Java experts.
SALE $49.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122612 
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Using Valgrind on Android to detect deadlocks

2012-06-29 Thread Alexander Potapenko
On Fri, Jun 29, 2012 at 5:50 PM, Christoph Bartoschek
bartosc...@or.uni-bonn.de wrote:
 Am 29.06.2012 15:46, schrieb Alexander Potapenko:

 This may be not that easy to guess which locks are taken when the
 deadlock has already occurred.
 However a Valgrind-like tool is really an overkill for deadlock
 detection: a small library that interposes pthread_mutex_* (or other
 locking primitives) and keeps track of the locking order is fairly
 enough.


 In a deadlock all threads wait on the same lock. It should be easy to find
 it.

Unfortunately in general there may be any number of locks and any set
of threads may wait for any of those locks.

--
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 separate tools instalation

2012-05-04 Thread Alexander Potapenko
You may want to take a look at
http://code.google.com/p/data-race-test/source/browse/trunk/tsan/mk-self-contained-valgrind.sh,
which we're using for a similar task (although we do not have any size
constraints).
It creates a .sh file containing a blob with the archived binaries
necessary to run a specific tool, but you can hack it to do whatever
you want.

On Fri, May 4, 2012 at 4:11 PM, SAPLACAN, SORIN (SORIN)
sorin.sapla...@alcatel-lucent.com wrote:
 Hello,

 In our company we want to use Valgrind for memory leak using mostly
 Memcheck.

 Is there the possibility to choose what tool to install?

 I ask this because some test we make need Valgrind to be installed directly
 on the machine where the executables are and there is a space limit
 constraint.
 So we want to install only Memchek. But I couldn’t find something about this
 in the manual. Also the person which installed Valgrind on some machines
 didn’t figure if it is possible to install only one tool.

 Thank you!

 Best Regards,

 Sorin Saplacan
 Wireless - Methods Tools  Solutions Team (MTS)
 Alcatel-Lucent Romania
 Timisoara, Str. Gh. Lazar Nr. 9, +40 256 303100
 Office: Modatim B - Str. C. Brediceanu Nr. 10 B
 OnNet Phone: 2570 6144
 e-mail: sorin.sapla...@alcatel-lucent.com



 --
 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




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
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] can't start any application on OS X 10.7.3

2012-02-09 Thread Alexander Potapenko
On Thu, Feb 9, 2012 at 5:00 PM, Eliot Moss m...@cs.umass.edu wrote:
 I was wrong :-( ...

 0x66 0x0F 0x3A 0xDF appears to be AESKEYGENASSIST.
 Someone else will have to address that (if at all).

 Sorry ... Eliot
There used to be a bug about incorrect declaration of AESKEYGENASSIST:
  https://bugs.kde.org/show_bug.cgi?id=249991

Can you please try this code:


#include stdio.h
int main() {
  unsigned int result = -1;
  asm volatile(
mov $0x1, %%eax\n
cpuid\n
mov $0x0200, %%eax\n
and %%eax, %%ecx\n
mov %%ecx, %0\n: =r(result));
  printf(%x\n, result);
  return 0;
}


under Valgrind on your machine?

If it returns 0, it means that the code you're running is incorrectly
assuming AES support on the CPU (this is still a reason to fix
AESKEYGENASSIST)
Otherwise cpuid is broken under Valgrind.

--
Virtualization  Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Valgrind on Android (Gingerbread)

2011-11-11 Thread Alexander Potapenko
Can you try:

$ file `which valgrind`
and
$ head `which valgrind`
?

On Fri, Nov 11, 2011 at 7:21 PM, Александар Миленковић
darksidemetat...@gmail.com wrote:
 Unfortunately, the . is necessary for some reason.

 Here's a more complete log.

 # . /valgrind --leak-check=yes testapp
 .: Can't open /valgrind
 # ./valgrind --leak-check=yes testapp
 ./valgrind: not found
 # . valgrind --leak-check=yes testapp
 /system/bin/valgrind: 1: Syntax error: word unexpected (expecting ))
 # valgrind --leak-check=yes ./system/bin/testapp
 valgrind: not found

 Thanks for your time Phillipe.

 Aleksandar

 --
 RSA(R) Conference 2012
 Save $700 by Nov 18
 Register now
 http://p.sf.net/sfu/rsa-sfdev2dev1
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Running Valgrind for ARMv7 on Nvidia Tegraboard

2010-10-26 Thread Alexander Potapenko
Are you building Valgrind natively or using a cross-compiler? Have you
tried the packaged Valgrind build for your OS (if any)?

On Tue, Oct 26, 2010 at 10:08 AM, Sergey Grekhov grek...@yandex.ru wrote:
 Hello to all!
 I have a trouble running valgrind on Nvidia Tegraboard (ARM-based
 embedded system).
 Building valgrind goes fine, without any issues.
 But when I try to execute valgrind on board I get the following:

 
 #/inperfa/valgrind/bin/valgrind --help

 

 In other words I get no information about why it does not execute properly.
 I tried to debug valgrind with gdb and got the following:


 
 (gdb) target remote 10.52.82.8:6000
 Remote debugging using 10.52.82.8:6000
 0x47c0 in ?? ()
 (gdb) bt
 #0  0x47c0 in ?? ()
 Cannot access memory at address 0x0
 #1  0x in ?? ()
 (gdb) c
 Continuing.

 Program received signal SIGTRAP, Trace/breakpoint trap.
 0x2802c624 in ?? ()
 (gdb) bt
 #0  0x2802c624 in ?? ()
 Cannot access memory at address 0x0
 #1  0x in ?? ()
 (gdb)
 #0  0x2802c624 in ?? ()
 #1  0x in ?? ()
 (gdb) q
 

 uname output:

 #uname -a
 Linux (none) 2.6.29-arm2 #1 SMP PREEMPT Thu Jun 3 17:32:04 MSD 2010
 armv7l unknown


 Does anyone tried to run valgrind on this board? Or maybe arm-part
 developers can help to fix troubles?

 Thank you in advance.
 kind regards,
 Sergey Grekhov.


 --
 --
 Kind regards,
 Sergey Grekhov.


 --
 Nokia and ATT present the 2010 Calling All Innovators-North America contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] building for arm

2010-09-23 Thread Alexander Potapenko
You can try to fix the following lines in configure.in:

=
 armv7*)
AC_MSG_RESULT([ok (${host_cpu})])
ARCH_MAX=arm
;;

 *)
=
s/armv7/arm

, but you should make sure that your compiler supports the ARMv7
instruction set.

On Thu, Sep 23, 2010 at 9:08 PM, Baurzhan Ismagulov i...@radix50.net wrote:
 Hello,

 I've checked out svn://svn.valgrind.org/valgrind/trunk and try to build
 valgrind for arm-linux-gnu. configure fails with the following error
 messages:

 checking for a supported CPU... no (arm)
 configure: error: Unsupported host architecture. Sorry

 I've tried both cross-compiling from i386 and native build on arm.

 There are several similar questions in the archive, but I couldn't find
 working answers for them.

 How should I build valgrind for arm-linux?

 Thanks in advance,
 --
 Baurzhan Ismagulov
 http://www.kz-easy.com/

 --
 Nokia and ATT present the 2010 Calling All Innovators-North America contest
 Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
 $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
 Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
 http://p.sf.net/sfu/nokia-dev2dev
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Nokia and ATT present the 2010 Calling All Innovators-North America contest
Create new apps  games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] [x64+libvlc] unhandled instruction bytes: 0xF 0xF 0xC0 0x9E 0xF 0xE

2010-09-15 Thread Alexander Potapenko
This is the 3DNow! pfadd instruction.
Looks like Valgrind doesn't currently support 3DNow!, but the cpuid
implementation claims it does, so your code tries to execute it.

Julian, is it possible to disable all unsupported CPU extensions?
A somewhat related bug report is https://bugs.kde.org/show_bug.cgi?id=249991

Alex

On Wed, Sep 15, 2010 at 1:47 PM, Yuri T. br0adcast@gmail.com wrote:
 Hi all,

 I have this error on Ubuntu x64 10.04.1 with valgrind from svn.
 uname -a
 Linux br0ub1 2.6.32-24-server #42-Ubuntu SMP Fri Aug 20 15:38:55 UTC
 2010 x86_64 GNU/Linux

 vex amd64-IR: unhandled instruction bytes: 0xF 0xF 0xC0 0x9E 0xF 0xE
 ==15122== Process terminating with default action of signal 4 (SIGILL)
 ==15122==  Illegal opcode at address 0x7616DF5
 ==15122==    at 0x7616DF5: ??? (in /usr/lib/libvlccore.so.4.0.0)
 ==15122==    by 0x75A0B5C: libvlc_InternalCreate (in
 /usr/lib/libvlccore.so.4.0.0)
 ==15122==    by 0x73706C7: libvlc_new (in /usr/lib/libvlc.so.5.1.0)
 ==15122==    by 0x464761: VideoWidget::VideoWidget(QWidget*)
 (VideoWidget.cpp:94)
 ==15122==    by 0x45FF98: Ui_MainWindow::setupUi(QWidget*) 
 (ui_MainWindow.h:418)
 ==15122==    by 0x45598A: MainWindow::MainWindow() (MainWindow.cpp:46)
 ==15122==    by 0x49165A: BootStrapper::BootStrapper(QWidget*)
 (BootStrapper.cpp:22)
 ==15122==    by 0x45207D: main (main.cpp:51)

 I hope to help in solving this problem.

 Regards
 Yuri T

 --
 Start uncovering the many advantages of virtual appliances
 and start using them to simplify application deployment and
 accelerate your shift to cloud computing.
 http://p.sf.net/sfu/novell-sfdev2dev
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Running Valgrind on ARM?

2010-06-06 Thread Alexander Potapenko
Could you please open a bug with the error message you get running your program?
This is necessary to figure out which instruction is not recognized by Valgrind.


On Sat, Jun 5, 2010 at 11:33 PM, JoSH Lehan krel...@gmail.com wrote:
 Hello.  A few weeks ago, I asked a question about illegal
 instruction encountered while running Valgrind on ARM, and got no
 response.

 Backing up a little, I wonder if I'm running Valgrind correctly.  What
 is the preferred way to run Valgrind on ARM?  There's a number of
 patches floating around, maybe I picked up the wrong one, or got them
 out of order.  If this is a FAQ, sorry, please point me in the right
 direction.

 Thanks!

 Josh

 --
 ThinkGeek and WIRED's GeekDad team up for the Ultimate
 GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the
 lucky parental unit.  See the prize list and enter to win:
 http://p.sf.net/sfu/thinkgeek-promo
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] valgrind for ARM/Linux

2010-04-20 Thread Alexander Potapenko
AFAIK Valgrind currently runs on ARMv7, but supports only ARMv5
instruction set (plus several v6 and v7 instructions).

On Tue, Apr 20, 2010 at 6:54 AM, raja gobi raja.g...@yahoo.com wrote:
 Hi all,

 I saw that valgrind is now available for ARM/Linux in trunk which is great.

 Read on the mozilla developers page that ARMv5 instruction set is supported
 https://developer.mozilla.org/en/Debugging_Mozilla_with_Valgrind
 Is there support for ARMv5 or is that a typo?

 I went and checked out code from trunk and tried building it. In configure 
 file,  there is only support for armv7*
 As I wanted build for ARMv5, I hacked that line to just check for arm* and I 
 could get valgrind to compile.

 But, when I tried to run it on an ARMv5, I got a SIGILL.

 Wanted to check if anybody has run it on an ARMv5 successfully. If it is not 
 supported, is there any plans to do it?

 Thank you very much,
 -raja.






 --
 Download Intel® Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] How to debug segfault that only occurrs when running in valgrind with callgrind?

2010-04-15 Thread Alexander Potapenko
Maybe --trace-syscall=yes may help to figure out the problem?

HTH,
ALex

On Thu, Apr 15, 2010 at 3:45 PM, Milian Wolff m...@milianw.de wrote:
 Hey all!

 When I try to profile the whole startup of KDevelop using callgrind, I and at
 least one of the other developers, get a reproducible segfault. This does not
 occur in memcheck or massif, so I fear it shows a bug in callgrind itself.

 How does one debug that? gdb - valgrind - app?

 That segfaults even earlier and gives a totally useless backtrace without any
 debug info...

 Hints?
 --
 Milian Wolff
 m...@milianw.de
 http://milianw.de

 --
 Download Intel#174; Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users





-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Problem with getting lie numbers of surce file

2010-04-14 Thread Alexander Potapenko
Unless your program is in a directory specified in your $PATH, you are
valgrinding the /bin/test utility.
The right command to invoke Valgrind is:

valgrind --tool=memcheck ./test

On Tue, Apr 13, 2010 at 11:22 PM, ajit gunge peacepan...@yahoo.com wrote:

 Hi All,
 I am trying to run the sample program on RHEL given at
 http://www.valgrind.org/docs/manual/mc-manual.html under section 4.2.2.
 now this should give me error mentioned in the section
 as to surce file with line numbers but when I am running the same program I
 dont get the line number is source file.

 This is the output


 [r...@kalpana tests]# valgrind --tool=memcheck test
 ==30057== Memcheck, a memory error detector
 ==30057== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
 ==30057== Using Valgrind-3.5.0 and LibVEX; rerun with -h for copyright info
 ==30057== Command: test
 ==30057==
 ==30057==
 ==30057== HEAP SUMMARY:
 ==30057== in use at exit: 0 bytes in 0 blocks
 ==30057==   total heap usage: 2 allocs, 2 frees, 36 bytes allocated
 ==30057==
 ==30057== All heap blocks were freed -- no leaks are possible
 ==30057==
 ==30057== For counts of detected and suppressed errors, rerun with: -v
 ==30057== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 13 from 8)


 Please let me know why am I not getting the error along with the line
 numbers.

 Regards,
 Ajit



 --
 Download Intel® Parallel Studio Eval
 Try the new software tools for yourself. Speed compiling, find bugs
 proactively, and fine-tune applications for parallel performance.
 See why Intel Parallel Studio got high marks during beta.
 http://p.sf.net/sfu/intel-sw-dev
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow
--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] 3.5.0, macosx snow leopard, stdin

2010-04-13 Thread Alexander Potapenko
Anna, are you really running Snow Leopard (10.6)?
If yes, then Valgrind may not work out of the box at all.
Please refer to https://bugs.kde.org/show_bug.cgi?id=205241 for more
information.

Alex

 Alex, thanks for your response. There must be something wrong with my
 setup, although I didn't do anything special during installation of snow
 leopard.


--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] 3.5.0, macosx snow leopard, stdin

2010-04-13 Thread Alexander Potapenko
I suppose there isn't.
Your experience of testing Greg Parker's patch may be helpful, so if
you happen to find any problems with it, please update the bug issue.

On Tue, Apr 13, 2010 at 2:18 PM, Anna Ceguerra annac...@yahoo.com.au wrote:
 Hi Alex,
 Yes I'm running 10.6.3.
 Is there any way to install the patch without building it from scratch?
 Thanks,
 Anna.
 Anna, are you really running Snow Leopard (10.6)?
 If yes, then Valgrind may not work out of the box at all.
 Please refer to https://bugs.kde.org/show_bug.cgi?id=205241 for more
 information.
 Alex

 Alex, thanks for your response. There must be something wrong with my
 setup, although I didn't do anything special during installation of snow
 leopard.





-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Download Intel#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Is it possible to suppress ??? (in /lib/ld-2.10.1.so) in a valgrind output?

2010-02-01 Thread Alexander Potapenko
You should use Memcheck:Cond rather than Memceck:ValueX.
Try looking at valgrind --gen-suppressions=all ./test

On Sun, Jan 31, 2010 at 7:32 PM, jody jody@gmail.com wrote:
 Hi
 I am using g++ (Gentoo 4.3.4 p1.0, pie-10.1.5) 4.3.4
 and valgrind-3.5.0

 When i compile this trivial program test.cpp:

 int main(int iArgC, char *apArgV[]) {
    return 0;
 }

 and run it under valgrind:
  valgrind ./test

 I get lots of error messages of the form:

 ==6443== Conditional jump or move depends on uninitialised value(s)
 ==6443==    at 0x400A59E: ??? (in /lib/ld-2.10.1.so)
 ==6443==    by 0x400335B: ??? (in /lib/ld-2.10.1.so)
 ==6443==    by 0x4014A19: ??? (in /lib/ld-2.10.1.so)
 ==6443==    by 0x4000D1F: ??? (in /lib/ld-2.10.1.so)
 ==6443==    by 0x40008F6: ??? (in /lib/ld-2.10.1.so)
 ==6443==

 all of them at other locations.

 So i wrote a suppression file test.supp:
 {
  ld-2.10.1.so
  Memcheck:Value1
  obj:/lib/ld-2.10.1.so
 }

 {
  ld-2.10.1.so
  Memcheck:Value2
  obj:/lib/ld-2.10.1.so
 }

 {
  ld-2.10.1.so
  Memcheck:Value4
  obj:/lib/ld-2.10.1.so
 }

 {
  ld-2.10.1.so
  Memcheck:Value8
  obj:/lib/ld-2.10.1.so
 }

 {
  ld-2.10.1.so
  Memcheck:Value16
  obj:/lib/ld-2.10.1.so
 }

 But when i use it,
  valgrind  -v  --suppressions=./test.supp ./test
 the same errors are being displayed.

 The same happens when i duplicate the line obj:/lib/ld-2.10.1.so
 Did i make an error in my suppression file?
 Thank You
  Jody

 --
 The Planet: dedicated and managed hosting, cloud storage, colocation
 Stay online with enterprise data centers and the best network in the business
 Choose flexible plans and management services without long-term contracts
 Personal 24x7 support from experience hosting pros just a phone call away.
 http://p.sf.net/sfu/theplanet-com
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Compilation of valgrind 3.5.0

2009-09-09 Thread Alexander Potapenko
I can't find the passage that recommends to compile Valgrind with -O0
In fact it's a bad idea because -O0 will lead to a performance loss.

The Quick Start Guide recommends to compile your own program with -g and -O0.

On Wed, Sep 9, 2009 at 6:31 PM, Hoof, B. vanb.v.h...@tue.nl wrote:
 Dear all,



 Because I am a new user, this is hopefully an easy question. In the Valgrind
 quick start guide, it says that it is wise to compile valgrind with –g and
 –O0. However, what should I do to accomplish this? It does not appear to be
 possible to give these options to my “make” command directly and if I should
 insert them somewhere in the Makefile created by running “./configure” I
 wouldn’t know where to do it.



 If anyone would please help me, I would be most grateful.



 Kind regards,

 Bram van Hoof

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users





-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Support of XSI semaphores in Helgrind?

2009-09-02 Thread Alexander Potapenko
As far as I can understand from the sources, neither Helgrind nor DRD
support those semaphores. You can either try to intercept them
manually (see trunk/drd/drd_pthread_intercepts.c for an example), or
file a feature request for Bart Van Assche.

On Wed, Sep 2, 2009 at 5:57 PM, Freimann,
Mariomario.freim...@siemens.com wrote:
 Dear list members,

 I have a multitheaded program which I want to analyse with recent Helgrind
 3.5 for multithreading errors (e.g. race conditions) on RedHat Enterprise
 Linux 3 with gcc 3.2.3 (thread model POSIX). The application uses XSI
 semaphores
 (http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_07.html#tag_02_07) with
 functions like semget, semop and semctl. The threading itself is done via
 POSIX. The synchronisation between threads to access shared data is done via
 semget, etc. Is Helgrind able to analyze this program correctly? Or do I
 have to switch to POSIX semaphores, use DRD or something else?


 With kind regards,

 Mario Freimann
 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus
 on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users





-- 
Alexander Potapenko
Software Engineer
Google Moscow

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users


Re: [Valgrind-users] Strange helgrind dataraces reports involving std::string

2009-07-30 Thread Alexander Potapenko
FYI: http://etbe.coker.com.au/2009/06/22/valgrindhelgrind-and-stl-string/

There's also a link to a related bug on gcc.gnu.org there:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40518

In short, some of the reports may be connected to accessing the shared
_Rep object when working with empty strings.

On Thu, Jul 30, 2009 at 3:54 PM, Pavel Shevaevpacha.shev...@gmail.com wrote:
 Sorry folks, I'm replying to myself. Here are the suppressions I
 created in order to avoid datarace error messages because they made it
 almost impossible to discover actual dataraces in my application which
 caused seg.faults:

 {
  helgrind std::string 1
  Helgrind:Race
  fun:_ZNSs4_*_M_set_*sharable*
 }

 {
  helgrind std::string 2
  Helgrind:Race
  fun:_ZNKSs4_Rep12_M_is_leakedEv*
 }

 {
  helgrind std::string 3
  Helgrind:Race
  fun:_ZNKSs4sizeEv*
 }

 {
  helgrind std::string 4
  Helgrind:Race
  fun:_ZNSs4_Rep8_M_cloneERKSaIcEj*
 }

 {
  helgrind std::string 5
  Helgrind:Race
  fun:_ZNKSs4_Rep12_M_is_sharedEv*
 }

 --
 Best regards, Pavel

 --
 Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
 trial. Simplify your report design, integration and deployment - and focus on
 what you do best, core application coding. Discover what's new with
 Crystal Reports now.  http://p.sf.net/sfu/bobj-july
 ___
 Valgrind-users mailing list
 Valgrind-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/valgrind-users




-- 
WBR,
Alexander Potapenko
Software Engineer
Google Moscow

--
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
___
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users