problems with valgrind inside proot

98 views
Skip to first unread message

henrikw...@gmail.com

unread,
Dec 18, 2014, 9:46:57 AM12/18/14
to proo...@googlegroups.com
Hi,

I have problems running valgrind inside proot environment with proot 5.0.0 (also tried f393b4daf9bfd6d034cf2c8dd56d44f135b08e93)
With proot 4.0.3 it worked.

I get:

$ valgrind ls
valgrind: mmap(0x400000, 126976) failed in UME with error 22 (Invalid argument).                                                                              
valgrind: this can be caused by executables with very large text, data or bss segments.

$ valgrind --version
valgrind-3.8.1

Any ideas?

/ Henrik

Cédric VINCENT

unread,
Dec 19, 2014, 5:09:55 AM12/19/14
to proo...@googlegroups.com
Hello Henrik
I wasn't able to reproduce this issue using PRoot v5.1.0 (ie.
f393b4da) and Valgrind 3.8.1 (both on x86 and x86_64). Please could
you tell me:

- what your host system is;

- what the output of "uname -r" is (without PRoot); and

- what your guest system is

- do you use the "-k" or "-0" options ?

Regards,
Cédric.

Cédric VINCENT

unread,
Dec 19, 2014, 6:39:26 AM12/19/14
to proo...@googlegroups.com, Henrik Wallin
> valgrind: mmap(0x400000, 126976) failed in UME with error 22 (Invalid argument).

This address (0x400000) reminds me this issue:

https://github.com/cedric-vincent/PRoot/commit/54904cb6

where a segment was unexpectedly created by the linker.

Could you please:

- try this binary: http://static.proot.me/proot-x86_64 (it doesn't
have such segment)

- tell me how you built PRoot (ex. distro).

Regards,
Cedric

Henrik Wallin

unread,
Dec 19, 2014, 8:11:04 AM12/19/14
to Cédric VINCENT, proo...@googlegroups.com
Hej,

It works with your proot binary.

I build proot in a yocto environment based in Windriver Linux.
The toolchain is based on Mentor codesourcery.
x86_64-wrs-linux-gcc (Wind River Linux Sourcery CodeBench 4.8-39) 4.8.1
GNU ld (Wind River Linux Sourcery CodeBench 4.8-39) 2.23.2

/ Henrik
--
/ Henrik

Cédric VINCENT

unread,
Dec 19, 2014, 10:00:33 AM12/19/14
to Henrik Wallin, proo...@googlegroups.com
> It works with your proot binary.
>
> I build proot in a yocto environment based in Windriver Linux.
> The toolchain is based on Mentor codesourcery.
> x86_64-wrs-linux-gcc (Wind River Linux Sourcery CodeBench 4.8-39) 4.8.1
> GNU ld (Wind River Linux Sourcery CodeBench 4.8-39) 2.23.2

Could you please send me your build script? I'd like to check the way
PRoot is build.

Regards,
Cédric.
Reply all
Reply to author
Forward
0 new messages