0xbenchmark crashes on vexpress-a9

Bug #920372 reported by Amit Pundir
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro Android
Fix Released
Medium
Amit Pundir

Bug Description

Description:
==========
0xBenchmark crashes on VExpress-A9

Reproducible:
===========
Yes, 2/2 time

Steps:
==========
Run 0xBenchmark from Application menu.

Hardware:
==========
VExpress-A9
USB Mouse connected
DVI out to TV
4GB SD card

Software:
==========
https://android-build.linaro.org/builds/~linaro-android/staging-vexpress-a9-12.01-release/#build=3

Logs:
======
Message on UI: "Unfortunately, 0xBenchmark has stopped"

logcat:
Attached logcat.txt

Revision history for this message
Amit Pundir (pundiramit) wrote :
Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

This failure occurs when the call to new ServerSocket(0) fails with EAFNOSUPPORT in file packages/apps/0xbench/src/org/zeroxlab/benchmark/NativeTester.java line 172.

This could be related to bug #919774.

Changed in linaro-android:
importance: Undecided → Medium
Anmar Oueja (anmar)
Changed in linaro-landing-team-arm:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Amit Pundir (pundiramit) wrote :

Observed in https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc46-armlt-stable-open-12.02-release/#build=1 as well.

Most probably due to missing IPV6 and Netfilter support.

Amit Pundir (pundiramit)
Changed in linaro-android:
status: New → In Progress
assignee: nobody → Amit Pundir (pundiramit)
milestone: none → 12.03
Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote : Re: [Bug 920372] Re: 0xbenchmark crashes on vexpress-a9

On Mon, 2012-02-20 at 17:19 +0000, Amit Pundir wrote:
> Observed in https://android-build.linaro.org/builds/~linaro-android
> /vexpress-ics-gcc46-armlt-stable-open-12.02-release/#build=1 as well.
>
> Most probably due to missing IPV6 and Netfilter support.
>

It is due to missing IPV6 support; however, enabling IPV6 causes
networking not to work because the Ethernet Connection Manager defaults
to using an IPV6-through-4 tunnel adaptor rather than 'eth0', and I
think this stops DNS from working on an IPV4 network.

I haven't looked at this any further. I didn't enable IPV6 in the kernel
as I consider that working DNS is more important than passing 0xbench
tests.

Revision history for this message
Anmar Oueja (anmar) wrote :

In that case, I suggest we mark this bug as "won't fix".

Amit Pundir (pundiramit)
Changed in linaro-android:
milestone: 12.03 → 12.02
Revision history for this message
Amit Pundir (pundiramit) wrote :

I enabled Ipv6 and Netfilter to verify 0xBench results and I can confirm that DNS worked fine after that. I verified DNS by running "ping" and stock "Browser" application.

Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote : IPV6 and Ethernet Configuration Manager (was Re: [Bug 920372] Re: 0xbenchmark crashes on vexpress-a9)

On Wed, 2012-02-22 at 01:34 +0000, Amit Pundir wrote:
> I enabled Ipv6 and Netfilter to verify 0xBench results and I can confirm
> that DNS worked fine after that. I verified DNS by running "ping" and
> stock "Browser" application.

I've just tried some experiments...

Adding:

  CONFIG_IPV6=y
  CONFIG_NETFILTER=y

and remaking the defconfig caused this config to be removed

  CONFIG_PACKET=y

This setup stopped DHCPD from working at boot so we got no IP address.
Also, the Ethernet Configuration Manager (ECM) defaulted to network
device 'sit0' (a IPV6-4 tunnel) which made its DHCP attempt to fail
with: "init: no such service 'dhcpcd_sit0'"

Adding back in CONFIG_PACKET=y got DHCPD working at boot, so we got an
IP address. But ECM still used the 'sit0' device, so I added to the
defconfig:

  CONFIG_IPV6_SIT=n

This gets rid of the 'sit0' device and so ECM picks 'eth0' and DHCP now
works and we get a DNS address so name lookups succeed, and everything
is fine.

I could make these config changes to the vexpress kernel, but to me, it
seems that ECM should default to 'eth0' not 'sit0', that way we could
have full IPV6 features enabled in our kernels, but still have a setup
which would work out-of-the-box for most people.

I think I'll raise a bug agains ECM and get discussion going on this...

--
Tixy

Revision history for this message
Amit Pundir (pundiramit) wrote :

The following patch worked for me on staging-vexpress-a9/kernel(armlt-linaro-android-3.2).

diff --git a/arch/arm/configs/android_vexpress_defconfig b/arch/arm/configs/android_vexpress_defconfig
index 113a0e4..1936ab2 100644
--- a/arch/arm/configs/android_vexpress_defconfig
+++ b/arch/arm/configs/android_vexpress_defconfig
@@ -47,7 +47,26 @@ CONFIG_IP_PNP_DHCP=y
 CONFIG_IP_PNP_BOOTP=y
 CONFIG_IP_PNP_RARP=y
 # CONFIG_INET_LRO is not set
-# CONFIG_IPV6 is not set
+CONFIG_IPV6=y
+CONFIG_IPV6_PRIVACY=y
+CONFIG_IPV6_ROUTER_PREF=y
+CONFIG_IPV6_ROUTE_INFO=y
+CONFIG_IPV6_OPTIMISTIC_DAD=y
+CONFIG_INET6_AH=y
+CONFIG_INET6_ESP=y
+CONFIG_INET6_IPCOMP=y
+CONFIG_INET6_XFRM_MODE_ROUTEOPTIMIZATION=y
+CONFIG_IPV6_TUNNEL=y
+CONFIG_IPV6_MROUTE=y
+CONFIG_NETFILTER=y
+CONFIG_NETFILTER_NETLINK_QUEUE=y
+CONFIG_NETFILTER_NETLINK_LOG=y
+CONFIG_NF_CONNTRACK=y
+CONFIG_NF_CONNTRACK_MARK=y
+CONFIG_NF_CONNTRACK_EVENTS=y
+CONFIG_NF_CONNTRACK_TIMESTAMP=y
+CONFIG_NF_CT_NETLINK=y
+CONFIG_NETFILTER_XTABLES=y
 # CONFIG_WIRELESS is not set
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_CONNECTOR=y

Changed in linaro-android:
milestone: 12.02 → 12.03
tags: added: 0xbench linaro-android
Revision history for this message
Tixy (Jon Medhurst) (tixy) wrote :

Fixed by enabling IPv6 and disabliing SIT ...
--- a/arch/arm/configs/android_vexpress_defconfig
+++ b/arch/arm/configs/android_vexpress_defconfig
@@ -47,7 +47,8 @@ CONFIG_IP_PNP_DHCP=y
 CONFIG_IP_PNP_BOOTP=y
 CONFIG_IP_PNP_RARP=y
 # CONFIG_INET_LRO is not set
-# CONFIG_IPV6 is not set
+CONFIG_IPV6=y
+# CONFIG_IPV6_SIT is not set
 # CONFIG_WIRELESS is not set
 CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
 CONFIG_CONNECTOR=y

Changed in linaro-landing-team-arm:
milestone: none → 2012.03
status: Confirmed → Fix Committed
Changed in linaro-landing-team-arm:
assignee: nobody → Tixy (Jon Medhurst) (tixy)
Changed in linaro-landing-team-arm:
status: Fix Committed → Fix Released
Revision history for this message
Abhishek Paliwal (abhishek-paliwal) wrote :

Issue not observed on:
https://android-build.linaro.org/builds/~linaro-android/vexpress-ics-gcc46-armlt-stable-open-12.03-release/#build=4
(Complete 0xbench suite ran without issues, results saved to sdcard)

Amit Pundir (pundiramit)
Changed in linaro-android:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.