|
From: Alan D. <AD...@de...> - 2014-09-12 11:02:11
|
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? Alan CONFIDENTIALITY NOTICE -- This transmission (and/or the attached documents) may contain confidential information belonging to Demoulas Super Markets, Inc. which is intended solely for the named recipient. If you are not the named recipient, you are hereby notified that any unauthorized use, disclosure, duplication and/or distribution of the following contents are strictly prohibited. If you have received this transmission in error, please notify us immediately by telephone. |
|
From: Florian K. <fl...@ei...> - 2014-09-12 19:23:18
|
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 |
|
From: Philippe W. <phi...@sk...> - 2014-09-13 08:16:20
|
On Fri, 2014-09-12 at 11:02 +0000, Alan Duda wrote: > ==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 vgdb FIFO names are build using pid, user name and host name. 2 env variables are examined for host name: first HOST if HOST is not set, then HOSTNAME So, probably you have HOST or HOSTNAME set to /home/developer/files. Such a hostname value makes an invalid FIFO path/filename. => either put an acceptable value in the relevant env variable or alternatively, use --vgdb=no to disable the gdb server and vgdb commands. Philippe |