On 12.09.2014 13:02, Alan Duda wrote:
> Hi,
> 
> I just installed valgrind-3.10.0.
> 
> I'm getting these results when I execute the program:
> 
> 2700ISP> valgrind ./alx2
> ==23669== Memcheck, a memory error detector
> ==23669== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
> ==23669== Using Valgrind-3.10.0 and LibVEX; rerun with -h for copyright info
> ==23669== Command: ./alx2
> ==23669==
> ==23669== error 2 No such file or directory
> ==23669== cannot create shared_mem file 
> /tmp/vgdb-pipe-shared-mem-vgdb-23669-by-
> aduda-on-/home/developer/files
> 2700ISP>
> 
> Can anybody tell me what I need to do to get this to run?
> 

This file name looks odd as it contains nested directories (here
/home/developer/files):

/tmp/vgdb-pipe-shared-mem-vgdb-23669-by-aduda-on-/home/developer/files

In general this file should have a name like this:
/tmp/vgdb-pipe-shared-mem-vgdb-PID-by-USER-on-HOST

where PID, USER, and HOST are syntactic variables with the obvious
meaning. valgrind is not expecting a '/' in the host name (or user name).

What does  echo $HOST    and   echo $HOSTNAME    say.
I bet one of those expands to  /home/developer/files
If so, then change it to something benign not containing a '/' character
and it should work.

   Florian


------------------------------------------------------------------------------
Want excitement?
Manually upgrade your production database.
When you want reliability, choose Perforce
Perforce version control. Predictably reliable.
http://pubads.g.doubleclick.net/gampad/clk?id=157508191&iu=/4140/ostg.clktrk
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to