[MDEV-599] LP:625107 - xtradb crashes on shutdown Created: 2010-08-27 Updated: 2013-08-17 Resolved: 2013-08-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.2.13, 5.1.66, 5.3.12 |
| Fix Version/s: | 5.1.73, 5.2.15, 5.3.13 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Sergei Golubchik | Assignee: | Sergei Golubchik |
| Resolution: | Won't Fix | Votes: | 0 |
| Labels: | Launchpad | ||
| Environment: |
Windows, non-default build with XtraDB as a dynamic plugin |
||
| Attachments: |
|
| Description |
|
on windows, mariadb-5.1, built with default options (win\configure.js) - xtradb is built as dll. In innobase_shutdown_for_mysql() there is:
Now, btr_search_sys_free() is
It crashes later, in sync_close():
because one of the mutexes (3rd in the list) is filled with 0xFEEEFEEE. This is the value that windows uses to fill the freed memory. And this mutex is freed in btr_search_sys_free(), line 185. When I comment this line (185) out, xtradb doesn't crash anymore. |
| Comments |
| Comment by Stewart Smith [ 2011-06-07 ] |
|
Re: xtradb crashes on shutdown Thanks, |
| Comment by Rasmus Johansson (Inactive) [ 2011-06-07 ] |
|
Launchpad bug id: 625107 |
| Comment by Sergei Golubchik [ 2012-12-25 ] |
|
Elena, could you please check whether it's still repeatable? |
| Comment by Elena Stepanova [ 2013-01-06 ] |
|
Now XtraDB is built statically by default, so the described problem cannot happen in a regular scenario. 1. If I force building it as dll on current 5.1 / 5.3, it does crash on shutdown. Stack trace I'm getting does not contain sync_close() though – maybe because of the assertion that happens before (stack trace is below). 2. InnoDB plugin on 5.1 / 5.3 also crashes on shutdown, both on Windows and Linux. For 5.5, I could not build XtraDB as a dll on Windows (my best attempt failed with an unresolved symbol); but InnoDB 5.5 Windows does not crash, and neither InnoDB nor XtraDB 5.5 Linux. So, I suppose the problem is fixed in 5.5. Still, I can try XtraDB 5.5 Windows if somebody tells me how to build it as dll properly. Error log and stack trace from current 5.1: Version: '5.1.66-MariaDB-debug' socket: '' port: 3306 Source distribution To report this bug, see http://kb.askmonty.org/en/reporting-bugs We will try our best to scrape up some info that will hopefully help key_buffer_size=134213632 Thread pointer: 0x0238ECC0 Trying to get some variables. The manual page at http://dev.mysql.com/doc/mysql/en/crashing.html contains Steps to reproduce on 5.1 / 5.3: bzr branch lp:maria/<version> To make XtraDB be built as dll, I removed the following line from storage/xtradb/plug.in: cd <basedir> win\configure.js in a client: install plugin innodb soname 'ha_xtradb.dll';
uninstall plugin innodb
|
| Comment by Elena Stepanova [ 2013-01-06 ] |
|
After Wlad's fix (revision-id: wlad@montyprogram.com-20130105225225-c2fjxdrft8ktq6kg revno: 3607) XtraDB in 5.5 can be built as dll on Windows, so I was able to check the final part – no crash on plugin shutdown in 5.5. |