[MDEV-9751] crash with general protection error Created: 2016-03-17  Updated: 2020-06-02  Resolved: 2020-06-02

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 5.5.46-galera
Fix Version/s: N/A

Type: Bug Priority: Major
Reporter: Raducu Deaconu Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: None
Environment:

3.2.0-4-amd64 #1 SMP Debian 3.2.73-2+deb7u2 x86_64 GNU/Linux


Attachments: Text File gdb_galera.txt    

 Description   

I get sporadic node crashes with :

160317  9:51:14 [ERROR] mysqld got signal 11 ;
This could be because you hit a bug. It is also possible that this binary
or one of the libraries it was linked against is corrupt, improperly built,
or misconfigured. This error can also be caused by malfunctioning hardware.
 
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
diagnose the problem, but since we have already crashed, 
something is definitely wrong and this may fail.
 
Server version: 5.5.46-MariaDB-1~wheezy-wsrep-log
key_buffer_size=16777216
read_buffer_size=131072
max_used_connections=180
max_threads=1202
thread_count=71
It is possible that mysqld could use up to 
key_buffer_size + (read_buffer_size + sort_buffer_size)*max_threads = 2653835 K  bytes of memory
Hope that's ok; if not, decrease some variables in the equation.
 
Thread pointer: 0x0x7f6917697000
Attempting backtrace. You can use the following information to find out
where mysqld died. If you see no messages after this, something went
terribly wrong...
160317 09:51:17 mysqld_safe Number of processes running now: 0
160317 09:51:17 mysqld_safe WSREP: not restarting wsrep node automatically
160317 09:51:17 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended

in messages:

kernel: [3146277.804321] mysqld[7713] general protection ip:7f6b48f79730 sp:7f6afe4ed3d0 error:0 in libgcc_s.so.1[7f6b48f6a000+15000] 



 Comments   
Comment by Elena Stepanova [ 2016-03-17 ]

Could you please enable coredump by adding the following to your config:

[mysqld]
...
--stack-trace
--core-file
 
[mysqld-safe]
--core-file-size=unlimited
...

Hopefully it will help to produce at least some stack trace. Next time you get the crash, please store the coredump (usually it's created in the MariaDB datadir, but it can depend on the system); if you have gdb on your machine, then run gdb --batch --eval-command="thread apply all bt" <path to mysqld> <path to coredump> and gdb --batch --eval-command="thread apply all bt full" <path to mysqld> <path to coredump> and attach the output of both. If you don't have gdb, please upload the coredump and your mysqld binary to ftp.askmonty.org/private; and also attach the new error log and the current config file(s).

Is it a production server? If not, maybe you could run a debug binary for a while, in this case it will produce a much more meaningful stack trace when it crashes? Please let us know if you can do so, we will give you the debug binary.

Thanks.

Comment by Raducu Deaconu [ 2016-03-18 ]

Unfortunately it is a production server so i cannot run debug server.
I have set it to produce a coredump, hopefully that will help,
Thank you

Comment by Elena Stepanova [ 2016-04-15 ]

raducu.deaconu, were you able to acquire a coredump?

Comment by Elena Stepanova [ 2016-05-13 ]

Unfortunately, without any stack trace at all (even an optimized one) we don't have anything to works with, cannot even try to match it with other crash reports.
Please comment to re-open if you have further information on the issue.

Comment by Raducu Deaconu [ 2016-12-03 ]

I was able to get a core dump, and after getting libraries with debug symbols...i got:

(gdb) backtrace full
#0  0x00007f048fee9730 in _Unwind_SetGRPtr (p=<optimized out>, index=<optimized out>, context=<optimized out>) at ../../../src/libgcc/unwind-dw2.c:284
No locals.
#1  _Unwind_SetSpColumn (tmp_sp=0x7f028af653d0, cfa=0x0, context=0x0) at ../../../src/libgcc/unwind-dw2.c:1311
No locals.
#2  uw_init_context_1 (context=0x0, outer_cfa=0x0, outer_ra=0x7f028af65520) at ../../../src/libgcc/unwind-dw2.c:1516
        ra = <optimized out>
        fs = {regs = {reg = {{loc = {reg = 139648898061600, offset = 139648898061600, exp = 0x7f028af65520 ""}, how = 2331399904}, {loc = {reg = 139657574492016, offset = 139657574492016, exp = 0x7f04901e2770 ""}, how = REG_UNSAVED}, {loc = {reg = 139648898062032, 
                  offset = 139648898062032, exp = 0x7f028af656d0 ""}, how = 2331399904}, {loc = {reg = 139657574492016, offset = 139657574492016, exp = 0x7f04901e2770 ""}, how = 2462991328}, {loc = {reg = 139648898065944, offset = 139648898065944, 
                  exp = 0x7f028af66618 "a\241I\032\214", <incomplete sequence \326>}, how = 2414781372}, {loc = {reg = 139648898063568, offset = 139648898063568, exp = 0x7f028af65cd0 "\377\317\362\212\002\177"}, how = 2331401416}, {loc = {reg = 139648898063576, 
                  offset = 139648898063576, exp = 0x7f028af65cd8 "yl\366\212\002\177"}, how = 2331403608}, {loc = {reg = 139648898063536, offset = 139648898063536, exp = 0x7f028af65cb0 "i\210}\307\002\177"}, how = 2331401384}, {loc = {reg = 139648898065792, 
                  offset = 139648898065792, 
                  exp = 0x7f028af66580 "2\324\377mߔ\n\367/\003@\353\323\067\v\361\361\270>\231\214\372\334-·\017tsu{\330\334\317\304nM\370M\314\370m\317\333*\267w\277\221[\245\252\303nVȄR\033\320(.<\355\354;v\262\064\224\335-p\376\337\355\332N\212bx\245-\357`\335\373\207\306\340\213\\\217n\353\221?\006\340&\334\fn\226\315y\272[\fZ}R\222\035\273\334\313\033\242\334\067=ۥ쑻Zr\335\037[\202\253p\367\252s\366\357n\324Ne\233\241\033\233\365\232\032\062a\241I\032\214", <incomplete sequence \326>}, how = REG_UNSAVED}, {loc = {
                  reg = 139648898063464, offset = 139648898063464, exp = 0x7f028af65c68 "\204\227\306?\004\177"}, how = 2331401328}, {loc = {reg = 139648898063480, offset = 139648898063480, exp = 0x7f028af65c78 "\020"}, how = 2331401344}, {loc = {reg = 139648898065760, 
                  offset = 139648898065760, 
                  exp = 0x7f028af66560 "Y\245\033\203B]73~ڲm\321F7\005\326\340zݮ\241\260\030\276\277wj\347[\203O2\324\377mߔ\n\367/\003@\353\323\067\v\361\361\270>\231\214\372\334-·\017tsu{\330\334\317\304nM\370M\314\370m\317\333*\267w\277\221[\245\252\303nVȄR\033\320(.<\355\354;v\262\064\224\335-p\376\337\355\332N\212bx\245-\357`\335\373\207\306\340\213\\\217n\353\221?\006\340&\334\fn\226\315y\272[\fZ}R\222\035\273\334\313\033\242\334\067=ۥ쑻Zr\335\037[\202\253p\367\252s\366\357n\324Ne\233\241\033\233\365\232\032\062a\241I\032\214", <incomplete sequence \326>}, how = 2331403624}, {loc = {reg = 139648898065776, offset = 139648898065776, 
                  exp = 0x7f028af66570 "\326\340zݮ\241\260\030\276\277wj\347[\203O2\324\377mߔ\n\367/\003@\353\323\067\v\361\361\270>\231\214\372\334-·\017tsu{\330\334\317\304nM\370M\314\370m\317\333*\267w\277\221[\245\252\303nVȄR\033\320(.<\355\354;v\262\064\224\335-p\376\337\355\332N\212bx\245-\357`\335\373\207\306\340\213\\\217n\353\221?\006\340&\334\fn\226\315y\272[\fZ}R\222\035\273\334\313\033\242\334\067=ۥ쑻Zr\335\037[\202\253p\367\252s\366\357n\324Ne\233\241\033\233\365\232\032\062a\241I\032\214", <incomplete sequence \326>}, how = 2331403640}, {loc = {reg = 139648898065800, offset = 139648898065800, 
                  exp = 0x7f028af66588 "/\003@\353\323\067\v\361\361\270>\231\214\372\334-·\017tsu{\330\334\317\304nM\370M\314\370m\317\333*\267w\277\221[\245\252\303nVȄR\033\320(.<\355\354;v\262\064\224\335-p\376\337\355\332N\212bx\245-\357`\335\373\207\306\340\213\\\217n\353\221?\006\340&\334\fn\226\315y\272[\fZ}R\222\035\273\334\313\033\242\334\067=ۥ쑻Zr\335\037[\202\253p\367\252s\366\357n\324Ne\233\241\033\233\365\232\032\062a\241I\032\214", <incomplete sequence \326>}, how = REG_UNSAVED}, {loc = {reg = 139648898065808, 
                  offset = 139648898065808, 
                  exp = 0x7f028af66590 "\361\270>\231\214\372\334-·\017tsu{\330\334\317\304nM\370M\314\370m\317\333*\267w\277\221[\245\252\303nVȄR\033\320(.<\355\354;v\262\064\224\335-p\376\337\355\332N\212bx\245-\357`\335\373\207\306\340\213\\\217n\353\221?\006\340&\334\fn\226\315y\272[\fZ}R\222\035\273\334\313\033\242\334\067=ۥ쑻Zr\335\037[\202\253p\367\252s\366\357n\324Ne\233\241\033\233\365\232\032\062a\241I\032\214", <incomplete sequence \326>}, how = 3946840879}, {loc = {reg = 0, offset = 0, exp = 0x0}, how = REG_UNSAVED}, {
                loc = {reg = 0, offset = 0, exp = 0x0}, how = 2453103488}, {loc = {reg = 4611686018427387904, offset = 4611686018427387904, exp = 0x4000000000000000 <Address 0x4000000000000000 out of bounds>}, how = REG_UNSAVED}}, prev = 0x0, cfa_offset = 0, 
            cfa_reg = 0, cfa_exp = 0x0, cfa_how = CFA_UNSET}, pc = 0x0, personality = 0, data_align = 0, code_align = 0, retaddr_column = 0, fde_encoding = 0 '\000', lsda_encoding = 0 '\000', saw_z = 0 '\000', signal_frame = 0 '\000', eh_ptr = 0x0}
        sp_slot = {ptr = 1, word = 1}
        code = <optimized out>
#3  0x0000000000000001 in ?? ()
No symbol table info available.
#4  0x00007f028af65430 in ?? ()
No symbol table info available.
#5  0x00007f028af65520 in ?? ()
No symbol table info available.
#6  0x00007f028af656e0 in ?? ()
No symbol table info available.
#7  0x00007f04901e2770 in nscd_getserv_r (crit=<optimized out>, critlen=<optimized out>, proto=<optimized out>, type=<optimized out>, resultbuf=<optimized out>, buf=<optimized out>, buflen=0, result=0x0) at nscd_getserv_r.c:279
        cnt = <optimized out>
        cp = 0x7f028af66618 "a\241I\032\214", <incomplete sequence \326>
        align2 = <optimized out>
        total_len = <optimized out>
        n = <optimized out>
        gc_cycle = 32516
        nretries = -1831975968
        alloca_used = 0
        mapped = 0x0
        protolen = <optimized out>
        keylen = 139648898065784
        alloca_key = 32514
        key = 0x7f028af66570 "\326\340zݮ\241\260\030\276\277wj\347[\203O2\324\377mߔ\n\367/\003@\353\323\067\v\361\361\270>\231\214\372\334-·\017tsu{\330\334\317\304nM\370M\314\370m\317\333*\267w\277\221[\245\252\303nVȄR\033\320(.<\355\354;v\262\064\224\335-p\376\337\355\332N\212bx\245-\357`\335\373\207\306\340\213\\\217n\353\221?\006\340&\334\fn\226\315y\272[\fZ}R\222\035\273\334\313\033\242\334\067=ۥ쑻Zr\335\037[\202\253p\367\252s\366\357n\324Ne\233\241\033\233\365\232\032\062a\241I\032\214", <incomplete sequence \326>
        s_name = <optimized out>
        alloca_aliases_len = -1963568080
        aliases_len = 0x0
        aliases_list = <optimized out>
        retval = <optimized out>
        recend = <optimized out>
        sock = <optimized out>
        serv_resp = {version = 0, found = 0, s_name_len = 0, s_proto_len = 0, s_aliases_cnt = 0, s_port = 0}
        __PRETTY_FUNCTION__ = '\000' <repeats 14 times>
#8  0x0000000000000000 in ?? ()
No symbol table info available.

Comment by Raducu Deaconu [ 2016-12-03 ]

Attached all the output
gdb_galera.txt

Comment by Elena Stepanova [ 2016-12-03 ]

Can you run it for all threads?
thread apply all bt full

Comment by Raducu Deaconu [ 2016-12-05 ]

thread apply all bt full is also included in the attachment

Comment by Elena Stepanova [ 2016-12-05 ]

Thanks, yes, but unfortunately it still says "No symbols" and doesn't show much.
nirbhay_c, could you please look at it to see if you can get anything to work with? Presumably it has something to do with Galera, although I can't say even that much with certainty.

Comment by Raducu Deaconu [ 2018-06-19 ]

No longer relevant, workaround was to disable query cache, never happened since.

Comment by Ralf Gebhardt [ 2020-06-02 ]

Unsupported Galera Version, workaround exists for that version.

Generated at Thu Feb 08 07:37:03 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.