Attached is a partial strace.

On Wednesday, December 20, 2017 at 7:06:31 PM UTC, Colin Cross wrote:
>
> From the stack trace after ctrl-c, lunch will be waiting for the child 
> soong_ui process to complete.  An strace of that process would be 
> interesting.
>
> On Mon, Dec 18, 2017 at 4:12 PM, Alessandro Brucato <[email protected] 
> <javascript:>> wrote:
>
>> This is the output of strace attached to the process in which I execute 
>> "lunch".
>>
>>
>>
>> <https://lh3.googleusercontent.com/-Rk-T1kCPUnA/WjhYORJYCKI/AAAAAAAAGSY/LIzqOc58jvkTpj7dowKqjz1OsKoAy0dZQCLcBGAs/s1600/strace.PNG>
>>
>> When "lunch" is stuck, the output of strace ends with "wait4(-1,". All 
>> the remaining part appears when I abort "lunch" with CTRL+C.
>>
>> Maybe this issue is due to the fact that I'm using a guest in Virtualbox?
>>
>> Il giorno lunedì 18 dicembre 2017 23:45:48 UTC+1, Colin Cross ha scritto:
>>>
>>> Can you capture the full output of all the stack traces?
>>>
>>> It's getting stuck while trying to walk all the checked-out code looking 
>>> for various build files.  If it was completely deadlocked then it would 
>>> have died on its own, so it's probably stuck in a loop somehow.
>>>
>>> On Mon, Dec 18, 2017 at 8:12 AM, Alessandro Brucato <[email protected]> 
>>> wrote:
>>>
>>>> Hello, I'm trying to build the Android source code for my Hikey 960 
>>>> board.
>>>> I'm following this video tutorial 
>>>> https://www.youtube.com/watch?v=RD_NZRKiZBU in parallel to the 
>>>> official Android guide 
>>>> https://source.android.com/setup/devices#hikey-boards.
>>>>
>>>>
>>>> Everything went fine until I reached the command "lunch 
>>>> hikey960-userdebug". It blocks, without returning any output. I left it 
>>>> "working" for 1 hour and then I aborted it (even if I know that this 
>>>> command should take few seconds). If I execute only "lunch" it shows the 
>>>> list of available build targets, and when I select "hikey960-userdebug" it 
>>>> blocks. When I abort it with CTRL+C, it says "Still alive, killing 
>>>> subprocesses" and then it shows a lot of messages referring to threads. 
>>>> Here is the screenshot https://ibb.co/k32KQR
>>>> I noticed that also the "make" command (inside the AOSP directory) has 
>>>> the same behaviour.
>>>>
>>>>
>>>> This is the list of commands I've used during the process:
>>>>
>>>>
>>>> sudo apt-get install openjdk-7-jdk
>>>>
>>>> sudo apt-get install git-core gnupg flex bison gperf build-essential 
>>>> zip curl zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 
>>>> lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache 
>>>> libgl1-mesa-dev libxml2-utils xsltproc unzip
>>>>
>>>> mkdir output
>>>>
>>>> export OUT_DIR_COMMON_BASE=/home/brucedh/output/
>>>>
>>>> mkdir ~/bin
>>>>
>>>> PATH=~/bin:$PATH
>>>>
>>>> curl https://storage.googleapis.com/git-repo-downloads/repo > 
>>>> ~/bin/repo
>>>>
>>>> chmod a+x ~/bin/repo
>>>>
>>>> mkdir dev
>>>>
>>>> cd dev
>>>>
>>>> mkdir hikey960
>>>>
>>>> cd hikey960
>>>>
>>>> git config --global user.name "<REDACTED>"
>>>>
>>>> git config --global user.email "<REDACTED>"
>>>>
>>>> repo init -u https://android.googlesource.com/platform/manifest -b 
>>>> master
>>>>
>>>> repo sync –j4
>>>>
>>>> git clone https://android.googlesource.com/kernel/hikey-linaro
>>>>
>>>> cd hikey-linaro
>>>>
>>>> git checkout -b android-hikey-linaro-4.9 origin/android-hikey-linaro-4.9
>>>>
>>>> make ARCH=arm64 menuconfig
>>>>
>>>> make ARCH=arm64 hikey960_defconfig
>>>>
>>>>
>>>> PATH=/home/brucedh/dev/hikey960/prebuilts/gcc/linux-x86/aarch64/aarch64-linux-android-4.9/bin/:$PATH
>>>>
>>>> make ARCH=arm64 CROSS_COMPILE=aarch64-linux-android- -j4
>>>>
>>>> cp arch/arm64/boot/dts/hisilicon/hi3660-hikey960.dtb 
>>>> ../device/linaro/hikey-kernel/hi3660-hikey960.dtb-4.9
>>>>
>>>> cp arch/arm64/boot/Image.gz 
>>>> ../device/linaro/hikey-kernel/Image.gz-hikey960-4.9
>>>>
>>>> cd ~/dev/hikey960
>>>>
>>>> . ./build/envsetup.sh
>>>>
>>>> lunch hikey960-userdebug
>>>>
>>>>
>>>>
>>>> I'm using Ubuntu 16.04 LTS as guest on Virtualbox. I tried to do all 
>>>> the process once again from the beginning with a new virtualbox image, but 
>>>> I found the same problem.
>>>>
>>>> Thanks in advance! 
>>>>
>>>> -- 
>>>> -- 
>>>> You received this message because you are subscribed to the "Android 
>>>> Building" mailing list.
>>>> To post to this group, send email to [email protected]
>>>> To unsubscribe from this group, send email to
>>>> [email protected]
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/android-building?hl=en
>>>>
>>>> --- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "Android Building" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected].
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>> -- 
>> -- 
>> You received this message because you are subscribed to the "Android 
>> Building" mailing list.
>> To post to this group, send email to [email protected] 
>> <javascript:>
>> To unsubscribe from this group, send email to
>> [email protected] <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/android-building?hl=en
>>
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Android Building" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.
strace: Process 18749 attached with 17 threads
[pid 18787] futex(0xc420b70110, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18780] futex(0xc42011eb90, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18779] futex(0xc42028e110, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18776] futex(0xc42011e810, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18773] futex(0xc420067290, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18769] futex(0x792c20, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18770] futex(0xc420012f10, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18768] restart_syscall(<... resuming interrupted futex ...> <unfinished 
...>
[pid 18749] futex(0x775090, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18777] futex(0x7747f8, FUTEX_WAKE, 1 <unfinished ...>
[pid 18788] sched_yield()               = 0
[pid 18778] sched_yield( <unfinished ...>
[pid 18788] futex(0x774730, FUTEX_WAIT, 2, NULL <unfinished ...>
[pid 18778] <... sched_yield resumed> ) = 0
[pid 18778] futex(0x774730, FUTEX_WAIT, 2, NULL <unfinished ...>
[pid 18777] <... futex resumed> )       = 1
[pid 18768] <... restart_syscall resumed> ) = 0
[pid 18777] futex(0x774730, FUTEX_WAKE, 1 <unfinished ...>
[pid 18768] epoll_wait(4,  <unfinished ...>
[pid 18788] <... futex resumed> )       = 0
[pid 18788] futex(0x774730, FUTEX_WAKE, 1) = 1
[pid 18778] <... futex resumed> )       = 0
[pid 18788] 
lstat("/media/peter/57681A1323A117A0/android/packages/apps/TV/tests/input/src", 
 <unfinished ...>
[pid 18778] futex(0x774730, FUTEX_WAKE, 1 <unfinished ...>
[pid 18777] <... futex resumed> )       = 1
[pid 18778] <... futex resumed> )       = 0
[pid 18777] 
lstat("/media/peter/57681A1323A117A0/android/packages/apps/TV/tests/jank/src",  
<unfinished ...>
[pid 18778] 
lstat("/media/peter/57681A1323A117A0/android/packages/apps/TV/common/res/transition",
  <unfinished ...>
[pid 18768] <... epoll_wait resumed> [], 128, 0) = 0
[pid 18768] pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=20000}, NULL) = 0 
(Timeout)
[pid 18768] pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=20000}, NULL 
<unfinished ...>
[pid 18775] close(3 <unfinished ...>
[pid 18771] epoll_ctl(4, EPOLL_CTL_ADD, 12, 
{EPOLLIN|EPOLLOUT|EPOLLRDHUP|EPOLLET, {u32=3971640320, u64=140599726074880}} 
<unfinished ...>
[pid 18772] 
lstat("/media/peter/57681A1323A117A0/android/frameworks/native/vulkan/include/vulkan/vk_android_native_buffer.h",
  <unfinished ...>
[pid 18771] <... epoll_ctl resumed> )   = -1 EPERM (Operation not permitted)
[pid 18781] 
lstat("/media/peter/57681A1323A117A0/android/prebuilts/tools/common/gradle-plugins/repository/org",
  <unfinished ...>
[pid 18775] <... close resumed> )       = 0
[pid 18775] openat(AT_FDCWD, 
"/media/peter/57681A1323A117A0/android/prebuilts/tools/darwin-x86/swt/about_files",
 O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 18774] 
lstat("/media/peter/57681A1323A117A0/android/prebuilts/deqp/spirv/vulkan/prebuilt/0x0000022e.spv",
  <unfinished ...>
[pid 18771] epoll_ctl(4, EPOLL_CTL_DEL, 12, 0xc422001b04) = -1 EPERM (Operation 
not permitted)
[pid 18771] getdents64(12,  <unfinished ...>
[pid 18768] <... pselect6 resumed> )    = 0 (Timeout)
[pid 18768] futex(0xc42011eb90, FUTEX_WAKE, 1 <unfinished ...>
[pid 18780] <... futex resumed> )       = 0
[pid 18780] epoll_wait(4,  <unfinished ...>
[pid 18768] <... futex resumed> )       = 1
[pid 18780] <... epoll_wait resumed> [], 128, 0) = 0
[pid 18768] pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=20000}, NULL 
<unfinished ...>
[pid 18780] epoll_wait(4,  <unfinished ...>
[pid 18771] <... getdents64 resumed> /* 3 entries */, 4096) = 80
[pid 18780] <... epoll_wait resumed> [], 128, 0) = 0
[pid 18780] epoll_wait(4,  <unfinished ...>
[pid 18771] getdents64(12,  <unfinished ...>
[pid 18768] <... pselect6 resumed> )    = 0 (Timeout)
[pid 18780] <... epoll_wait resumed> [], 128, 0) = 0
[pid 18768] futex(0xc42028e110, FUTEX_WAKE, 1 <unfinished ...>
[pid 18780] futex(0xc42011eb90, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18779] <... futex resumed> )       = 0
[pid 18768] <... futex resumed> )       = 1
[pid 18779] epoll_wait(4,  <unfinished ...>
[pid 18768] pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=20000}, NULL 
<unfinished ...>
[pid 18779] <... epoll_wait resumed> [], 128, 0) = 0
[pid 18779] futex(0xc42028e110, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18768] <... pselect6 resumed> )    = 0 (Timeout)
[pid 18771] <... getdents64 resumed> /* 0 entries */, 4096) = 0
[pid 18771] 
lstat("/media/peter/57681A1323A117A0/android/frameworks/native/vulkan/include/hardware/hwvulkan.h",
  <unfinished ...>
[pid 18788] <... lstat resumed> {st_mode=S_IFDIR|0777, st_size=0, ...}) = 0
[pid 18768] pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=20000}, NULL 
<unfinished ...>
[pid 18788] close(13 <unfinished ...>
[pid 18778] <... lstat resumed> {st_mode=S_IFDIR|0777, st_size=0, ...}) = 0
[pid 18777] <... lstat resumed> {st_mode=S_IFDIR|0777, st_size=0, ...}) = 0
[pid 18778] 
lstat("/media/peter/57681A1323A117A0/android/packages/apps/TV/common/res/values",
  <unfinished ...>
[pid 18777] close(7 <unfinished ...>
[pid 18768] <... pselect6 resumed> )    = 0 (Timeout)
[pid 18788] <... close resumed> )       = 0
[pid 18768] pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=20000}, NULL 
<unfinished ...>
[pid 18788] futex(0xc42028e110, FUTEX_WAKE, 1) = 1
[pid 18779] <... futex resumed> )       = 0
[pid 18768] <... pselect6 resumed> )    = 0 (Timeout)
[pid 18779] epoll_wait(4,  <unfinished ...>
[pid 18768] pselect6(0, NULL, NULL, NULL, {tv_sec=0, tv_nsec=20000}, NULL 
<unfinished ...>
[pid 18779] <... epoll_wait resumed> [], 128, 0) = 0
[pid 18788] openat(AT_FDCWD, 
"/media/peter/57681A1323A117A0/android/platform_testing/libraries/longevity/src/android",
 O_RDONLY|O_CLOEXEC <unfinished ...>
[pid 18779] futex(0xc42028e110, FUTEX_WAIT, 0, NULL <unfinished ...>
[pid 18768] <... pselect6 resumed> )    = 0 (Timeout)

Reply via email to