[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [valgrind] [Bug 340777] Illegal instruction on mips (ar71xx)
From:       Luiz Angelo De Luca <bugzilla_noreply () kde ! org>
Date:       2017-03-31 17:41:51
Message-ID: bug-340777-17878-lxQL6AXn8O () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=340777

--- Comment #15 from Luiz Angelo De Luca <luizluca@gmail.com> ---
root@router.lan3:/usr/bin# valgrind --version
valgrind-3.13.0.SVN

The test was using commit svn://svn.valgrind.org/valgrind/trunk@16225
a5019735-40e9-0310-863c-91ae7b9d1cf9 That I got from
https://github.com/liquid-mirror/valgrind. Is it recent enough?

I'm using the patch. All patches at
https://github.com/luizluca/source/tree/cc/valgrind-svn/package/devel/valgrind/patches
are applied before compiling.

The behavior changes a lot depending on the checked program. scp is just a
symlink to dropbear (as ssh is). However, valgrind does not break with it (for
showing help).

root@router.lan3:/usr/bin# valgrind scp
==14632== Memcheck, a memory error detector
==14632== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==14632== Using Valgrind-3.13.0.SVN and LibVEX; rerun with -h for copyright
info
==14632== Command: scp
==14632== 
==14632== Conditional jump or move depends on uninitialised value(s)
==14632==    at 0x40731E4: ??? (in /lib/libc.so)
==14632==    by 0x4083164: ??? (in /lib/libc.so)
==14632== 
==14632== Conditional jump or move depends on uninitialised value(s)
==14632==    at 0x4072924: ??? (in /lib/libc.so)
==14632==    by 0x4072D98: ??? (in /lib/libc.so)
==14632== 
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
           [-l limit] [-P port] [-S program]
           [[user@]host1:]file1 [...] [[user@]host2:]file2
==14632== 
==14632== HEAP SUMMARY:
==14632==     in use at exit: 0 bytes in 0 blocks
==14632==   total heap usage: 0 allocs, 0 frees, 0 bytes allocated
==14632== 
==14632== All heap blocks were freed -- no leaks are possible
==14632== 
==14632== For counts of detected and suppressed errors, rerun with: -v
==14632== Use --track-origins=yes to see where uninitialised values come from
==14632== ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0)

But does break when it does something else:

root@router.lan3:/usr/bin# valgrind scp /etc/passwd  localhost:/tmp 
==14715== Memcheck, a memory error detector
==14715== Copyright (C) 2002-2015, and GNU GPL'd, by Julian Seward et al.
==14715== Using Valgrind-3.13.0.SVN and LibVEX; rerun with -h for copyright
info
==14715== Command: scp /etc/passwd localhost:/tmp
==14715== 
==14715== Conditional jump or move depends on uninitialised value(s)
==14715==    at 0x40731E4: ??? (in /lib/libc.so)
==14715==    by 0x4083164: ??? (in /lib/libc.so)
==14715== 
==14715== Conditional jump or move depends on uninitialised value(s)
==14715==    at 0x4072924: ??? (in /lib/libc.so)
==14715==    by 0x4072D98: ??? (in /lib/libc.so)
==14715== 

Host 'localhost' is not in the trusted hosts file.
(ssh-rsa fingerprint md5 33:1c:ed:be:01:8d:58:97:bc:8f:45:c7:db:63:24:e9)
Do you want to continue connecting? (y/n) y
root@localhost's password: 
Segmentation fault

My system is a tplink tl-wr2543nd router. It's a very popular wifi router.

-- 
You are receiving this mail because:
You are watching all bug changes.=
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic