3 Replies Latest reply on Jun 19, 2018 4:41 AM by Max Karlsson

    MC33 crashes when using same driver Xamarin implementation as TC51

    Max Karlsson

      Hi,

       

      We get a complete system crash, with a reboot, when trying to use the same driver implementation for MC33 that we built for TC51.

       

      The crash only occurs when the scanner is initiated and the unit goes to sleep. When it's been sleeping for 3-10 seconds the unit just reboots. As long as the unit doesn't go to sleep the scanner, and the rest of the app, works just fine.

       

      We tried using Microsofts "Insights" to log the crash to get some info, but it never sends any crash report.

       

      Any help on how to debug this would be welcome.

       

      Regards

      Max

        • Re: MC33 crashes when using same driver Xamarin implementation as TC51
          Darryn Campbell

          Hi, you should be able to use RX Logger to help with debugging (About RxLogger - Zebra Technologies TechDocs ).  I would also suggest testing with the Barcode Sample app to make sure nothing else is wrong: GitHub - Zebra/samples-emdkforxamarin-2_5 at BarcodeSample1

          1 of 1 people found this helpful
            • Re: MC33 crashes when using same driver Xamarin implementation as TC51
              Max Karlsson

              Hi,

               

              The Barcode Sample App runs fine, just tested it, thanks!

               

              I reproduced the crash with RX Logger active and I got some information about "Prevented read past end of buffer" which does sound ominous. See full log below.

               

              I also found some differences in implementation between the sample app and our implementation that I will ask the our original developer about.

               

              Crashlog:

              06-19 09:09:04.417   773   773 F libc    : FORTIFY: write: prevented read past end of buffer

              06-19 09:09:04.418   773   773 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 773 (sensors.qcom)

              06-19 09:09:04.475  1607  1607 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

              06-19 09:09:04.475  1607  1607 F DEBUG   : Build fingerprint: 'Zebra/MC33/MC33:7.1.2/01-01-48-NN-00-A/49:user/release-keys'

              06-19 09:09:04.475  1607  1607 F DEBUG   : Revision: '0'

              06-19 09:09:04.475  1607  1607 F DEBUG   : ABI: 'arm64'

              06-19 09:09:04.475  1607  1607 F DEBUG   : pid: 773, tid: 773, name: sensors.qcom  >>> /system/bin/sensors.qcom <<<

              06-19 09:09:04.475  1607  1607 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

              06-19 09:09:04.476  1607  1607 F DEBUG   : Abort message: 'FORTIFY: write: prevented read past end of buffer'

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x0   0000000000000000  x1   0000000000000305  x2   0000000000000006  x3   0000000000000008

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x4   000000000000ffff  x5   0000000000000000  x6   0080000080808080  x7   0000000000000010

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x8   0000000000000083  x9   ffffffffffffffdf  x10  0000000000000000  x11  0000000000000001

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x12  ffffffffffffffff  x13  0000000000000000  x14  0000000000000000  x15  0018deb06bc183d1

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x16  0000007fa2d0ced0  x17  0000007fa2cb6934  x18  00000000ffffffff  x19  0000007fa3150b40

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x20  0000000000000006  x21  0000007fa3150a98  x22  0000000000000000  x23  0000007ffab32db0

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x24  0000000000000000  x25  0000005578c94000  x26  0000007ffab32da0  x27  0000000000000003

              06-19 09:09:04.476  1607  1607 F DEBUG   :     x28  0000007ffab32dd8  x29  0000007ffab32a20  x30  0000007fa2cb3dc4

              06-19 09:09:04.476  1607  1607 F DEBUG   :     sp   0000007ffab32a00  pc   0000007fa2cb693c  pstate 0000000060000000

              06-19 09:09:04.479  1607  1607 F DEBUG   :

              06-19 09:09:04.479  1607  1607 F DEBUG   : backtrace:

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #00 pc 000000000006b93c  /system/lib64/libc.so (tgkill+8)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #01 pc 0000000000068dc0  /system/lib64/libc.so (pthread_kill+64)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #02 pc 0000000000024180  /system/lib64/libc.so (raise+24)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #03 pc 000000000001cbec  /system/lib64/libc.so (abort+52)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #04 pc 000000000002118c  /system/lib64/libc.so (__libc_fatal+104)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #05 pc 0000000000021120  /system/lib64/libc.so (__fortify_chk_fail+52)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #06 pc 0000000000074a78  /system/lib64/libc.so (__write_chk+108)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #07 pc 0000000000037058  /system/bin/sensors.qcom

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #08 pc 0000000000015ff4  /system/bin/sensors.qcom

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #09 pc 000000000001a7d8  /system/lib64/libc.so (__libc_init+88)

              06-19 09:09:04.479  1607  1607 F DEBUG   :     #10 pc 00000000000165fc  /system/bin/sensors.qcom

              06-19 09:17:38.326   731   731 F libc    : FORTIFY: write: prevented read past end of buffer

              06-19 09:17:38.327   731   731 F libc    : Fatal signal 6 (SIGABRT), code -6 in tid 731 (sensors.qcom)

              06-19 09:17:38.384  1493  1493 F DEBUG   : *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***

              06-19 09:17:38.384  1493  1493 F DEBUG   : Build fingerprint: 'Zebra/MC33/MC33:7.1.2/01-01-48-NN-00-A/49:user/release-keys'

              06-19 09:17:38.384  1493  1493 F DEBUG   : Revision: '0'

              06-19 09:17:38.384  1493  1493 F DEBUG   : ABI: 'arm64'

              06-19 09:17:38.384  1493  1493 F DEBUG   : pid: 731, tid: 731, name: sensors.qcom  >>> /system/bin/sensors.qcom <<<

              06-19 09:17:38.384  1493  1493 F DEBUG   : signal 6 (SIGABRT), code -6 (SI_TKILL), fault addr --------

              06-19 09:17:38.386  1493  1493 F DEBUG   : Abort message: 'FORTIFY: write: prevented read past end of buffer'

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x0   0000000000000000  x1   00000000000002db  x2   0000000000000006  x3   0000000000000008

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x4   000000000000ffff  x5   0000000000000000  x6   0080000080808080  x7   0000000000000010

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x8   0000000000000083  x9   ffffffffffffffdf  x10  0000000000000000  x11  0000000000000001

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x12  ffffffffffffffff  x13  0000000000000000  x14  0000000000000000  x15  001379c80d0470a1

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x16  0000007f97faeed0  x17  0000007f97f58934  x18  00000000ffffffff  x19  0000007f984ecb40

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x20  0000000000000006  x21  0000007f984eca98  x22  0000000000000000  x23  0000007ff4ec4800

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x24  0000000000000000  x25  000000556f7ef000  x26  0000007ff4ec47f0  x27  0000000000000003

              06-19 09:17:38.386  1493  1493 F DEBUG   :     x28  0000007ff4ec4828  x29  0000007ff4ec4470  x30  0000007f97f55dc4

              06-19 09:17:38.386  1493  1493 F DEBUG   :     sp   0000007ff4ec4450  pc   0000007f97f5893c  pstate 0000000060000000

              06-19 09:17:38.389  1493  1493 F DEBUG   :

              06-19 09:17:38.389  1493  1493 F DEBUG   : backtrace:

              06-19 09:17:38.389  1493  1493 F DEBUG   :     #00 pc 000000000006b93c  /system/lib64/libc.so (tgkill+8)

              06-19 09:17:38.389  1493  1493 F DEBUG   :     #01 pc 0000000000068dc0  /system/lib64/libc.so (pthread_kill+64)

              06-19 09:17:38.389  1493  1493 F DEBUG   :     #02 pc 0000000000024180  /system/lib64/libc.so (raise+24)

              06-19 09:17:38.389  1493  1493 F DEBUG   :     #03 pc 000000000001cbec  /system/lib64/libc.so (abort+52)

              06-19 09:17:38.389  1493  1493 F DEBUG   :     #04 pc 000000000002118c  /system/lib64/libc.so (__libc_fatal+104)

              06-19 09:17:38.390  1493  1493 F DEBUG   :     #05 pc 0000000000021120  /system/lib64/libc.so (__fortify_chk_fail+52)

              06-19 09:17:38.390  1493  1493 F DEBUG   :     #06 pc 0000000000074a78  /system/lib64/libc.so (__write_chk+108)

              06-19 09:17:38.390  1493  1493 F DEBUG   :     #07 pc 0000000000037058  /system/bin/sensors.qcom

              06-19 09:17:38.390  1493  1493 F DEBUG   :     #08 pc 0000000000015ff4  /system/bin/sensors.qcom

              06-19 09:17:38.390  1493  1493 F DEBUG   :     #09 pc 000000000001a7d8  /system/lib64/libc.so (__libc_init+88)

              06-19 09:17:38.390  1493  1493 F DEBUG   :     #10 pc 00000000000165fc  /system/bin/sensors.qcom

               

              SystemLog:

              06-19 09:17:38.432  1146  1330 W NativeCrashListener: Couldn't find ProcessRecord for pid 731

              • Re: MC33 crashes when using same driver Xamarin implementation as TC51
                Max Karlsson

                After further investigation: We don't implement the OnPause-event at all. Only the OnResume.

                 

                I will investigate further by running some tests.