New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 628958 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 2016
Cc:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Bug



Sign in to add a comment

NDK pause() seems not to work

Reported by m...@virtualhere.com, Jul 18 2016

Issue description

Chrome Version:53.0.2785.15 dev (64-bit)
Chrome OS Version:8530.13.0 (Official Build) dev-channel cyan
Chrome OS Platform: Acer R11
Network info: wifi 802.11ac

I have an android app that i want to get working with the new chromeOS android support. My (java android) app shells to a native binary (which is entirely statically compiled) using ProcessBuilder. The native binary is carried inside the android app as an asset.

This app and native binary work fine on all standard android devices, however in the chromeos build shown above, the pause() call seems not implemented or signals are ignored which causes the program to immediately exit instead of waiting for a SIGINT or SIGTERM. Putting print statements in the SIGINT and SIGTERM handlers show they are never called. However registring a signal handler calling signal and sigaction does NOT fail.

Expected Result: pause(2) works as specified in posix documentation

Actual Result: pause() does nothing and execution continues

How frequently does this problem reproduce? Always

What is the impact to the user, and is there a workaround? Android Native process cannot wait.




 
forgot to add, when running the native binary directly from developer mode chrome os prompt via sudo, it all works as it should and pause() is fine
Components: Platform>ARC

Comment 3 by uekawa@chromium.org, Jul 25 2016

Cc: uekawa@chromium.org
How did you build the binary? 
Is that a x86 binary or a x86_64 binary?

Can you run inside adb shell ?
Hi, this issue is now resolved, i just updated today to:

Version 53.0.2785.23 dev (64-bit)
Platform 8530.24.0 (Official Build) dev-channel cyan
ARC Version 3077498
Firmware Google_Cyan.7287.57.64


and that fixed the issue! Sorry for the noise


Comment 5 by uekawa@chromium.org, Jul 27 2016

Status: WontFix (was: Unconfirmed)

Sign in to add a comment