[Ltrace-devel] [PATCH v3] Tracing PLT-less MIPS binaries
Petr Machata
pmachata at redhat.com
Tue Feb 10 23:56:20 UTC 2015
Eugene Rudoy <gene at freetz.org> writes:
> # result: terminates with "snprintf(./ltrace: value.c: 343:
> value_set_word: Assertion `sz <= sizeof(value->u.value)' failed."
This looks related to the missing new-style fetch backend. There's a
small wrapper layer that translates the new-style fetch_* calls to
old-style gimme_arg calls if the backend doesn't provide its own fetch_*
suite. But gimme_arg is very narrow interface, only allowing passing
through a single word of data. Hence this assert.
> # 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
This could be anything. Somehow the internal logic is thrown off and
sees events that it can't make sense of. After it rejects all other
cases, it assumes it's a breakpoint, but doesn't see one with a given
address in its breakpoint tables. It could be a misinterpreted
singlestep, unbiased or double-biased calls, or something else still.
Faraz will have to figure this out.
Thanks,
Petr
More information about the Ltrace-devel
mailing list