Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ijar's problem #3157

Closed
Uldiniad opened this issue May 6, 2018 · 8 comments
Closed

ijar's problem #3157

Uldiniad opened this issue May 6, 2018 · 8 comments

Comments

@Uldiniad
Copy link

Uldiniad commented May 6, 2018

  • Your Windows build number: Microsoft Windows [Version 10.0.17661.1001]

  • Steps to reproduce:

  1. git clone https://github.com/LineageOS/android_prebuilts_build-tools.git
  2. cd android_prebuilts_build-tools/linux-x86/bin/
  3. wget https://github.com/cs-au-dk/thor/raw/master/tools/jacocoant.jar
  4. ./ijar jacocoant.jar
@benhillis
Copy link
Member

Some more repro steps would be useful.

@Uldiniad
Copy link
Author

@benhillis I've added the repro steps, I apologize that I can't make it much simpler than this.

@therealkenc
Copy link
Collaborator

therealkenc commented May 12, 2018

Ref #2948 and #1771. Ben at the end of the day this is going to take downloading Lineage and having a long look. Fail here is ftruncate(fd_out, GetSize()): Invalid argument, which is a different mode than the others.

mmap(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f63893e0000
openat(AT_FDCWD, "/home/Uldiniad/android/lineage/out/target/common/obj/JAVA_LIBRARIES/sdk_v8_intermediates/classes.jar.toc.tmp", O_RDWR|O_CREAT|O_TRUNC, 0644) = 4
ftruncate(4, 4891983)                   = 0
mmap(NULL, 4896079, PROT_WRITE, MAP_SHARED, 4, 0) = 0x7f6387600000
brk(0x7fffeb62b000)                     = 0x7fffeb62b000
[... more brks]
brk(0x7fffeb6b2000)                     = 0x7fffeb6b2000
ftruncate(4, 2394654)                   = -1 EINVAL (Invalid argument)
write(2, "ftruncate(fd_out, GetSize()): In"..., 47) = 47

@Uldiniad
Copy link
Author

Uldiniad commented May 12, 2018

I mean, for shorter repro it could be a matter of just cloning the repository containing the tool that fails. In this case ijar which is here: https://github.com/LineageOS/android_prebuilts_build-tools/tree/lineage-15.1/linux-x86/bin and run it against some test files.
Also, it is worth noting that I have a workaround (can be labelled workaround-available) on the OP, may help in finding the issue.
Also worth noting that both ijar and dex2oat are used on aosp as a whole. This is not isolated to lineage, I compile that rom because I prefer it to aosp.

@onomatopellan
Copy link

onomatopellan commented May 12, 2018

Easiest repro on build 17134.48

git clone https://github.com/LineageOS/android_prebuilts_build-tools.git

cd android_prebuilts_build-tools/linux-x86/bin/

wget https://github.com/cs-au-dk/thor/raw/master/tools/jacocoant.jar

./ijar jacocoant.jar

ftruncate(fd_out, GetSize()): Invalid argument
Aborted (core dumped)

@Uldiniad
Copy link
Author

thanks @onomatopellan

@Uldiniad
Copy link
Author

@benhillis just wanted to note I've simplified the strace and the steps to reproduce on the OP as much as I could. should be simple to figure what's going on

@therealkenc
Copy link
Collaborator

should be simple

Indeed. #902

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants