Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-88228

CMake tests for Android fails with "dlsym failed: undefined symbol: main"

    XMLWordPrintable

Details

    • Android
    • 29b17fa335388c9b93f70c29b2398cf2fee65785 (qt/qtbase/dev)
    • 2020wk46

    Description

      qtbase tests of CMake fails to run on Android with a crash

      11-06 10:28:21.524  7680  7712 E         : dlsym failed: undefined symbol: main 
      11-06 10:28:21.524  7680  7712 E         : Could not find main method
      11-06 10:28:21.525  7680  7707 I AdrenoGLES: PFP: 0x016ee187, ME: 0x00000000
      11-06 10:28:21.528  7680  7712 F libc    : Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0 in tid 7712 (qtMainLoopThrea), pid 7680 (mple.tst_qimage)
      11-06 10:28:21.557   599   599 I hwservicemanager: getTransport: Cannot find entry android.hardware.graphics.mapper@3.0::IMapper/default in either framework or device manifest.
      11-06 10:28:21.558  7680  7707 W Gralloc3: mapper 3.x is not supported
      11-06 10:28:21.608  7717  7717 I crash_dump64: obtaining output fd from tombstoned, type: kDebuggerdTombstone
      11-06 10:28:21.612  1298  1298 I /system/bin/tombstoned: received crash request for pid 7712
      11-06 10:28:21.615  7717  7717 I crash_dump64: performing dump of process 7680 (target tid = 7712)
      11-06 10:28:21.621  7717  7717 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
      11-06 10:28:21.621  7717  7717 F DEBUG   : Build fingerprint: 'OnePlus/OnePlus7_EEA/OnePlus7:10/QKQ1.190716.003/2007240000:user/release-keys'
      11-06 10:28:21.621  7717  7717 F DEBUG   : Revision: '0'
      11-06 10:28:21.621  7717  7717 F DEBUG   : ABI: 'arm64'
      11-06 10:28:21.626  7717  7717 F DEBUG   : Timestamp: 2020-11-06 10:28:21+0200
      11-06 10:28:21.626   904   926 I /vendor/bin/hw/vendor.qti.hardware.servicetracker@1.0-service: unbindService is called for service : com.google.android.gms/.chimera.PersistentApiService and for client com.google.android.projection.gearhead:shared
      11-06 10:28:21.626   904   926 I /vendor/bin/hw/vendor.qti.hardware.servicetracker@1.0-service: size of service connections for service: com.google.android.gms/.chimera.PersistentApiServiceafter removal is 6
      11-06 10:28:21.626   904   926 I /vendor/bin/hw/vendor.qti.hardware.servicetracker@1.0-service: size of client connections for client: com.google.android.projection.gearhead:sharedafter removal is 4
      11-06 10:28:21.626  7717  7717 F DEBUG   : pid: 7680, tid: 7712, name: qtMainLoopThrea  >>> org.qtproject.example.tst_qimage <<<
      11-06 10:28:21.626  7717  7717 F DEBUG   : uid: 10708
      11-06 10:28:21.626  7717  7717 F DEBUG   : signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0x0
      11-06 10:28:21.626  7717  7717 F DEBUG   : Cause: null pointer dereference
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x0  0000000000000001  x1  00000077279a95c0  x2  0000007738000000  x3  000000000000000e
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x4  0000000000000097  x5  00000077279a93f6  x6  00000000fffefffe  x7  000000000000fffe
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x8  0000000000000000  x9  0000000000000001  x10 0000000000000000  x11 0000000000000008
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x12 000000000000ffff  x13 0000000000000000  x14 0000007721b5d980  x15 0000000000000001
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x16 00000077b9071768  x17 00000077b9065350  x18 00000076ca734000  x19 00000076cbe43000
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x20 0000000000000000  x21 00000076cbe43000  x22 00000077279aa130  x23 000000772c0e1055
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x24 0000000000000000  x25 00000077279ab020  x26 00000076cbe430b0  x27 0000000000000000
      11-06 10:28:21.626  7717  7717 F DEBUG   :     x28 00000077279a9ec0  x29 00000077279a9e90
      11-06 10:28:21.626  7717  7717 F DEBUG   :     sp  00000077279a94a0  lr  00000076c833c114  pc  0000000000000000
      11-06 10:28:21.637  7680  7707 D         : Successfully load libgui-plugin.so, this=0x77ba378050
      11-06 10:28:21.648  1502  1573 I ===> HoustonPackage: addLaunchTimeInfo: for org.qtproject.example.tst_qimage/org.qtproject.qt.android.bindings.QtActivity isCold:true launchTime:839
      11-06 10:28:21.649  1502  1548 I ActivityTaskManager: Displayed org.qtproject.example.tst_qimage/org.qtproject.qt.android.bindings.QtActivity: +839ms
      11-06 10:28:21.650 13168 13168 I GoogleInputMethodService: GoogleInputMethodService.onFinishInput():3235 
      11-06 10:28:21.650 13168 13168 I GoogleInputMethodService: GoogleInputMethodService.onStartInput():1858 
      11-06 10:28:21.662  1502  3591 D ActivityTrigger: ActivityTrigger activityStopTrigger 
      11-06 10:28:21.663  8337  8337 D Launcher: onStop# hashcode: 49251381
      11-06 10:28:21.663  8337  8337 D LauncherAppWidgetHost: setListenIfResumed# listenIfResumed: false, flag: 5
      11-06 10:28:21.663  8337  8337 D LauncherAppWidgetHost: stopListening# flag: 0
      11-06 10:28:21.663  8337  8337 D Launcher: onSaveInstanceState# hashcode: 49251381
      11-06 10:28:21.765  7717  7717 F DEBUG   : 
      11-06 10:28:21.765  7717  7717 F DEBUG   : backtrace:
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #00 pc 0000000000000000  <unknown>
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #01 pc 000000000003c110  /data/app/org.qtproject.example.tst_qimage-x3_awTHsLq9Jxf71whngXg==/lib/arm64/libplugins_platforms_qtforandroid_arm64-v8a.so (BuildId: fbd5e36f5400b371042375ed53bf5e7e307db4d9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #02 pc 0000000000140350  /apex/com.android.runtime/lib64/libart.so (art_quick_generic_jni_trampoline+144) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #03 pc 00000000001375b8  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_static_stub+568) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #04 pc 000000000014600c  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+276) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #05 pc 00000000002e3948  /apex/com.android.runtime/lib64/libart.so (art::interpreter::ArtInterpreterToCompiledCodeBridge(art::Thread*, art::ArtMethod*, art::ShadowFrame*, unsigned short, art::JValue*)+384) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #06 pc 00000000002deba8  /apex/com.android.runtime/lib64/libart.so (bool art::interpreter::DoCall<false, false>(art::ArtMethod*, art::Thread*, art::ShadowFrame&, art::Instruction const*, unsigned short, art::JValue*)+892) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #07 pc 00000000005a3c08  /apex/com.android.runtime/lib64/libart.so (MterpInvokeStatic+372) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #08 pc 0000000000131994  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_static+20) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #09 pc 000000000001323c  [anon:dalvik-classes.dex extracted in memory from /data/app/org.qtproject.example.tst_qimage-x3_awTHsLq9Jxf71whngXg==/base.apk] (org.qtproject.qt.android.QtNative$7.run)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #10 pc 00000000005a2c14  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #11 pc 0000000000131a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #12 pc 00000000000158a6  [anon:dalvik-classes.dex extracted in memory from /data/app/org.qtproject.example.tst_qimage-x3_awTHsLq9Jxf71whngXg==/base.apk] (org.qtproject.qt.android.QtThread$1.run+146)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #13 pc 00000000005a2c14  /apex/com.android.runtime/lib64/libart.so (MterpInvokeInterface+1788) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #14 pc 0000000000131a14  /apex/com.android.runtime/lib64/libart.so (mterp_op_invoke_interface+20) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #15 pc 00000000000ec0f0  /apex/com.android.runtime/javalib/core-oj.jar (java.lang.Thread.run+8)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #16 pc 00000000002b4c5c  /apex/com.android.runtime/lib64/libart.so (_ZN3art11interpreterL7ExecuteEPNS_6ThreadERKNS_20CodeItemDataAccessorERNS_11ShadowFrameENS_6JValueEbb.llvm.12938883504528282530+240) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #17 pc 000000000059269c  /apex/com.android.runtime/lib64/libart.so (artQuickToInterpreterBridge+1032) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #18 pc 0000000000140468  /apex/com.android.runtime/lib64/libart.so (art_quick_to_interpreter_bridge+88) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #19 pc 0000000000137334  /apex/com.android.runtime/lib64/libart.so (art_quick_invoke_stub+548) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #20 pc 0000000000145fec  /apex/com.android.runtime/lib64/libart.so (art::ArtMethod::Invoke(art::Thread*, unsigned int*, unsigned int, art::JValue*, char const*)+244) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #21 pc 00000000004b103c  /apex/com.android.runtime/lib64/libart.so (art::(anonymous namespace)::InvokeWithArgArray(art::ScopedObjectAccessAlreadyRunnable const&, art::ArtMethod*, art::(anonymous namespace)::ArgArray*, art::JValue*, char const*)+104) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #22 pc 00000000004b2150  /apex/com.android.runtime/lib64/libart.so (art::InvokeVirtualOrInterfaceWithJValues(art::ScopedObjectAccessAlreadyRunnable const&, _jobject*, _jmethodID*, jvalue const*)+416) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #23 pc 00000000004f2b18  /apex/com.android.runtime/lib64/libart.so (art::Thread::CreateCallback(void*)+1176) (BuildId: ced0e918261ca872f5cff4cdba80b1a9)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #24 pc 00000000000d6b70  /apex/com.android.runtime/lib64/bionic/libc.so (__pthread_start(void*)+36) (BuildId: a2584ee8458a61d422edf24b4cd23b78)
      11-06 10:28:21.765  7717  7717 F DEBUG   :       #25 pc 0000000000074eac  /apex/com.android.runtime/lib64/bionic/libc.so (__start_thread+64) (BuildId: a2584ee8458a61d422edf24b4cd23b78)

      When using ldd on the tests *.so files

              not a dynamic executable
      

      This only affects Android tests with CMake, normal Android apps work fine.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              assam Assam Boudjelthia
              assam Assam Boudjelthia
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes