schwabe / ics-openvpn

OpenVPN for Android
3.32k stars 1.19k forks source link

Process exited with exit value 11 #1337

Closed 04cfb1ed closed 2 years ago

04cfb1ed commented 3 years ago

Hello!

General information

  1. Android Version: 4.0.3
  2. Android Vendor/Custom ROM: Android Xandroid
  3. Device: TR720F
  4. Version of the app (version number/play store version/self-built): 0.7.22 (tested from fdroid and play store)

Description of the issue

I'm trying to connect to VPN with an old device importing an ovpn, but the log shows an error. I don't know if the app is stills compatible because I can install from play store and fdroid.

Thank you in advance

2021-06-25 20:48:51 F-Droid built and signed version 0.7.22 corriendo en Android TR720F (rk29sdk), Android Xandroid (IML74K) API 15, ABI armeabi-v7a, (Android/rk29sdk/rk29sdk:4.0.3/IML74K/eng.dong.20120724.200340:eng/test-keys)
2021-06-25 20:48:51 Construyendo configuracion…
2021-06-25 20:48:51 started Socket Thread
2021-06-25 20:48:51 Estado de la red: CONNECTED  to WIFI 
2021-06-25 20:48:51 Debug state info: CONNECTED  to WIFI , pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED 
2021-06-25 20:48:51 Debug state info: CONNECTED  to WIFI , pause: userPause, shouldbeconnected: true, network: SHOULDBECONNECTED 
2021-06-25 20:48:52 Process exited with exit value 11

logcat associated

I/ActivityManager(  136): START {act=android.intent.action.MAIN cmp=de.blinkt.openvpn/.LaunchVPN (has extras)} from pid 9149
I/dalvikvm( 9149): Could not find method android.app.AlertDialog$Builder.setOnDismissListener, referenced from method de.blinkt.openvpn.LaunchVPN.setOnDismissListener
W/dalvikvm( 9149): VFY: unable to resolve virtual method 230: Landroid/app/AlertDialog$Builder;.setOnDismissListener (Landroid/content/DialogInterface$OnDismissListener;)Landroid/app/AlertDialog$Builder;
D/dalvikvm( 9149): VFY: replacing opcode 0x6e at 0x0005
I/ActivityManager(  136): START {flg=0x20000 cmp=de.blinkt.openvpn/.activities.LogWindow} from pid 9149
D/dalvikvm( 9149): DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
W/dalvikvm( 9149): VFY: unable to resolve static field 190 (SUPPORTED_ABIS) in Landroid/os/Build;
D/dalvikvm( 9149): VFY: replacing opcode 0x62 at 0x0000
I/dalvikvm( 9149): Could not find method android.content.Context.startForegroundService, referenced from method de.blinkt.openvpn.core.VPNLaunchHelper.startOpenVpn
W/dalvikvm( 9149): VFY: unable to resolve virtual method 643: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
D/dalvikvm( 9149): VFY: replacing opcode 0x6e at 0x000c
I/dalvikvm( 9162): Could not find method android.app.Notification$Builder.addAction, referenced from method de.blinkt.openvpn.core.OpenVPNService.addVpnActionsToNotification
W/dalvikvm( 9162): VFY: unable to resolve virtual method 356: Landroid/app/Notification$Builder;.addAction (ILjava/lang/CharSequence;Landroid/app/PendingIntent;)Landroid/app/Notification$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x001d
W/dalvikvm( 9162): VFY: unable to resolve static field 214 (AF_INET) in Landroid/system/OsConstants;
D/dalvikvm( 9162): VFY: replacing opcode 0x60 at 0x0000
I/dalvikvm( 9162): Could not find method de.blinkt.openvpn.core.OpenVPNService.isLockdownEnabled, referenced from method de.blinkt.openvpn.core.OpenVPNService.isLockdownEnabledCompat
W/dalvikvm( 9162): VFY: unable to resolve virtual method 31612: Lde/blinkt/openvpn/core/OpenVPNService;.isLockdownEnabled ()Z
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x0006
I/dalvikvm( 9162): Could not find method android.app.Notification$Builder.setCategory, referenced from method de.blinkt.openvpn.core.OpenVPNService.lpNotificationExtras
W/dalvikvm( 9162): VFY: unable to resolve virtual method 365: Landroid/app/Notification$Builder;.setCategory (Ljava/lang/String;)Landroid/app/Notification$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x0000
I/dalvikvm( 9162): Could not find method android.net.VpnService$Builder.addDisallowedApplication, referenced from method de.blinkt.openvpn.core.OpenVPNService.setAllowedVpnPackages
W/dalvikvm( 9162): VFY: unable to resolve virtual method 1564: Landroid/net/VpnService$Builder;.addDisallowedApplication (Ljava/lang/String;)Landroid/net/VpnService$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x0028
I/dalvikvm( 9162): Could not find method android.net.VpnService$Builder.addDisallowedApplication, referenced from method de.blinkt.openvpn.core.OpenVPNService.setAllowedVpnPackages
W/dalvikvm( 9162): VFY: unable to resolve virtual method 1564: Landroid/net/VpnService$Builder;.addDisallowedApplication (Ljava/lang/String;)Landroid/net/VpnService$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x004c
I/dalvikvm( 9162): Could not find method android.net.VpnService$Builder.addAllowedApplication, referenced from method de.blinkt.openvpn.core.OpenVPNService.setAllowedVpnPackages
W/dalvikvm( 9162): VFY: unable to resolve virtual method 1563: Landroid/net/VpnService$Builder;.addAllowedApplication (Ljava/lang/String;)Landroid/net/VpnService$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x0058
I/dalvikvm( 9162): Could not find method android.net.VpnService$Builder.addAllowedApplication, referenced from method de.blinkt.openvpn.core.OpenVPNService.setAllowedVpnPackages
W/dalvikvm( 9162): VFY: unable to resolve virtual method 1563: Landroid/net/VpnService$Builder;.addAllowedApplication (Ljava/lang/String;)Landroid/net/VpnService$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x0089
I/dalvikvm( 9162): Could not find method android.net.VpnService$Builder.allowBypass, referenced from method de.blinkt.openvpn.core.OpenVPNService.setAllowedVpnPackages
W/dalvikvm( 9162): VFY: unable to resolve virtual method 1568: Landroid/net/VpnService$Builder;.allowBypass ()Landroid/net/VpnService$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x00d9
I/dalvikvm( 9162): Could not find method android.app.Notification$Builder.setChannelId, referenced from method de.blinkt.openvpn.core.OpenVPNService.showNotification
W/dalvikvm( 9162): VFY: unable to resolve virtual method 366: Landroid/app/Notification$Builder;.setChannelId (Ljava/lang/String;)Landroid/app/Notification$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x009c
E/dalvikvm( 9162): Could not find class 'android.content.pm.ShortcutManager', referenced from method de.blinkt.openvpn.core.OpenVPNService.updateShortCutUsage
W/dalvikvm( 9162): VFY: unable to resolve const-class 136 (Landroid/content/pm/ShortcutManager;) in Lde/blinkt/openvpn/core/OpenVPNService;
D/dalvikvm( 9162): VFY: replacing opcode 0x1c at 0x0003
I/dalvikvm( 9162): Could not find method android.net.VpnService$Builder.setUnderlyingNetworks, referenced from method de.blinkt.openvpn.core.OpenVPNService.openTun
W/dalvikvm( 9162): VFY: unable to resolve virtual method 1575: Landroid/net/VpnService$Builder;.setUnderlyingNetworks ([Landroid/net/Network;)Landroid/net/VpnService$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x0319
I/dalvikvm( 9162): Could not find method android.net.VpnService$Builder.setMetered, referenced from method de.blinkt.openvpn.core.OpenVPNService.openTun
W/dalvikvm( 9162): VFY: unable to resolve virtual method 1572: Landroid/net/VpnService$Builder;.setMetered (Z)Landroid/net/VpnService$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x0322
I/dalvikvm( 9162): Could not find method android.app.Notification$Builder.setChannelId, referenced from method de.blinkt.openvpn.core.OpenVPNService.trigger_sso
W/dalvikvm( 9162): VFY: unable to resolve virtual method 366: Landroid/app/Notification$Builder;.setChannelId (Ljava/lang/String;)Landroid/app/Notification$Builder;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x00bd
D/dalvikvm(  203): GC_EXPLICIT freed 478K, 48% free 7474K/14279K, paused 2ms+7ms
D/dalvikvm( 9162): DexOpt: couldn't find static field Landroid/os/Build;.SUPPORTED_ABIS
W/dalvikvm( 9162): VFY: unable to resolve static field 190 (SUPPORTED_ABIS) in Landroid/os/Build;
D/dalvikvm( 9162): VFY: replacing opcode 0x62 at 0x0000
I/dalvikvm( 9162): Could not find method android.content.Context.startForegroundService, referenced from method de.blinkt.openvpn.core.VPNLaunchHelper.startOpenVpn
W/dalvikvm( 9162): VFY: unable to resolve virtual method 643: Landroid/content/Context;.startForegroundService (Landroid/content/Intent;)Landroid/content/ComponentName;
D/dalvikvm( 9162): VFY: replacing opcode 0x6e at 0x000c
D/dalvikvm( 9162): GC_CONCURRENT freed 400K, 15% free 6136K/7175K, paused 2ms+2ms
I/dalvikvm( 9162): Could not find method android.system.Os.close, referenced from method de.blinkt.openvpn.core.OpenVpnManagementThread.fdCloseLollipop
W/dalvikvm( 9162): VFY: unable to resolve static method 1915: Landroid/system/Os;.close (Ljava/io/FileDescriptor;)V
D/dalvikvm( 9162): VFY: replacing opcode 0x71 at 0x0000
I/OpenVPN ( 9162): Starting openvpn
F/libc    ( 9191): Fatal signal 11 (SIGSEGV) at 0x00001ec4 (code=1)
D/gralloc (   73): alloc_buffer: Successfully allocated 0xd000 bytes, mIonFd=22, SharedFd=27
D/gralloc (  203): map_buffer: Successfully mapped 0xd000 bytes at address 0x5bdf5000, SharedFd=107, map_count = 3
D/dalvikvm( 9149): GC_CONCURRENT freed 360K, 11% free 8272K/9287K, paused 3ms+9ms
I/DEBUG   ( 3319): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG   ( 3319): Build fingerprint: 'Android/rk29sdk/rk29sdk:4.0.3/IML74K/eng.dong.20120724.200340:eng/test-keys'
I/DEBUG   ( 3319): pid: 9191, tid: 9191  >>> /data/data/de.blinkt.openvpn/cache/c_nopie_openvpn.armeabi-v7a <<<
I/DEBUG   ( 3319): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 00001ec4
I/DEBUG   ( 3319):  r0 70000001  r1 b00094fc  r2 00000000  r3 00001ec4
I/DEBUG   ( 3319):  r4 b000a078  r5 ffffffff  r6 00001ec4  r7 be9ef948
I/DEBUG   ( 3319):  r8 b0009910  r9 00000000  10 00000000  fp b0006d53
I/DEBUG   ( 3319):  ip 00001003  sp be9ef908  lr 00000444  pc b00041e4  cpsr 00000030
I/DEBUG   ( 3319):  d0  0000000000000000  d1  0000000000000000
I/DEBUG   ( 3319):  d2  0000000000000000  d3  0000000000000000
I/DEBUG   ( 3319):  d4  0000000000000000  d5  0000000000000000
I/DEBUG   ( 3319):  d6  0000000000000000  d7  0000000000000000
I/DEBUG   ( 3319):  d8  0000000000000000  d9  0000000000000000
I/DEBUG   ( 3319):  d10 0000000000000000  d11 0000000000000000
I/DEBUG   ( 3319):  d12 0000000000000000  d13 0000000000000000
I/DEBUG   ( 3319):  d14 0000000000000000  d15 0000000000000000
I/DEBUG   ( 3319):  d16 0000000000000000  d17 0000000000000000
I/DEBUG   ( 3319):  d18 0000000000000000  d19 0000000000000000
I/DEBUG   ( 3319):  d20 0000000000000000  d21 0000000000000000
I/DEBUG   ( 3319):  d22 0000000000000000  d23 0000000000000000
I/DEBUG   ( 3319):  d24 0000000000000000  d25 0000000000000000
I/DEBUG   ( 3319):  d26 0000000000000000  d27 0000000000000000
I/DEBUG   ( 3319):  d28 0000000000000000  d29 0000000000000000
I/DEBUG   ( 3319):  d30 0000000000000000  d31 0000000000000000
I/DEBUG   ( 3319):  scr 00000000
I/DEBUG   ( 3319): 
I/DEBUG   ( 3319):          #00  pc b00041e4  /system/bin/linker
I/DEBUG   ( 3319):          #01  lr 00000444  <unknown>
I/DEBUG   ( 3319): 
I/DEBUG   ( 3319): code around pc:
I/DEBUG   ( 3319): b00041c4 6858e00a 208cf8d4 f8c41885 e00350d8  ..Xh... .....P..
I/DEBUG   ( 3319): b00041d4 0895685a 50dcf8c4 e0013308 44794924  Zh.....P.3..$IyD
I/DEBUG   ( 3319): b00041e4 2d00681d af49f47f 30acf8d4 f8d4b113  .h.-..I....0....
I/DEBUG   ( 3319): b00041f4 b96110b0 7174f240 9100481e 44784a1e  ..a.@.tq.H...JxD
I/DEBUG   ( 3319): b0004204 491f4b1e 447b447a 68094479 f8d4e7b1  .K.IzD{DyD.h....
I/DEBUG   ( 3319): 
I/DEBUG   ( 3319): code around lr:
I/DEBUG   ( 3319): 00000424 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   ( 3319): 00000434 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   ( 3319): 00000444 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   ( 3319): 00000454 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   ( 3319): 00000464 ffffffff ffffffff ffffffff ffffffff  ................
I/DEBUG   ( 3319): 
I/DEBUG   ( 3319): memory map around addr 00001ec4:
I/DEBUG   ( 3319): (no map below)
I/DEBUG   ( 3319): (no map for address)
I/DEBUG   ( 3319): 4007d000-4007e000 /data/data/de.blinkt.openvpn/cache/c_nopie_openvpn.armeabi-v7a
I/DEBUG   ( 3319): 
I/DEBUG   ( 3319): stack:
I/DEBUG   ( 3319):     be9ef8c8  00000000  
I/DEBUG   ( 3319):     be9ef8cc  00000000  
I/DEBUG   ( 3319):     be9ef8d0  00000000  
I/DEBUG   ( 3319):     be9ef8d4  00000000  
I/DEBUG   ( 3319):     be9ef8d8  00000000  
I/DEBUG   ( 3319):     be9ef8dc  00000000  
I/DEBUG   ( 3319):     be9ef8e0  00000000  
I/DEBUG   ( 3319):     be9ef8e4  00000000  
I/DEBUG   ( 3319):     be9ef8e8  00000000  
I/DEBUG   ( 3319):     be9ef8ec  00000000  
I/DEBUG   ( 3319):     be9ef8f0  00000000  
I/DEBUG   ( 3319):     be9ef8f4  00000000  
I/DEBUG   ( 3319):     be9ef8f8  00000000  
I/DEBUG   ( 3319):     be9ef8fc  00000000  
I/DEBUG   ( 3319):     be9ef900  df0027ad  
I/DEBUG   ( 3319):     be9ef904  00000000  
I/DEBUG   ( 3319): #00 be9ef908  00000000  
I/DEBUG   ( 3319):     be9ef90c  00000000  
I/DEBUG   ( 3319):     be9ef910  b000a078  
I/DEBUG   ( 3319):     be9ef914  b000a078  
I/DEBUG   ( 3319):     be9ef918  be9efab3  [stack]
I/DEBUG   ( 3319):     be9ef91c  00000118  
I/DEBUG   ( 3319):     be9ef920  b000a078  
I/DEBUG   ( 3319):     be9ef924  b000a078  
I/DEBUG   ( 3319):     be9ef928  b00094f0  /system/bin/linker
I/DEBUG   ( 3319):     be9ef92c  00000003  
I/DEBUG   ( 3319):     be9ef930  be9ef948  [stack]
I/DEBUG   ( 3319):     be9ef934  b0009910  /system/bin/linker
I/DEBUG   ( 3319):     be9ef938  00000000  
I/DEBUG   ( 3319):     be9ef93c  00000000  
I/DEBUG   ( 3319):     be9ef940  b0006d53  /system/bin/linker
I/DEBUG   ( 3319):     be9ef944  b0004811  /system/bin/linker
I/DEBUG   ( 3319):     be9ef948  00000000  
I/DEBUG   ( 3319):     be9ef94c  00000000  
D/gralloc (   73): alloc_buffer: Successfully allocated 0xd000 bytes, mIonFd=22, SharedFd=29
D/gralloc (  203): map_buffer: Successfully mapped 0xd000 bytes at address 0x5be1f000, SharedFd=108, map_count = 4
I/BootReceiver(  136): Copying /data/tombstones/tombstone_06 to DropBox (SYSTEM_TOMBSTONE)
I/OpenVPN ( 9162): OpenVPN process exited
I/OpenVPN ( 9162): Exiting
schwabe commented 3 years ago

I have not really checked in a while. It might be that the Android NDK does not even produce binaries anymore that work on Android 4.0.

schwabe commented 2 years ago

From https://github.com/android/ndk/wiki/Changelog-r18:

So this seems to be broken for quite a while now. So compiling for ICS might be possible by using older NDKs but I considering that it took a long time before anyway actually stumbled upon this bug, it is safe to assume that removing ICS is the more sensible choice.