[Ltrace-devel] [PATCH v3] Tracing PLT-less MIPS binaries

Eugene Rudoy gene at freetz.org
Tue Feb 10 23:30:04 UTC 2015


Hi Petr, hi Faraz,

I did some testing using a1a5182053 with no extra patch applied. All
tested binaries are compiled using -mplt (or more precisely cross-gcc
has been configured using --with-mips-plt). All test-cases are
described below, all logs are attached. Not sure if the failures are
related to Faraz' recent changes. Let me know if I should do any other
specific test. Thanks!

Best regards,
Gene

# Test case #1
# ldd /bin/busybox
    libc.so.0 => /lib/libc.so.0 (0x2aabf000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
# test command: ./ltrace /bin/busybox --help 2>&1 | tee busybox_help.log
# result: passed

# Test case #2
# ldd /usr/bin/wget
    libssl.so.1.0.0 => /usr/lib/freetz/libssl.so.1.0.0 (0x2aabf000)
    libcrypto.so.1.0.0 => /usr/lib/freetz/libcrypto.so.1.0.0 (0x2ab0f000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2ac36000)
    libc.so.0 => /lib/libc.so.0 (0x2ac54000)
    libdl.so.0 => /lib/libdl.so.0 (0x2ace1000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
# test command: ./ltrace /usr/bin/wget --no-check-certificate
https://www.kernel.org/pub/software/scm/git/git-2.3.0.tar.xz 2>&1 |
tee wget_https.log
# result: terminates with "snprintf(./ltrace: value.c: 343:
value_set_word: Assertion `sz <= sizeof(value->u.value)' failed."
#           output contains calls to libssl-functions

# Test case #3
# ldd /usr/bin/openssl
    libssl.so.1.0.0 => /usr/lib/freetz/libssl.so.1.0.0 (0x2aabf000)
    libcrypto.so.1.0.0 => /usr/lib/freetz/libcrypto.so.1.0.0 (0x2ab0f000)
    libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x2ac36000)
    libc.so.0 => /lib/libc.so.0 (0x2ac54000)
    libdl.so.0 => /lib/libdl.so.0 (0x2ace1000)
    ld-uClibc.so.0 => /lib/ld-uClibc.so.0 (0x2aaa8000)
# test command: ./ltrace /usr/bin/openssl speed 2>&1 | tee openssl_speed.log
# result: a lot of "unexpected breakpoint at"-lines
#           output doesn't contain any call to libssl-functions

On Tue, Feb 10, 2015 at 11:52 PM, Petr Machata <pmachata at redhat.com> wrote:
>>> What's the state of MIPS with these patches in?  Do you plan to work on
>>> it some more?  I just checked that we can merge to master trivially, but
>>> I don't know what state that would leave the MIPS backend in.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: busybox_help.log.gz
Type: application/x-gzip
Size: 6531 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20150211/e87b36b4/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wget_https.log.gz
Type: application/x-gzip
Size: 12848 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20150211/e87b36b4/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openssl_speed.log.gz
Type: application/x-gzip
Size: 6614 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20150211/e87b36b4/attachment-0005.bin>


More information about the Ltrace-devel mailing list