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

1 #1

Closed
wants to merge 22 commits into from
Closed

1 #1

wants to merge 22 commits into from

Conversation

android-armv7a-belalang-tempur

No description provided.

android-armv7a-belalang-tempur referenced this pull request in android-armv7a-belalang-tempur/android_system_core Feb 5, 2015
scanno pushed a commit to scanno/android_system_core that referenced this pull request Jun 3, 2016
There were crashes when android failed to extract
zip archives due to out of free space on disk, with stacks like:

  #00 pc 00000000000156b0 /system/lib64/libc.so (memcpy+176)
  omnirom#1 pc 000000000002e5b8 /system/lib64/libandroidfw.so
  omnirom#2 pc 000000000002f488 /system/lib64/libandroidfw.so (ExtractToMemory+328)
  omnirom#3 pc 000000000002f5c8 /system/lib64/libandroidfw.so (ExtractEntryToFile+268)
  omnirom#4 pc 00000000000287d8 /system/lib64/libandroidfw.so (android::ZipFileRO::\
  uncompressEntry(void*, int) const+12)

Space for the file is now allocated using fallocate rather than
ftruncate, since ftruncate dont actually reserve space on disk. When writes
to the mmaped pointer fails to be realized due to out of space SIGBUS
is the result. With this change we make sure that there is space available
before mmaping the pointer.

Change-Id: Ic5e8c33dbe729edb57919dacff73811b34cc2dc2
somnayna pushed a commit to somnayna/android_system_core that referenced this pull request Sep 6, 2016
@humberos humberos closed this Sep 9, 2016
OmniBot pushed a commit that referenced this pull request May 7, 2019
Work around for the following crash:
02-08 05:34:20.968  root   990   990 F DEBUG   :     #00 pc 000000000001447c  /system/lib64/libhwbinder.so (android::hardware::IPCThreadState::joinThreadPool(bool)+28)
02-08 05:34:20.968  root   990   990 F DEBUG   :     #1 pc 000000000001c174  /system/lib64/libhwbinder.so (android::hardware::PoolThread::threadLoop()+24)
02-08 05:34:20.968  root   990   990 F DEBUG   :     #2 pc 000000000000f934  /system/lib64/libutils.so (android::Thread::_threadLoop(void*)+280)
02-08 05:34:20.968  root   990   990 F DEBUG   :     #3 pc 00000000000821e0  /system/lib64/libc.so (__pthread_start(void*)+36)
02-08 05:34:20.968  root   990   990 F DEBUG   :     #4 pc 0000000000023178  /system/lib64/libc.so (__start_thread+68)

Bug: 117470462
Change-Id: I1e8f28a7d0f3041d9be8138a3dc9ed9c74419f91
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants