Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-2576

LP:688404 - pbxt crashes on Windows 64 (misalignment on SSE instruciton)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      In Maria 5.2 PBXT crashes directly on startup
      with this callstack.

      mysqld.exe!_setjmp()
      mysqld.exe!xt_create_thread()[thread_xt.cc:1425]
      mysqld.exe!xt_init_threading()[thread_xt.cc:1211]
      mysqld.exe!pbxt_init()[ha_pbxt.cc:1203]
      mysqld.exe!ha_initialize_handlerton()[handler.cc:431]
      ...

      Disassembly reveals sse instruction that requires 16 bit aligment on misaligned address.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            wlad Vladislav Vaintroub added a comment -

            Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton)
            s.a http://lists.askmonty.org/pipermail/commits/2011-February/001256.html

            Show
            wlad Vladislav Vaintroub added a comment - Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton) s.a http://lists.askmonty.org/pipermail/commits/2011-February/001256.html
            Hide
            wlad Vladislav Vaintroub added a comment -

            Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton)
            Fixed in MartiaDB (long ago, no idea which release)

            Show
            wlad Vladislav Vaintroub added a comment - Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton) Fixed in MartiaDB (long ago, no idea which release)
            Hide
            vladimirkolesnikov Vladimir Kolesnikov added a comment -

            Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton)
            Vladislav,

            I added an aligner to PBXT memory debugging structure, so that now PBXT debug malloc now works fine in 86x64 mode (see the linked lp:pbxt branch). If you're going to merge it to Maria I can push Maria branch with the fix.

            Show
            vladimirkolesnikov Vladimir Kolesnikov added a comment - Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton) Vladislav, I added an aligner to PBXT memory debugging structure, so that now PBXT debug malloc now works fine in 86x64 mode (see the linked lp:pbxt branch). If you're going to merge it to Maria I can push Maria branch with the fix.
            Hide
            wlad Vladislav Vaintroub added a comment -

            Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton)
            Windows has debug malloc, it is malloc in debug C runtime. Besides, it has pageheap and application verifier as debug mallocs for release compilation. Personally I miss the point of adding yet another layer of debug mallocs to already existing ones.

            Show
            wlad Vladislav Vaintroub added a comment - Re: pbxt crashes on Windows 64 (misalignment on SSE instruciton) Windows has debug malloc, it is malloc in debug C runtime. Besides, it has pageheap and application verifier as debug mallocs for release compilation. Personally I miss the point of adding yet another layer of debug mallocs to already existing ones.
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 688404

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 688404

              People

              • Assignee:
                wlad Vladislav Vaintroub
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: