On Fri, 2015-04-10 at 20:27 +0000, Zhu, Yanwen wrote:
> Also, I just looked at online:
> https://www.mail-archive.com/valgrind-users@lists.sourceforge.net/msg02027.html
> 
> Is it a permission problem?
It does not look like.
But in any case, it looks like you are running Valgrind as root.
This is very unusual, and should not be needed.

Apart of that, the trace you gave shows that initialisation of
the Valgrind malloc lib fails.
A succesful startup of the Valgrind malloc lib would give:
--13999:1:    main Starting the dynamic memory manager
--13999:1:mallocfr newSuperblock at 0x61C35000 (pszB 4194288)  owner 
VALGRIND/core

So, can you redo the -v -v -v -d -d -d experiment, but using strace to
trace it i.e.
   strace -f valgrind -v -v -v -d -d -d

A succesful startup results in a trace such as:
[pid 13912] write(2, "--13912:1:    main Starting the "..., 55--13912:1:    
main Starting the dynamic memory manager
) = 55
[pid 13912] mmap2(0x61e41000, 4194304, PROT_READ|PROT_WRITE|PROT_EXEC, 
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, 0, 0) = 0x61e41000
[pid 13912] getpid()                    = 13912
[pid 13912] write(2, "--13912:1:mallocfr newSuperblock"..., 
83--13912:1:mallocfr newSuperblock at 0x61E41000 (pszB 4194288)  owner 
VALGRIND/core
) = 83

which shows the mmap syscall, and the resulting superblock trace.

So, can you redo the trial with strace, and give the equivalent traces ?
Probably the mmap fails. We can then see which address has been chosen
by aspacemgr, the resulting errno, and all that could explain the
failure

Philippe



------------------------------------------------------------------------------
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15&utm_medium=email&utm_campaign=VA_SF
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to