>From the backtrace at frist we see:

At the start of mysql it calls init_server_components -> delegates_init.
That then initializes a new object
  alignas(Trans_delegate) static char place_trans_mem[sizeof(Trans_delegate)];
  ...
  transaction_delegate = new (place_trans_mem) Trans_delegate;

That then triggers the allocation of a lock::Shared_spin_lock::Shared_spin_lock
Which itself uses the default constructor:
  Shared_spin_lock() = default;

That then goes into memory::Aligned_atomic<long>::Aligned_atomic

There (at least to my naive view) it seems to go terribly wrong with it's size 
assumptions because if sz is the size in bytes then 
  #6  0x0000003ff76389b8 in operator new (sz=18446744073709551615)
clearly is too much.

...
#6  0x0000003ff76389b8 in operator new (sz=18446744073709551615)
    at ../../../../src/libstdc++-v3/libsupc++/new_op.cc:54
        handler = <optimized out>
        p = <optimized out>
#7  0x0000003ff76389d6 in operator new[] (sz=<optimized out>)
    at ../../../../src/libstdc++-v3/libsupc++/new_opv.cc:32
No locals.
#8  0x0000002aac352ed8 in memory::Aligned_atomic<long>::Aligned_atomic (
    this=0x2aae2463d0 <delegates_init()::place_trans_mem+112>)
    at ./sql/memory/aligned_atomic.h:282
No locals.
#9  memory::Aligned_atomic<long>::Aligned_atomic (value=0, 
    this=0x2aae2463d0 <delegates_init()::place_trans_mem+112>)
    at ./sql/memory/aligned_atomic.h:287
...

** Attachment added: "Backtrace of the issue in Hirsute rsicv64"
   
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1915275/+attachment/5475790/+files/riscv64-libc2.33-hirsute-crash.backtrace

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1915275

Title:
  mysql-8.0 regressed on riscv64 due to new glibc

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1915275/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to