[MDEV-7397] SIGSEGV on inserting into a key-less table Created: 2014-12-30  Updated: 2015-01-01  Resolved: 2015-01-01

Status: Closed
Project: MariaDB Server
Component/s: Galera
Affects Version/s: 10.1.2
Fix Version/s: 10.1.3

Type: Bug Priority: Major
Reporter: Nirbhay Choubey (Inactive) Assignee: Nirbhay Choubey (Inactive)
Resolution: Fixed Votes: 0
Labels: None


 Description   

(gdb)
#0 0x0000555556211dbf in md5_init (context=0x7ffff7ece750)
at /home/nirbhay/project/git-repo/maria/server/mysys_ssl/my_md5.cc:37
#1 0x00005555562120aa in my_md5_init (context=0x7ffff7ece750)
at /home/nirbhay/project/git-repo/maria/server/mysys_ssl/my_md5.cc:137
#2 0x0000555555f4e276 in wsrep_calc_row_hash (digest=0x7ffff7ecfad0 "", row=0x7fffc73bb688 "\375\001",
table=0x7ffff5dadc70, prebuilt=0x7ffff5daea78, thd=0x7fffcdeda070)
at /home/nirbhay/project/git-repo/maria/server/storage/xtradb/handler/ha_innodb.cc:8673
#3 0x0000555555f52ca3 in ha_innobase::wsrep_append_keys (this=0x7ffff5d5b888, thd=0x7fffcdeda070, shared=false,
record0=0x7fffc73bb688 "\375\001", record1=0x0)
at /home/nirbhay/project/git-repo/maria/server/storage/xtradb/handler/ha_innodb.cc:10556
#4 0x0000555555f4d857 in ha_innobase::write_row (this=0x7ffff5d5b888, record=0x7fffc73bb688 "\375\001")
at /home/nirbhay/project/git-repo/maria/server/storage/xtradb/handler/ha_innodb.cc:8354
#5 0x0000555555c1e0f9 in handler::ha_write_row (this=0x7ffff5d5b888, buf=0x7fffc73bb688 "\375\001")
at /home/nirbhay/project/git-repo/maria/server/sql/handler.cc:5871
#6 0x00005555559ccb99 in write_record (thd=0x7fffcdeda070, table=0x7ffff5dadc70, info=0x7ffff7ed1030)
at /home/nirbhay/project/git-repo/maria/server/sql/sql_insert.cc:1852
#7 0x00005555559ca6d3 in mysql_insert (thd=0x7fffcdeda070, table_list=0x7fffcdf1d168, fields=..., values_list=...,
update_fields=..., update_values=..., duplic=DUP_ERROR, ignore=false)
at /home/nirbhay/project/git-repo/maria/server/sql/sql_insert.cc:962
#8 0x00005555559ed263 in mysql_execute_command (thd=0x7fffcdeda070)
at /home/nirbhay/project/git-repo/maria/server/sql/sql_parse.cc:3810
#9 0x00005555559f7331 in mysql_parse (thd=0x7fffcdeda070, rawbuf=0x7fffcdf1d088 "insert into t1 values(1)",
length=24, parser_state=0x7ffff7ed2220) at /home/nirbhay/project/git-repo/maria/server/sql/sql_parse.cc:7024
#10 0x00005555559f6aa2 in wsrep_mysql_parse (thd=0x7fffcdeda070, rawbuf=0x7fffcdf1d088 "insert into t1 values(1)",
length=24, parser_state=0x7ffff7ed2220) at /home/nirbhay/project/git-repo/maria/server/sql/sql_parse.cc:6847
#11 0x00005555559e6e33 in dispatch_command (command=COM_QUERY, thd=0x7fffcdeda070,
packet=0x7fffc7358071 "insert into t1 values(1)", packet_length=24)
at /home/nirbhay/project/git-repo/maria/server/sql/sql_parse.cc:1456
#12 0x00005555559e5ca5 in do_command (thd=0x7fffcdeda070)
at /home/nirbhay/project/git-repo/maria/server/sql/sql_parse.cc:1089
#13 0x0000555555b1486b in do_handle_one_connection (thd_arg=0x7fffcdeda070)
at /home/nirbhay/project/git-repo/maria/server/sql/sql_connect.cc:1347
#14 0x0000555555b145c3 in handle_one_connection (arg=0x7fffcdeda070)
at /home/nirbhay/project/git-repo/maria/server/sql/sql_connect.cc:1258
#15 0x00007ffff7138182 in start_thread (arg=0x7ffff7ed3700) at pthread_create.c:312
#16 0x00007ffff685aefd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:111



 Comments   
Comment by Nirbhay Choubey (Inactive) [ 2014-12-31 ]

http://lists.askmonty.org/pipermail/commits/2014-December/007225.html

Comment by Jan Lindström (Inactive) [ 2014-12-31 ]

Ok to push, make sure that contex created is freed somewhere (not clear based on patch).

Comment by Nirbhay Choubey (Inactive) [ 2015-01-01 ]

https://github.com/MariaDB/server/commit/61f73d40cab40994a1baaacc87c9e81d8e335975

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