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

Alignment trap with some QML

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.8.0
    • None
    • Allwinner A13, armv7l, arm-linux-gnueabihf-g++ (Linaro GCC 6.2-2016.11) 6.2.1 20161016, Linux 3.4

    Description

      Some qml files crashes with the following message :

      Alignment trap: not handling instruction f9440adf at [<b679c114>]

      Unhandled fault: alignment exception (0x801) at 0xb2429e1c

      At first, I though the fix for QTBUG-55561 was the problem, but no.

      qtdeclarative/tests/manual/scenegraph_lancelot/data/images/linear_smooth_1_0.qml works, but not QtTest/TestCase.qml.
      The attached qml file is the smallest buggy qml I could create.

      Full gdb debug :

      (gdb) run
      Starting program: /sampleanim
      [Thread debugging using libthread_db enabled]
      Using host libthread_db library "/lib/libthread_db.so.1".
      [New Thread 0xb37be450 (LWP 202)]
      [New Thread 0xb2fbe450 (LWP 203)]
      [ 408.327153] Alignment trap: not handling instruction f9440adf at [<b679c114>]
      [ 408.342141] Unhandled fault: alignment exception (0x801) at 0xb2429e1c

      Program received signal SIGBUS, Bus error.
      [Switching to Thread 0xb2fbe450 (LWP 203)]
      0xb679c118 in QV4::Compiler::JSUnitGenerator::writeFunction(char*, QV4::IR::Function*) const () from /usr/local/qt5/lib/libQt5Qml.so.5

      (gdb) x/i $pc
      => 0xb679c118 <_ZNK3QV48Compiler15JSUnitGenerator13writeFunctionEPcPNS_2IR8FunctionE+248>: orr.w r0, r0, r9, lsl #20
      (gdb) info frame
      Stack level 0, frame at 0xb2fbd7b0:
      pc = 0xb679c118
      in QV4::Compiler::JSUnitGenerator::writeFunction(char*, QV4::IR::Function*) const; saved pc = 0xb679ca08
      called by frame at 0xb2fbd898
      Arglist at 0xb2fbd790, args:
      Locals at 0xb2fbd790, Previous frame's sp is 0xb2fbd7b0
      Saved registers:
      r4 at 0xb2fbd790, r5 at 0xb2fbd794, r6 at 0xb2fbd798, r7 at 0xb2fbd79c,
      r8 at 0xb2fbd7a0, r9 at 0xb2fbd7a4, r10 at 0xb2fbd7a8, lr at 0xb2fbd7ac

      Attachments

        1. main.qml
          0.3 kB
          Alexis huet

        Issue Links

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

          Activity

            People

              shausman Simon Hausmann
              rakuen Alexis huet
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes