[MXS-376] MaxScale terminates with SIGABRT. Created: 2015-09-22  Updated: 2015-09-22  Resolved: 2015-09-22

Status: Closed
Project: MariaDB MaxScale
Component/s: readwritesplit
Affects Version/s: 1.2.1, 1.3.0
Fix Version/s: 1.2.1, 1.3.0

Type: Bug Priority: Blocker
Reporter: Johan Wikman Assignee: Johan Wikman
Resolution: Fixed Votes: 0
Labels: None


 Description   

Program terminated with signal 6, Aborted.
#0  0x00007f641a200425 in raise () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f641a203b8b in abort () from /lib/x86_64-linux-gnu/libc.so.6
#2  0x00007f641a23e39e in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#3  0x00007f641a248b96 in ?? () from /lib/x86_64-linux-gnu/libc.so.6
#4  0x0000000000559a6e in gwbuf_free (buf=0x37cc720) at /home/vagrant/workspace/server/core/buffer.c:164
#5  0x000000000055a40c in gwbuf_consume (head=0x37cc720, length=60) at /home/vagrant/workspace/server/core/buffer.c:380
#6  0x00007f64002e55e8 in execute_sescmd_in_backend (backend_ref=0x37cf240)
    at /home/vagrant/workspace/server/modules/routing/readwritesplit/readwritesplit.c:4245
#7  0x00007f64002e1d33 in clientReply (instance=0x370c710, router_session=0x37cf1b0, writebuf=0x0, backend_dcb=0x37f1470)
    at /home/vagrant/workspace/server/modules/routing/readwritesplit/readwritesplit.c:2958
#8  0x00007f63fddebc01 in gw_read_backend_event (dcb=0x37f1470) at /home/vagrant/workspace/server/modules/protocol/mysql_backend.c:575
#9  0x000000000057389e in process_pollq (thread_id=0) at /home/vagrant/workspace/server/core/poll.c:870
#10 0x0000000000572e8f in poll_waitevents (arg=0x0) at /home/vagrant/workspace/server/core/poll.c:610
#11 0x000000000055e396 in main (argc=2, argv=0x7fff37be1148) at /home/vagrant/workspace/server/core/gateway.c:1837



 Comments   
Comment by Johan Wikman [ 2015-09-22 ]

There was incorrect logic that caused a buffer to be freed twice, in certain error situations.

Fixed by commit 4e592f483eda8d92d1c0f8917a2a4dadfec8a39d

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