* [Buildroot] Question about filesystem and Valgrind
@ 2015-05-12 16:38 John OSullivan
2015-05-12 17:51 ` Mark Mason
0 siblings, 1 reply; 3+ messages in thread
From: John OSullivan @ 2015-05-12 16:38 UTC (permalink / raw)
To: buildroot
Hi,
I am not sure if this is a buildroot issue, but buildroot 2015.02 is the
tool I use to build my filesystem for an Arm based embedded board that I am
using.
I am using libc (rather than uclibc) and when I run Valgrind on my target
it fails with.
> --2993:0:aspacem Valgrind: FATAL: aspacem assertion failed:
> --2993:0:aspacem segment_is_sane
The issue it is identifying is with the filesystem:
If I cat /proc/self/maps I get
00008000-00106000 r-xp 00000000 00:00 8773 /bin/busybox
0010e000-0010f000 rw-p 000fe000 00:00 8773 /bin/busybox
0010f000-00111000 rw-p 00000000 00:00 0 [heap]
b6dae000-b6eea000 r-xp 00000000 00:00 8937 /lib/libc-2.13.so
^^^^^
dev & ino are always zero
the entry for /lib/libc-2.13.so should not have 00 for the device number.
I am not sure where to start with this, is this something I can configure
via build root or is it a kernel config issue. Any clues on where to start
would be greatly appreciated.
Regards
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20150512/fa206689/attachment.html>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Question about filesystem and Valgrind
2015-05-12 16:38 [Buildroot] Question about filesystem and Valgrind John OSullivan
@ 2015-05-12 17:51 ` Mark Mason
2015-05-13 9:25 ` John OSullivan
0 siblings, 1 reply; 3+ messages in thread
From: Mark Mason @ 2015-05-12 17:51 UTC (permalink / raw)
To: buildroot
John OSullivan <john.osullivan@cloudiumsystems.com> wrote:
> Hi,
>
> I am not sure if this is a buildroot issue, but buildroot 2015.02 is the tool I
> use to build my filesystem for an Arm based embedded board that I am using.
>
> I am using libc (rather than uclibc) and when I run Valgrind on my target it
> fails with.
>
> > --2993:0:aspacem Valgrind: FATAL: aspacem assertion failed:
> > --2993:0:aspacem segment_is_sane
>
> The issue it is identifying is with the filesystem:
>
> If I cat /proc/self/maps I get
>
> 00008000-00106000 r-xp 00000000 00:00 8773 /bin/busybox
> 0010e000-0010f000 rw-p 000fe000 00:00 8773 /bin/busybox
> 0010f000-00111000 rw-p 00000000 00:00 0 [heap]
> b6dae000-b6eea000 r-xp 00000000 00:00 8937 /lib/libc-2.13.so
> ^^^^^
> dev & ino are always zero
>
> the entry for /lib/libc-2.13.so should not have 00 for the device number.
0 generally means memory. Are you running from a ramdisk with
execute-in-place?
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Question about filesystem and Valgrind
2015-05-12 17:51 ` Mark Mason
@ 2015-05-13 9:25 ` John OSullivan
0 siblings, 0 replies; 3+ messages in thread
From: John OSullivan @ 2015-05-13 9:25 UTC (permalink / raw)
To: buildroot
Hi Mark,
Thanks for taking the time to reply, my system boots from nand and then
copies the rootfs into ram, the code is run from ram. As indicated when I
look at /proc/self/maps for libc I see a zero device id. I do not see this
on my Ubuntu machine or on my raspberypi.
Do you think the zero device ID is because my filesystem is in Ram? Has
buildroot configs any control over these Ids? I assume lots of people run
valgrind on embedded systems with similar arrangements and valgrind is
expecting a non zero id for libc.
Regards
John
-----Original Message-----
From: Mark Mason [mailto:mason+buildroot at postdiluvian.org]
Sent: 12 May 2015 18:51
To: John OSullivan
Cc: buildroot at busybox.net
Subject: Re: [Buildroot] Question about filesystem and Valgrind
John OSullivan <john.osullivan@cloudiumsystems.com> wrote:
> Hi,
>
> I am not sure if this is a buildroot issue, but buildroot 2015.02 is
> the tool I use to build my filesystem for an Arm based embedded board that
I am using.
>
> I am using libc (rather than uclibc) and when I run Valgrind on my
> target it fails with.
>
> > --2993:0:aspacem Valgrind: FATAL: aspacem assertion failed:
> > --2993:0:aspacem segment_is_sane
>
> The issue it is identifying is with the filesystem:
>
> If I cat /proc/self/maps I get
>
> 00008000-00106000 r-xp 00000000 00:00 8773 /bin/busybox
> 0010e000-0010f000 rw-p 000fe000 00:00 8773 /bin/busybox
> 0010f000-00111000 rw-p 00000000 00:00 0 [heap]
> b6dae000-b6eea000 r-xp 00000000 00:00 8937 /lib/libc-2.13.so
> ^^^^^
> dev & ino are always zero
>
> the entry for /lib/libc-2.13.so should not have 00 for the device number.
0 generally means memory. Are you running from a ramdisk with
execute-in-place?
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-05-13 9:25 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-12 16:38 [Buildroot] Question about filesystem and Valgrind John OSullivan
2015-05-12 17:51 ` Mark Mason
2015-05-13 9:25 ` John OSullivan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox