[Ltrace-devel] Problem running ltrace on Android

DUSHYANT ARORA dushyantarora13 at gmail.com
Wed May 18 04:06:06 UTC 2011


I applied both patches. I get the following output:
./ltrace: Multiple data chunks in .hash from "/system/bin/ping"
Sorry for the wrong output earlier. I copied the changes in the wrong place
by mistake.


On Tue, May 17, 2011 at 4:04 PM, <pmachata at redhat.com> wrote:

> DUSHYANT ARORA <dushyantarora13 at gmail.com> writes:
>
> > I get the same error as before.ż.
> > ./ltrace: Couldn't get .hash data from "/system/bin/ping"
>
> You mean with the patch?  That means it's failing to get the data in the
> first place, i.e. that elf_getdata fails.  The patch that I'm attaching
> now adds more detail to that error message.  It should be applied on top
> of that previous patch.  It _might_ help in diagnosing the problem, but,
> honestly, "something's broken" is about the closest that we are likely
> to get with this.
>
> Thanks,
> PM
>
> diff --git a/ltrace-elf.c b/ltrace-elf.c
> index 7676f4b..a2fa090 100644
> --- a/ltrace-elf.c
> +++ b/ltrace-elf.c
> @@ -317,8 +317,8 @@ do_init_elf(struct ltelf *lte, const char *filename) {
>                        data = elf_getdata(scn, NULL);
>                        if (data == NULL)
>                                error(EXIT_FAILURE, 0,
> -                                     "Couldn't get .hash data from
> \"%s\"",
> -                                     filename);
> +                                     "Couldn't get .hash data from \"%s\":
> %s",
> +                                     filename, elf_errmsg(-1));
>
>                        if (elf_getdata(scn, data) != NULL
>                            || data->d_off || data->d_size != shdr.sh_size)
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/ltrace-devel/attachments/20110518/164c5745/attachment.htm>


More information about the Ltrace-devel mailing list