Hi again,

On Thu, Jan 30, 2020 at 9:36 AM Sergio Paracuellos
<[email protected]> wrote:
>
> Hi Lauri,
>
> On Thu, Jan 30, 2020 at 8:58 AM Lauri Kasanen <[email protected]> wrote:
> >
> > Hi,
>
> Thanks for your kick response.
>
> >
> > Try running your uptime loop script under valgrind?
>
> I will try to do during today and post results in this thread.

Ok , so I put my code in a script and run valgrind as follows:

$ cat foo.sh
#!/bin/sh

while [ 1 ]; do uptime && free && sleep 1; done

$ valgrind --tool=memcheck --error-exitcode=1 ./foo.sh

It tooks me about 1 hour to reproduce it and I got this.

 10:05:54 up 55 min,  load average: 1.25, 1.09, 1.02
              total        used        free      shared  buff/cache   available
Mem:        4053004      316728     1063464        9692     2672812     3639564
Swap:             0           0           0
[ 3336.156816] audit: type=1701 audit(1580378755.931:2):
auid=4294967295 uid=0 gid=0 ses=4294967295 pid=11559 comm="sleep"
exe="/bin/busybox.nosuid" sig=11

valgrind: ../../valgrind-3.14.0/coregrind/m_signals.c:2736 (sync_[
3336.171581] audit: type=1701 audit(1580378755.947:3): auid=4294967295
uid=0 gid=0 ses=4294967295 pid=3809 comm="memcheck-1
signalhandler_from_kernel): Assertion 'VG_(in_generated_code) == False' failed.

host stacktrace:
==3809==    at 0x58044F00: ??? (in /usr/lib/valgrind/memcheck-arm64-linux)
==3809==    by 0x58045043: ??? (in /usr/lib/valgrind/memcheck-arm64-linux)
==3809==    by 0x58045193: ??? (in /usr/lib/valgrind/memcheck-arm64-linux)
==3809==    by 0x58058B4B: ??? (in /usr/lib/valgrind/memcheck-arm64-linux)
==3809==    by 0x5805624F: ??? (in /usr/lib/valgrind/memcheck-arm64-linux)
==3809==    by 0x5102FFF: ??? (in /usr/lib/locale/locale-archive)

sched status:
  running_tid=4147314932

Thread 1: status = VgTs_WaitSys syscall 33181156378935378 (lwpid 3809)
Segmentation fault

Which seems not very useful but the SIGSEGV seems to be again in sleep first?

Should I run valgrind with any other parameters?

Any ideas on this?

Thanks in advance for your time.

Best regards,
    Sergio Paracuellos

>
> >
> > - Lauri
>
> Best regards,
>     Sergio Paracuellos
> > _______________________________________________
> > busybox mailing list
> > [email protected]
> > http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to