Bug #12134 rowbased replication on table without primary key fails
Submitted: 23 Jul 2005 22:52 Modified: 15 Sep 2005 16:11
Reporter: Tomas Ulin Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: Replication Severity:S1 (Critical)
Version:5.0-wl1012 OS:Linux (linux amd64)
Assigned to: Lars Thalmann CPU Architecture:Any

[23 Jul 2005 22:52] Tomas Ulin
Description:
failed tests in mysql-test-run

rpl_row_basic_2myisam rpl_row_basic_3innodb

How to repeat:
compile-amd64-max
./mysql-test-run --force --skip-ndbcluster --do-test=rpl_row_basic

from core

(gdb) where
#0  0x0000003872e09737 in pthread_kill () from /lib64/tls/libpthread.so.0
#1  0x0000000000583329 in handle_segfault (sig=11) at mysqld.cc:2011
#2  <signal handler called>
#3  key_copy (to_key=0xd6d578 "\230ærr8", from_record=0xd903c8 "ñXX\003", key_info=0xd903b8, key_length=255) at key.cc:103
#4  0x00000000006124c5 in Delete_rows_log_event::do_prepare_row (this=0xd6d480, thd=0xd6d578, table=0xd8fae0, row_start=0x0) at log_event.cc:5901
#5  0x000000000060edda in Rows_log_event::exec_event (this=0xd6d480, rli=0xd397d0) at log_event.cc:5107
#6  0x000000000069af08 in handle_slave_sql (arg=0x9a79d0) at slave.cc:2901
#7  0x0000003872e0613a in start_thread () from /lib64/tls/libpthread.so.0
#8  0x00000038725c52b3 in clone () from /lib64/tls/libc.so.6
#9  0x0000000000000000 in ?? ()
(gdb) up
#1  0x0000000000583329 in handle_segfault (sig=11) at mysqld.cc:2011
2011       write_core(sig);
(gdb) up
#2  <signal handler called>
(gdb) up
#3  key_copy (to_key=0xd6d578 "\230ærr8", from_record=0xd903c8 "ñXX\003", key_info=0xd903b8, key_length=255) at key.cc:103
103         if (key_part->null_bit)
(gdb) up
#4  0x00000000006124c5 in Delete_rows_log_event::do_prepare_row (this=0xd6d480, thd=0xd6d578, table=0xd8fae0, row_start=0x0) at log_event.cc:5901
5901        key_copy(m_key, table->record[0], key_info, 0);
(gdb) up
#5  0x000000000060edda in Rows_log_event::exec_event (this=0xd6d480, rli=0xd397d0) at log_event.cc:5107
5107          char const* row_end= do_prepare_row(thd, table, row_start);
(gdb) up
#6  0x000000000069af08 in handle_slave_sql (arg=0x9a79d0) at slave.cc:2901
2901        exec_res = ev->exec_event(rli);
(gdb) up
#7  0x0000003872e0613a in start_thread () from /lib64/tls/libpthread.so.0

cause of problem:

(gdb) p *key_part
Cannot access memory at address 0x0
[27 Jul 2005 19:55] Elliot Murphy
QA is reporting the same crash, here is some info from Omer:

Jeb ran the standard tests for replication (located in the standard '/t' directory (using the 5.1 binaries) with the server set to row_based_replication:

./mysql-test-run --mysqld=--binlog-format=row --do-test=rpl* --force --skip-ndb

There were 7 crashes (and other differences that that I didn't get a chance to look into yet).

All crashes were of the 'slave'.

Details on the crashs:

test			failure - line		trace file (attached)
----			---------------		---------------------
rpl_000001(*)						7508
rpl_multi_delete	sync_with_master - 15		10042
rpl_multi_update3	sync_slave_with_master - 86	10319
rpl_relayremote		sync_with_master - 81		10707
rpl_replicate_do	sync_with_master - 24		10850
..include/rpl_row_basic	sync_slave_with_master - 117	11149	
(called from rpl_row_2myisam)
rpl_view		sync_slave_with_master - 27	12120

Note: sync_slave_with_master / sync_with_master are 'mysqltest' internal commands (see code in ../client/mysqltest.c

(*) Note there is an rpl000001_row test that passed.

All the above passed for 'statement replication'

Also attaching a file which contains some additional stack traces.
[27 Jul 2005 19:56] Elliot Murphy
stack traces from Jeb

Attachment: replication.cores (application/octet-stream, text), 5.09 KiB.

[3 Aug 2005 23:18] Jonathan Miller
Since this is going into 5.0 it need a higher priority.
[4 Aug 2005 19:18] Elliot Murphy
On Aug 4, 2005, at 1:18 PM, Jonathan Miller wrote:

To all,

I started to augment the rpl_sp.test to rpl_row_sp.test and change the
contents to allow the non-deterministic SP to actually use the real dates
and not replace the data. In short:

#0  0x40250da1 in kill () from /lib/libc.so.6
#1  0x40181f4a in pthread_kill () from /lib/libpthread.so.0
#2  0x0828e86d in write_core (sig=11) at stacktrace.c:220
#3  0x0818aaad in handle_segfault (sig=11) at mysqld.cc:2026
#4  0x401855cd in __pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  key_copy (to_key=0x4130b158 "(\205Z\b \b", from_record=0x8774720 "h
Y\b\210\020K\bp\223v\b\200 Y\b",  key_info=0x0, key_length=253)
    at field.h:1131
#7  0x0820b502 in Delete_rows_log_event::do_prepare_row(THD*, st_table*,
char const*) (
    this=0x4130b158, thd=0x0, table=0x872c900, row_start=0x4130b1e0 " \17")
    at log_event.cc:5846
#8  0x0820a55f in Rows_log_event::exec_event(st_relay_log_info*)
(this=0x4130b158,
    rli=0x873b4d4) at log_event.cc:5092
#9  0x082848cf in exec_relay_log_event (thd=0x8774720, rli=0x873b4d4) at
slave.cc:2959
#10 0x08282628 in handle_slave_sql (arg=0x87352f0) at slave.cc:3507
#11 0x4017f6de in pthread_start_thread () from /lib/libpthread.so.0

I believe this is the same key copy bug that Elliot has 6 other cores for. I
would need this patched before I can work more on the non-deterministic SP.
[5 Aug 2005 17:37] Jonathan Miller
Created another one today by:
follow the steps in 12403 and then add:
From master:
mysql> drop table t1;
Query OK, 0 rows affected (0.00 sec)

mysql> create table t1 (a int);
Query OK, 0 rows affected (0.00 sec)

mysql> insert into t1 values(1);
Query OK, 1 row affected (0.00 sec)

mysql> insert into t1 values(2);
Query OK, 1 row affected (0.00 sec)

mysql> insert into t1 values(3);
Query OK, 1 row affected (0.00 sec)

mysql> insert into t1 values(4);
Query OK, 1 row affected (0.00 sec)

mysql> update t1 set a=2;
Query OK, 3 rows affected (0.00 sec)
Rows matched: 4  Changed: 3  Warnings: 0

0x818a964 handle_segfault + 452
0x401875cd _end + 934043133
0x8179aa1 _Z8key_copyPcS_P6st_keyj + 49
0x820b9ad _ZN21Update_rows_log_event14do_prepare_rowEP3THDP8st_tablePKc + 141
0x820a4ef _ZN14Rows_log_event10exec_eventEP17st_relay_log_info + 1039
0x828484f _Z20exec_relay_log_eventP3THDP17st_relay_log_info + 575
0x82825a8 handle_slave_sql + 1048
0x401816de _end + 934018830
0x403006c7 _end + 935587575
[11 Aug 2005 22:20] Jonathan Miller
rpl_multi_update3.test causes this as well.

#0  0x40250da1 in kill () from /lib/libc.so.6
#1  0x40181f4a in pthread_kill () from /lib/libpthread.so.0
#2  0x0828fd2d in write_core (sig=11) at stacktrace.c:220
#3  0x0818b4ed in handle_segfault (sig=11) at mysqld.cc:2064
#4  0x401855cd in __pthread_sighandler () from /lib/libpthread.so.0
#5  <signal handler called>
#6  key_copy (to_key=0x8746b28
[7 Sep 2005 12:15] Lars Thalmann
After the latest merge, I think these crashes no longer occur and that 
the status is as follows:

rpl_row_basic_2myisam 	Passes
rpl_row_basic_3innodb	Passes
rpl_000001(*)		Need to be put back in tree
rpl_multi_delete	Passes
rpl_multi_update3	Need to be put back in tree
rpl_relayremote		Need to be put back in tree
rpl_replicate_do	Passes
rpl_view		Need to be put back in tree
[7 Sep 2005 14:14] Lars Thalmann
There are still issues with this...
[7 Sep 2005 17:45] Jonathan Miller
rpl_row_replicate_do
#0  0x00f83402 in __kernel_vsyscall ()
#1  0x00a2855f in pthread_kill () from /lib/libpthread.so.0
#2  0x082c46fb in write_core (sig=21416) at stacktrace.c:220
#3  0x0819c8b2 in handle_segfault (sig=11) at mysqld.cc:2062
#4  <signal handler called>
#5  0x0818b052 in key_copy (to_key=0x90d3700 "",
    from_record=0x90d2cd0 "�\020", key_info=0x90d2be8, key_length=1868824831)
    at key.cc:105
#6  0x08226632 in Update_rows_log_event::do_prepare_row (this=0x90d3678,
    thd=0x9123570, table=0x90f4050, row_start=0x90d3278 "�\020")
    at log_event.cc:6008
#7  0x082240bf in Rows_log_event::exec_event (this=0x90d3678, rli=0x90eb614)
    at log_event.cc:5101
#8  0x082b9e6a in handle_slave_sql (arg=0x90e5430) at slave.cc:2960
#9  0x00a25b80 in start_thread () from /lib/libpthread.so.0
#10 0x0097d9ce in clone () from /lib/libc.so.6
[7 Sep 2005 17:47] Jonathan Miller
rpl_row_multi_update3
#0  0x0090e402 in __kernel_vsyscall ()
#1  0x00a2855f in pthread_kill () from /lib/libpthread.so.0
#2  0x082c46fb in write_core (sig=21539) at stacktrace.c:220
#3  0x0819c8b2 in handle_segfault (sig=11) at mysqld.cc:2062
#4  <signal handler called>
#5  0x0818b052 in key_copy (to_key=0x95b3bf8 "",
    from_record=0x956ecb0 "�Yes", ' ' <repeats 27 times>, "\001",
    key_info=0x956eb68, key_length=255) at key.cc:105
#6  0x08226632 in Update_rows_log_event::do_prepare_row (this=0x95b3b10,
    thd=0x95bf4d0, table=0x958ffb0, row_start=0x956db58 "�\003Yes\001")
    at log_event.cc:6008
#7  0x082240bf in Rows_log_event::exec_event (this=0x95b3b10, rli=0x9587574)
    at log_event.cc:5101
#8  0x082b9e6a in handle_slave_sql (arg=0x9581390) at slave.cc:2960
#9  0x00a25b80 in start_thread () from /lib/libpthread.so.0
#10 0x001dc9ce in clone () from /lib/libc.so.6
[7 Sep 2005 17:50] Jonathan Miller
rpl_multi_delete:

rpl_multi_delete                *** glibc detected *** /home/ndbdev/jmiller/mysql5.0/sql/mysqld: free(): invalid next size (fast): 0x08e3fbd0 ***
======= Backtrace: =========
/lib/libc.so.6[0x916124]
/lib/libc.so.6(__libc_free+0x77)[0x91665f]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(_ZN21Delete_rows_log_event23do_after_row_operationsEP8st_tablei+0x37)[0x8223a17]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(_ZN14Rows_log_event10exec_eventEP17st_relay_log_info+0x2a1)[0x8223f91]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(handle_slave_sql+0x6fa)[0x82b9e6a]
/lib/libpthread.so.0[0xa25b80]
/lib/libc.so.6(__clone+0x5e)[0x97d9ce]
======= Memory map: ========
00111000-00114000 rwxp 00111000 00:00 0
00114000-00115000 --xp 00114000 00:00 0
00115000-00145000 rwxp 00115000 00:00 0
00145000-00146000 --xp 00145000 00:00 0
00146000-00176000 rwxp 00146000 00:00 0
0017d000-00261000 rwxp 0017d000 00:00 0
00261000-00262000 --xp 00261000 00:00 0
00262000-00292000 rwxp 00262000 00:00 0
00292000-00293000 --xp 00292000 00:00 0
00293000-002c3000 rwxp 00293000 00:00 0
002c3000-002c4000 --xp 002c3000 00:00 0
002c4000-002f4000 rwxp 002c4000 00:00 0
003c5000-003c6000 --xp 003c5000 00:00 0
003c6000-003f6000 rwxp 003c6000 00:00 0
00496000-00497000 rwxp 00496000 00:00 0
00628000-00629000 r-xp 00628000 00:00 0
00895000-008af000 r-xp 00000000 03:02 1924000    /lib/ld-2.3.5.so
008af000-008b0000 r-xp 00019000 03:02 1924000    /lib/ld-2.3.5.so
008b0000-008b1000 rwxp 0001a000 03:02 1924000    /lib/ld-2.3.5.so
008b3000-009d6000 r-xp 00000000 03:02 1926370    /lib/libc-2.3.5.so
009d6000-009d8000 r-xp 00123000 03:02 1926370    /lib/libc-2.3.5.so
009d8000-009da000 rwxp 00125000 03:02 1926370    /lib/libc-2.3.5.so
009da000-009dc000 rwxp 009da000 00:00 0
009de000-009e0000 r-xp 00000000 03:02 1926373    /lib/libdl-2.3.5.so
009e0000-009e1000 r-xp 00001000 03:02 1926373    /lib/libdl-2.3.5.so
009e1000-009e2000 rwxp 00002000 03:02 1926373    /lib/libdl-2.3.5.so
009e4000-00a07000 r-xp 00000000 03:02 1926374    /lib/libm-2.3.5.so
00a07000-00a08000 r-xp 00022000 03:02 1926374    /lib/libm-2.3.5.so
00a08000-00a09000 rwxp 00023000 03:02 1926374    /lib/libm-2.3.5.so
00a0b000-00a1d000 r-xp 00000000 03:02 985062     /usr/lib/libz.so.1.2.2.2
00a1d000-00a1e000 rwxp 00011000 03:02 985062     /usr/lib/libz.so.1.2.2.2
00a20000-00a2e000 r-xp 00000000 03:02 1926371    /lib/libpthread-2.3.5.so
00a2e000-00a2f000 r-xp 0000d000 03:02 1926371    /lib/libpthread-2.3.5.so
00a2f000-00a30000 rwxp 0000e000 03:02 1926371    /lib/libpthread-2.3.5.so
00a30000-00a32000 rwxp 00a30000 00:00 0
00a34000-00a43000 r-xp 00000000 03:02 1923938    /lib/libresolv-2.3.5.so
00a43000-00a44000 r-xp 0000e000 03:02 1923938    /lib/libresolv-2.3.5.so
00a44000-00a45000 rwxp 0000f000 03:02 1923938    /lib/libresolv-2.3.5.so
00a45000-00a47000 rwxp 00a45000 00:00 0
00a5c000-00a61000 r-xp 00000000 03:02 1926384    /lib/libcrypt-2.3.5.so
00a61000-00a62000 r-xp 00004000 03:02 1926384    /lib/libcrypt-2.3.5.so
00a62000-00a63000 rwxp 00005000 03:02 1926384    /lib/libcrypt-2.3.5.so
00a63000-00a8a000 rwxp 00a63000 00:00 0
00a8c000-00a8e000 r-xp 00000000 03:02 1926377    /lib/libcom_err.so.2.1
00a8e000-00a8f000 rwxp 00001000 03:02 1926377    /lib/libcom_err.so.2.1
00a9b000-00aa4000 r-xp 00000000 03:02 1926375    /lib/libgcc_s-4.0.1-20050727.so.1
00aa4000-00aa5000 rwxp 00009000 03:02 1926375    /lib/libgcc_s-4.0.1-20050727.so.1
00aa7000-00aa9000 r-xp 00000000 03:02 990591     /usr/lib/libkrb5support.so.0.0
00aa9000-00aaa000 rwxp 00001000 03:02 990591     /usr/lib/libkrb5support.so.0.0
00aac000-00abe000 r-xp 00000000 03:02 1924002    /lib/libnsl-2.3.5.so
00abe000-00abf000 r-xp 00011000 03:02 1924002    /lib/libnsl-2.3.5.so
00abf000-00ac0000 rwxp 00012000 03:02 1924002    /lib/libnsl-2.3.5.so
00ac0000-00ac2000 rwxp 00ac0000 00:00 0
00b99000-00bb0000 r-xp 00000000 03:02 990594     /usr/lib/libgssapi_krb5.so.2.2
00bb0000-00bb1000 rwxp 00017000 03:02 990594     /usr/lib/libgssapi_krb5.so.2.2
00bb3000-00cab000 r-xp 00000000 03:02 1926378    /lib/libcrypto.so.0.9.7f
00cab000-00cbd000 rwxp 000f8000 03:02 1926378    /lib/libcrypto.so.0.9.7f
00cbd000-00cc0000 rwxp 00cbd000 00:00 0
00cc2000-00ce5000 r-xp 00000000 03:02 990592     /usr/lib/libk5crypto.so.3.0
00ce5000-00ce6000 rwxp 00023000 03:02 990592     /usr/lib/libk5crypto.so.3.0
00ce8000-00d57000 r-xp 00000000 03:02 990593     /usr/lib/libkrb5.so.3.2
00d57000-00d5a000 rwxp 0006e000 03:02 990593     /usr/lib/libkrb5.so.3.2
00d5c000-00d91000 r-xp 00000000 03:02 1926379    /lib/libssl.so.0.9.7f
00d91000-00d94000 rwxp 00035000 03:02 1926379    /lib/libssl.so.0.9.7f
00d96000-00d9e000 r-xp 00000000 03:02 1926376    /lib/librt-2.3.5.so
00d9e000-00d9f000 r-xp 00007000 03:02 1926376    /lib/librt-2.3.5.so
00d9f000-00da0000 rwxp 00008000 03:02 1926376    /lib/librt-2.3.5.so
00da0000-017ad000 rwxp 00da0000 00:00 0
03ed8000-04351000 rwxp 03ed8000 00:00 0
08048000-085f5000 r-xp 00000000 03:02 2414696    /home/ndbdev/jmiller/mysql5.0/sql/mysqld
085f5000-08707000 rwxp 005ac000 03:02 2414696    /home/ndbdev/jmiller/mysql5.0/sql/mysqld
08707000-08722000 rwxp 08707000 00:00 0
08ddf000-08ebf000 rwxp 08ddf000 00:00 0          [heap]
b7e00000-b7e21000 rwxp b7e00000 00:00 0
b7e21000-b7f00000 --xp b7e21000 00:00 0
bf92f000-bf944000 rwxp bf92f000 00:00 0          [stack]
----- Back Trace -------
#0  0x00628402 in __kernel_vsyscall ()
#1  0x00a2855f in pthread_kill () from /lib/libpthread.so.0
#2  0x082c46fb in write_core (sig=21638) at stacktrace.c:220
#3  0x0819c8b2 in handle_segfault (sig=6) at mysqld.cc:2062
#4  <signal handler called>
#5  0x00628402 in __kernel_vsyscall ()
#6  0x008db118 in raise () from /lib/libc.so.6
#7  0x008dc888 in abort () from /lib/libc.so.6
#8  0x0091022a in __libc_message () from /lib/libc.so.6
#9  0x00916124 in _int_free () from /lib/libc.so.6
#10 0x0091665f in free () from /lib/libc.so.6
#11 0x08223a17 in Delete_rows_log_event::do_after_row_operations (
    this=0x8e41538, table=0x0, error=0) at log_event.cc:5820
#12 0x08223f91 in Rows_log_event::exec_event (this=0x8e41538, rli=0x8e595d4)
    at log_event.cc:5128
#13 0x082b9e6a in handle_slave_sql (arg=0x8e533f0) at slave.cc:2960
#14 0x00a25b80 in start_thread () from /lib/libpthread.so.0
#15 0x0097d9ce in clone () from /lib/libc.so.6
[7 Sep 2005 17:53] Jonathan Miller
rpl_row_view:

rpl_row_view                    *** glibc detected *** /home/ndbdev/jmiller/mysql5.0/sql/mysqld: malloc(): memory corruption: 0x0a3fc900 ***
======= Backtrace: =========
/lib/libc.so.6[0x9170ea]
/lib/libc.so.6(malloc+0x74)[0x918492]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(my_malloc+0x27)[0x8515087]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(_ZN3THD33binlog_prepare_pending_rows_eventI21Update_rows_log_eventEEP14Rows_log_eventP8st_tablejPK9st_bitmapjjb+0x6f)[0x8193a0f]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(_ZN3THD17binlog_update_rowEP8st_tablebPK9st_bitmapjPKcS6_+0x280)[0x8191af0]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(_Z14binlog_log_rowI21Update_rows_log_eventEbP8st_tablePKcPc+0xf6)[0x825f746]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(_ZN7handler13ha_update_rowEPKcPc+0x42)[0x825cdd2]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(_ZN14Rows_log_event10exec_eventEP17st_relay_log_info+0x3e8)[0x82240d8]
/home/ndbdev/jmiller/mysql5.0/sql/mysqld(handle_slave_sql+0x6fa)[0x82b9e6a]
/lib/libpthread.so.0[0xa25b80]
/lib/libc.so.6(__clone+0x5e)[0x97d9ce]
======= Memory map: ========
00111000-00209000 r-xp 00000000 03:02 1926378    /lib/libcrypto.so.0.9.7f
00209000-0021b000 rwxp 000f8000 03:02 1926378    /lib/libcrypto.so.0.9.7f
0021b000-00221000 rwxp 0021b000 00:00 0
00221000-00222000 --xp 00221000 00:00 0
00222000-00252000 rwxp 00222000 00:00 0
00252000-00253000 --xp 00252000 00:00 0
00253000-00283000 rwxp 00253000 00:00 0
00283000-00284000 --xp 00283000 00:00 0
00284000-002b4000 rwxp 00284000 00:00 0
002b4000-002b5000 --xp 002b4000 00:00 0
002b5000-002e5000 rwxp 002b5000 00:00 0
00302000-003e6000 rwxp 00302000 00:00 0
00433000-00434000 rwxp 00433000 00:00 0
00692000-00693000 r-xp 00692000 00:00 0
00805000-00806000 --xp 00805000 00:00 0
00806000-00836000 rwxp 00806000 00:00 0
00895000-008af000 r-xp 00000000 03:02 1924000    /lib/ld-2.3.5.so
008af000-008b0000 r-xp 00019000 03:02 1924000    /lib/ld-2.3.5.so
008b0000-008b1000 rwxp 0001a000 03:02 1924000    /lib/ld-2.3.5.so
008b3000-009d6000 r-xp 00000000 03:02 1926370    /lib/libc-2.3.5.so
009d6000-009d8000 r-xp 00123000 03:02 1926370    /lib/libc-2.3.5.so
009d8000-009da000 rwxp 00125000 03:02 1926370    /lib/libc-2.3.5.so
009da000-009dc000 rwxp 009da000 00:00 0
009de000-009e0000 r-xp 00000000 03:02 1926373    /lib/libdl-2.3.5.so
009e0000-009e1000 r-xp 00001000 03:02 1926373    /lib/libdl-2.3.5.so
009e1000-009e2000 rwxp 00002000 03:02 1926373    /lib/libdl-2.3.5.so
009e4000-00a07000 r-xp 00000000 03:02 1926374    /lib/libm-2.3.5.so
00a07000-00a08000 r-xp 00022000 03:02 1926374    /lib/libm-2.3.5.so
00a08000-00a09000 rwxp 00023000 03:02 1926374    /lib/libm-2.3.5.so
00a0b000-00a1d000 r-xp 00000000 03:02 985062     /usr/lib/libz.so.1.2.2.2
00a1d000-00a1e000 rwxp 00011000 03:02 985062     /usr/lib/libz.so.1.2.2.2
00a20000-00a2e000 r-xp 00000000 03:02 1926371    /lib/libpthread-2.3.5.so
00a2e000-00a2f000 r-xp 0000d000 03:02 1926371    /lib/libpthread-2.3.5.so
00a2f000-00a30000 rwxp 0000e000 03:02 1926371    /lib/libpthread-2.3.5.so
00a30000-00a32000 rwxp 00a30000 00:00 0
00a34000-00a43000 r-xp 00000000 03:02 1923938    /lib/libresolv-2.3.5.so
00a43000-00a44000 r-xp 0000e000 03:02 1923938    /lib/libresolv-2.3.5.so
00a44000-00a45000 rwxp 0000f000 03:02 1923938    /lib/libresolv-2.3.5.so
00a45000-00a47000 rwxp 00a45000 00:00 0
00a5c000-00a61000 r-xp 00000000 03:02 1926384    /lib/libcrypt-2.3.5.so
00a61000-00a62000 r-xp 00004000 03:02 1926384    /lib/libcrypt-2.3.5.so
00a62000-00a63000 rwxp 00005000 03:02 1926384    /lib/libcrypt-2.3.5.so
00a63000-00a8a000 rwxp 00a63000 00:00 0
00a8c000-00a8e000 r-xp 00000000 03:02 1926377    /lib/libcom_err.so.2.1
00a8e000-00a8f000 rwxp 00001000 03:02 1926377    /lib/libcom_err.so.2.1
00a9b000-00aa4000 r-xp 00000000 03:02 1926375    /lib/libgcc_s-4.0.1-20050727.so.1
00aa4000-00aa5000 rwxp 00009000 03:02 1926375    /lib/libgcc_s-4.0.1-20050727.so.1
00aa7000-00aa9000 r-xp 00000000 03:02 990591     /usr/lib/libkrb5support.so.0.0
00aa9000-00aaa000 rwxp 00001000 03:02 990591     /usr/lib/libkrb5support.so.0.0
00aac000-00abe000 r-xp 00000000 03:02 1924002    /lib/libnsl-2.3.5.so
00abe000-00abf000 r-xp 00011000 03:02 1924002    /lib/libnsl-2.3.5.so
00abf000-00ac0000 rwxp 00012000 03:02 1924002    /lib/libnsl-2.3.5.so
00ac0000-00ac2000 rwxp 00ac0000 00:00 0
00b99000-00bb0000 r-xp 00000000 03:02 990594     /usr/lib/libgssapi_krb5.so.2.2
00bb0000-00bb1000 rwxp 00017000 03:02 990594     /usr/lib/libgssapi_krb5.so.2.2
00bcd000-00bce000 --xp 00bcd000 00:00 0
00bce000-00bfe000 rwxp 00bce000 00:00 0
00cc2000-00ce5000 r-xp 00000000 03:02 990592     /usr/lib/libk5crypto.so.3.0
00ce5000-00ce6000 rwxp 00023000 03:02 990592     /usr/lib/libk5crypto.so.3.0
00ce8000-00d57000 r-xp 00000000 03:02 990593     /usr/lib/libkrb5.so.3.2
00d57000-00d5a000 rwxp 0006e000 03:02 990593     /usr/lib/libkrb5.so.3.2
00d5c000-00d91000 r-xp 00000000 03:02 1926379    /lib/libssl.so.0.9.7f
00d91000-00d94000 rwxp 00035000 03:02 1926379    /lib/libssl.so.0.9.7f
00d96000-00d9e000 r-xp 00000000 03:02 1926376    /lib/librt-2.3.5.so
00d9e000-00d9f000 r-xp 00007000 03:02 1926376    /lib/librt-2.3.5.so
00d9f000-00da0000 rwxp 00008000 03:02 1926376    /lib/librt-2.3.5.so
00da0000-017ad000 rwxp 00da0000 00:00 0
04c4a000-050c3000 rwxp 04c4a000 00:00 0
08048000-085f5000 r-xp 00000000 03:02 2414696    /home/ndbdev/jmiller/mysql5.0/sql/mysqld
085f5000-08707000 rwxp 005ac000 03:02 2414696    /home/ndbdev/jmiller/mysql5.0/sql/mysqld
08707000-08722000 rwxp 08707000 00:00 0
0a379000-0a459000 rwxp 0a379000 00:00 0          [heap]
b7e00000-b7e21000 rwxp b7e00000 00:00 0
b7e21000-b7f00000 --xp b7e21000 00:00 0
bfb95000-bfbaa000 rwxp bfb95000 00:00 0          [stack]
---- Back Trace -------
#0  0x00692402 in __kernel_vsyscall ()
#1  0x00a2855f in pthread_kill () from /lib/libpthread.so.0
#2  0x082c46fb in write_core (sig=21819) at stacktrace.c:220
#3  0x0819c8b2 in handle_segfault (sig=6) at mysqld.cc:2062
#4  <signal handler called>
#5  0x00692402 in __kernel_vsyscall ()
#6  0x008db118 in raise () from /lib/libc.so.6
#7  0x008dc888 in abort () from /lib/libc.so.6
#8  0x0091022a in __libc_message () from /lib/libc.so.6
#9  0x009170ea in _int_malloc () from /lib/libc.so.6
#10 0x00918492 in malloc () from /lib/libc.so.6
#11 0x08515087 in my_malloc (size=124, my_flags=24) at my_malloc.c:35
#12 0x08193a0f in THD::binlog_prepare_pending_rows_event<Update_rows_log_event>
    (this=0xa42b4d0, table=0xa3fbfb0, serv_id=1, cols=0x2e41d0, colcnt=1,
    needed=10, is_transactional=false) at log_event.h:619
#13 0x08191af0 in THD::binlog_update_row (this=0xa42b4d0, table=0xa3fbfb0,
    is_trans=false, cols=0x2e41d0, colcnt=0, before_record=0xa3dac30 "�\001",
    after_record=0xa3dac38 "�\003") at sql_class.cc:2357
#14 0x0825f746 in binlog_log_row<Update_rows_log_event> (table=0xa3fbfb0,
    before_record=0x6 <Address 0x6 out of bounds>,
    after_record=0x6 <Address 0x6 out of bounds>) at log_event.h:1994
#15 0x0825cdd2 in handler::ha_update_row (this=0xa3dab50,
    old_data=0xa3dac30 "�\001", new_data=0xa3dac38 "�\003") at handler.cc:2545
---Type <return> to continue, or q <return> to quit---
#16 0x082240d8 in Rows_log_event::exec_event (this=0xa3fc868, rli=0xa3f3574)
    at log_event.cc:5105
#17 0x082b9e6a in handle_slave_sql (arg=0xa3ed390) at slave.cc:2960
#18 0x00a25b80 in start_thread () from /lib/libpthread.so.0
#19 0x0097d9ce in clone () from /lib/libc.so.6
[15 Sep 2005 16:09] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/29936
[15 Sep 2005 16:11] Lars Thalmann
Fixed