From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Sat, 26 Aug 2006 22:48:48 +0400 From: Alexey Tourbin To: ALT Devel discussion list Message-ID: <20060826184848.GQ9658@localhost.localdomain> Mail-Followup-To: ALT Devel discussion list References: <20060826135729.GL9658@localhost.localdomain> <20060826140944.GA10628@lks.home> <20060826141731.GM9658@localhost.localdomain> <20060826144306.GN9658@localhost.localdomain> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="i/CQJCAqWP/GQJtX" Content-Disposition: inline In-Reply-To: <20060826144306.GN9658@localhost.localdomain> Subject: [devel] debug MySQL SEGV X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.7 Precedence: list Reply-To: ALT Devel discussion list List-Id: ALT Devel discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 26 Aug 2006 18:49:03 -0000 Archived-At: List-Archive: List-Post: --i/CQJCAqWP/GQJtX Content-Type: text/plain; charset=koi8-r Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Aug 26, 2006 at 06:43:06PM +0400, Alexey Tourbin wrote: > On Sat, Aug 26, 2006 at 06:17:31PM +0400, Alexey Tourbin wrote: > > > =C9=CE=D4=C5=D2=C5=D3=CE=CF, =C1 =DE=D4=CF =D3=CB=C1=D6=C5=D4 abi-dri= ft? > > =EF=CE =D7=D2=CF=C4=C5 =DA=C1=C7=CC=CF=C8 =D0=CF=D3=CC=C4=C5=CE=C5=C5 = =D7=D2=C5=CD=D1. message size >1M. >=20 > =F7=D0=D2=CF=DE=C5=CD, abi_drift =D0=D2=CF=D7=C5=D2=D1=D4 =D4=CF=CC=D8=CB= =CF =D2=C1=DA=D2=C5=DB=C9=CD=CF=D3=D4=D8 =D3=C9=CD=D7=CF=CC=CF=D7. =F4=CF = =C5=D3=D4=D8 =D3 > abi_drift =CD=CF=D6=CE=CF =D3=D0=D2=C1=DB=C9=D7=C1=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4=CF =C9=CD=C5=CE=CE=CF* =CD=D9 =CB=CF= =CD=D0=C9=CC=C9=D2=D5=C5=CD. =F3=CE=C1=DE=C1=CC=C1 =D3=D4=C9=D7=C9=D4=D3=D1 libMySQL-devel 5.0.22 =C9 = =C4=C5=CC=C1=C5=D4=D3=D1 gcc -E =D7=D3=C5=C8 =CB=CF=CD=D0=C9=CC=C9=D2=D5=C5=CD=D9=C8 =C6=C1=CA=CC=CF=D7 (=D0=D2=C5=D0=D2= =CF=C3=C5=D3=D3=CF=D2). =F0=CF=D4=CF=CD =D3=D4=C1=D7=C9=D4=D3=D1 libMySQL-= devel 5.0.24 =C9 =CF=D0=D1=D4=D8 =C4=C5=CC=C1=C5=D4=D3=D1 gcc -E =D7=D3=C5=C8 =CB= =CF=CD=D0=CC=C9=D2=D5=C5=CD=D9=C8 =C6=C1=CA=CC=CF=D7. =F0=CF=D4=CF=CD =CE= =C1 =D2=C1=D3=CB=D2=D9=D4=D9=C5 =D4=C1=CB=C9=CD =CF=C2=D2=C1=DA=CF=CD =C9=D3=C8= =CF=C4=CE=C9=CB=C9 =D3=D2=C1=D7=CE=C9=D7=C1=C0=D4=D3=D1. $ cd ~build/DBD-mysql-3.0006 $ rm -fv *.o removed `dbdimp.o' removed `mysql.o' $ sudo rpm -Uv ~sisyphus/files/i586/RPMS/libMySQL*-5.0.22-alt1.i586.rpm --f= orce --nodeps Preparing packages for installation... =20 libMySQL-5.0.22-alt1 libMySQL-devel-5.0.22-alt1 $ =F0=CF=D3=D4=C1=D7=C9=CC =D3=D4=C1=D2=D9=C5 =D0=C1=CB=C5=D4=D9 libMySQL. = =F4=C5=D0=C5=D2=D8 =CE=D5=D6=CE=CF =DA=CF=D0=C1=D4=DE=C9=D4=D8 Makefile, =DE=D4=CF=C2=D9 =D7=CD=C5=D3=D4=CF gcc -c =D7=D9=D0=CF=CC=CE=D1=CC=D3=D1 gc= c -E. $ diff Makefile{-,} --- Makefile- 2006-08-26 14:21:28 +0000 +++ Makefile 2006-08-26 18:26:45 +0000 @@ -309,7 +309,7 @@ BSLOADLIBS =3D=20 =20 =20 # --- MakeMaker const_cccmd section: -CCCMD =3D $(CC) -c $(PASTHRU_INC) $(INC) \ +CCCMD =3D $(CC) -E $(PASTHRU_INC) $(INC) \ $(CCFLAGS) $(OPTIMIZE) \ $(PERLTYPE) $(MPOLLUTE) $(DEFINE_VERSION) \ $(XS_DEFINE_VERSION) $ =F4=C5=D0=C5=D2=D8 =D0=D2=C9 =D0=CF=D0=D9=D4=CB=C5 =CB=CF=CD=D0=CC=C9=D1=C3= =C9=C9 .c.o =D7 stdout =C2=D5=C4=D5=D4 =D3=D9=D0=C1=D4=D8=D3=D1 =D2=C1=D3= =CB=D2=D9=D4=D9=C5 =C9=D3=C8=CF=C4=CE=C9=CB=C9. $ make dbdimp.o |tail -5 SV *mysql_db_last_insert_id(SV *dbh, imp_dbh_t *imp_dbh, SV *catalog, SV *schema, SV *table, SV *field, SV *attr) { return Perl_sv_2mortal(((PerlInterpreter *)pthread_getspecific((*Perl_Gth= r_key_ptr(((void *)0))))), my_ulonglong2str(mysql_insert_id(&((imp_dbh_t*)i= mp_dbh)->mysql))); } $ =FA=CE=C1=DE=C9=D4, =D7=D9=D7=CF=C4 =CD=CF=D6=CE=CF =D3=CF=C8=D2=C1=CE=D1= =D4=D8. $ make dbdimp.o >dbdimp.E1 $ make mysql.o >mysql.E1 $ ls -l *.E1 -rw-r--r-- 1 at at 596132 Aug 26 22:30 dbdimp.E1 -rw-r--r-- 1 at at 608773 Aug 26 22:30 mysql.E1 $ =F4=C5=D0=C5=D2=D8 =CF=D3=D4=C1=CC=CF=D3=D8 =D0=CF=D3=D4=C1=D7=C9=D4=D8 =CE= =CF=D7=D5=C0 =C2=C9=C2=CC=C9=CF=D4=C5=CB=D5 =C9 =CF=D0=D1=D4=D8 =D3=CF=C8= =D2=C1=CE=C9=D4=D8 =D7=D9=D7=CF=C4. $ sudo rpm -Uv ~sisyphus/files/i586/RPMS/libMySQL*-5.0.24-alt1.i586.rpm = =20 Preparing packages for installation... = =20 libMySQL-5.0.24-alt1 libMySQL-devel-5.0.24-alt1 $ make dbdimp.o >dbdimp.E2 $ make mysql.o >mysql.E2 =E1 =D4=C5=D0=C5=D2=D8 -- =D4=CF, =D2=C1=C4=C9 =DE=C5=C7=CF =D7=D3=A3 =C4= =C5=CC=C1=CC=CF=D3=D8: =D3=D2=C1=D7=CE=C9=D7=C1=C5=CD =D0=CF=CC=CE=CF=D3=D4= =D8=C0 =D2=C1=D3=CB=D2=D9=D4=D9=C5 =C9=D3=C8=CF=C4=CE=C9=CB=C9. $ diff -upbB dbdimp.E[12] --- dbdimp.E1 2006-08-26 18:30:07 +0000 +++ dbdimp.E2 2006-08-26 18:40:43 +0000 @@ -15290,7 +15290,8 @@ enum mysql_option MYSQL_OPT_WRITE_TIMEOUT, MYSQL_OPT_USE_RESULT, MYSQL_OPT_USE_REMOTE_CONNECTION, MYSQL_OPT_USE_EMBEDDED_CONNECTION, MYSQL_OPT_GUESS_CONNECTION, MYSQL_SET_CLIENT_IP, MYSQL_SECURE_AUTH, - MYSQL_REPORT_DATA_TRUNCATION, MYSQL_OPT_RECONNECT + MYSQL_REPORT_DATA_TRUNCATION, MYSQL_OPT_RECONNECT, + MYSQL_OPT_SSL_VERIFY_SERVER_CERT }; struct st_mysql_options { @@ -15305,6 +15306,7 @@ struct st_mysql_options { char *ssl_ca; char *ssl_capath; char *ssl_cipher; + my_bool ssl_verify_server_cert; char *shared_memory_base_name; unsigned long max_allowed_packet; my_bool use_ssl; @@ -15450,7 +15452,7 @@ typedef struct st_mysql_res { my_bool unbuffered_fetch_cancelled; const struct st_mysql_methods *methods; } MYSQL_RES; -# 327 "/usr/include/mysql/mysql.h" +# 329 "/usr/include/mysql/mysql.h" typedef struct st_mysql_manager { NET net; @@ -15470,10 +15472,10 @@ typedef struct st_mysql_parameters unsigned long *p_max_allowed_packet; unsigned long *p_net_buffer_length; } MYSQL_PARAMETERS; -# 357 "/usr/include/mysql/mysql.h" +# 359 "/usr/include/mysql/mysql.h" int mysql_server_init(int argc, char **argv, char **groups); void mysql_server_end(void); -# 371 "/usr/include/mysql/mysql.h" +# 373 "/usr/include/mysql/mysql.h" MYSQL_PARAMETERS * mysql_get_parameters(void); @@ -15515,6 +15517,7 @@ MYSQL * mysql_init(MYSQL *mysql); my_bool mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath, const char *cipher); +const char * mysql_get_ssl_cipher(MYSQL *mysql); my_bool mysql_change_user(MYSQL *mysql, const char *user, const char *passwd, const char *db); MYSQL * mysql_real_connect(MYSQL *mysql, const char *host, @@ -15664,13 +15667,13 @@ int mysql_manager_fetch_line(MYSQL_MANAG char* res_buf, int res_buf_size); my_bool mysql_read_query_result(MYSQL *mysql); -# 569 "/usr/include/mysql/mysql.h" +# 572 "/usr/include/mysql/mysql.h" enum enum_mysql_stmt_state { MYSQL_STMT_INIT_DONE=3D 1, MYSQL_STMT_PREPARE_DONE, MYSQL_STMT_EXECUTE_D= ONE, MYSQL_STMT_FETCH_DONE }; -# 639 "/usr/include/mysql/mysql.h" +# 642 "/usr/include/mysql/mysql.h" typedef struct st_mysql_bind { unsigned long *length; @@ -15844,7 +15847,7 @@ my_bool mysql_autocommit(MYSQL * mysql, my_bool mysql_more_results(MYSQL *mysql); int mysql_next_result(MYSQL *mysql); void mysql_close(MYSQL *sock); -# 837 "/usr/include/mysql/mysql.h" +# 840 "/usr/include/mysql/mysql.h" unsigned long net_safe_read(MYSQL* mysql); # 22 "dbdimp.h" 2 # 1 "/usr/include/mysql/mysqld_error.h" 1 /var/mail/at has mail! $ =E9 =D7=D4=CF=D2=CF=CA =C6=C1=CA=CC: $ diff -upbB mysql.E[12] --- mysql.E1 2006-08-26 18:30:19 +0000 +++ mysql.E2 2006-08-26 18:40:47 +0000 @@ -15291,7 +15291,8 @@ enum mysql_option MYSQL_OPT_WRITE_TIMEOUT, MYSQL_OPT_USE_RESULT, MYSQL_OPT_USE_REMOTE_CONNECTION, MYSQL_OPT_USE_EMBEDDED_CONNECTION, MYSQL_OPT_GUESS_CONNECTION, MYSQL_SET_CLIENT_IP, MYSQL_SECURE_AUTH, - MYSQL_REPORT_DATA_TRUNCATION, MYSQL_OPT_RECONNECT + MYSQL_REPORT_DATA_TRUNCATION, MYSQL_OPT_RECONNECT, + MYSQL_OPT_SSL_VERIFY_SERVER_CERT }; struct st_mysql_options { @@ -15306,6 +15307,7 @@ struct st_mysql_options { char *ssl_ca; char *ssl_capath; char *ssl_cipher; + my_bool ssl_verify_server_cert; char *shared_memory_base_name; unsigned long max_allowed_packet; my_bool use_ssl; @@ -15451,7 +15453,7 @@ typedef struct st_mysql_res { my_bool unbuffered_fetch_cancelled; const struct st_mysql_methods *methods; } MYSQL_RES; -# 327 "/usr/include/mysql/mysql.h" +# 329 "/usr/include/mysql/mysql.h" typedef struct st_mysql_manager { NET net; @@ -15471,10 +15473,10 @@ typedef struct st_mysql_parameters unsigned long *p_max_allowed_packet; unsigned long *p_net_buffer_length; } MYSQL_PARAMETERS; -# 357 "/usr/include/mysql/mysql.h" +# 359 "/usr/include/mysql/mysql.h" int mysql_server_init(int argc, char **argv, char **groups); void mysql_server_end(void); -# 371 "/usr/include/mysql/mysql.h" +# 373 "/usr/include/mysql/mysql.h" MYSQL_PARAMETERS * mysql_get_parameters(void); @@ -15516,6 +15518,7 @@ MYSQL * mysql_init(MYSQL *mysql); my_bool mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert, const char *ca, const char *capath, const char *cipher); +const char * mysql_get_ssl_cipher(MYSQL *mysql); my_bool mysql_change_user(MYSQL *mysql, const char *user, const char *passwd, const char *db); MYSQL * mysql_real_connect(MYSQL *mysql, const char *host, @@ -15665,13 +15668,13 @@ int mysql_manager_fetch_line(MYSQL_MANAG char* res_buf, int res_buf_size); my_bool mysql_read_query_result(MYSQL *mysql); -# 569 "/usr/include/mysql/mysql.h" +# 572 "/usr/include/mysql/mysql.h" enum enum_mysql_stmt_state { MYSQL_STMT_INIT_DONE=3D 1, MYSQL_STMT_PREPARE_DONE, MYSQL_STMT_EXECUTE_D= ONE, MYSQL_STMT_FETCH_DONE }; -# 639 "/usr/include/mysql/mysql.h" +# 642 "/usr/include/mysql/mysql.h" typedef struct st_mysql_bind { unsigned long *length; @@ -15845,7 +15848,7 @@ my_bool mysql_autocommit(MYSQL * mysql, my_bool mysql_more_results(MYSQL *mysql); int mysql_next_result(MYSQL *mysql); void mysql_close(MYSQL *sock); -# 837 "/usr/include/mysql/mysql.h" +# 840 "/usr/include/mysql/mysql.h" unsigned long net_safe_read(MYSQL* mysql); # 22 "dbdimp.h" 2 # 1 "/usr/include/mysql/mysqld_error.h" 1 $ =E7=CC=D1=C4=D1 =CE=C1 diff, *=C5=C4=C9=CE=D3=D4=D7=C5=CE=CE=CF=C5*, =DE=D4= =CF =D0=D2=C9=C8=CF=C4=C9=D4 =D7 =C7=CF=CC=CF=D7=D5 -- =DC=D4=CF =C9=DA=CD= =C5=CE=C5=CE=C9=C5 =D7 =D3=D4=D2=D5=CB=D4=D5=D2=C5 st_mysql_options. =F0=D2=D1=CD=CF =D0=CF= =D3=D2=C5=C4=C9 =D3=D4=D2=D5=CB=D4=D5=D2=D9 =C4=CF=C2=C1=D7=C9=CC=CF=D3=D8 = =CE=CF=D7=CF=C5 =D0=CF=CC=C5. =E5=D3=CC=C9 =DC=D4=C1 =D3=D4=D2=D5=CB=D4=D5=D2=C1 =CB=C1=CB= =C9=CD-=CC=C9=C2=CF =CB=CF=D3=D7=C5=CE=CE=D9=CD =CF=C2=D2=C1=DA=CF=CD =DC= =CB=D3=D0=CF=DA=C9=D2=D5=C5=D4=D3=D1 =D7 =CB=C1=DE=C5=D3=D4=D7=C5 API, =D4=CF=C7=C4=C1 =DC=D4=CF =CF=C2=DF=D1=D3= =CE=D1=C5=D4 =D3=C2=CF=C9 =D7 =D2=C1=C2=CF=D4=C5. =FC=D4=CF =C9 =C5=D3=D4= =D8 =D4=CF =CF=C2=CF=D3=CE=CF=D7=C1=CE=CE=CF=C5 =D0=CF=C4=CF=DA=D2=C5=CE=C9=C5, =CF = =CB=CF=D4=CF=D2=CF=CD =D1 =CE=C1=D0=C9=D3=C1=CC =D7 =CE=C1=DE=C1=CC=C5. =F4=C5=D0=C5=D2=D8 =CB=CC=C1=D3=D3=C9=DE=C5=D3=CB=C9=CA =D7=CF=D0=D2=CF=D3:= =DE=D4=CF =C4=C5=CC=C1=D4=D8? --i/CQJCAqWP/GQJtX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFE8JeQfBKgtDjnu0YRAm3UAKDJqoOTjJ08+k60rkEahg/MriZZMACgx6+q ZFQdh620LGrSAKH2Hd56Z9Q= =bG3A -----END PGP SIGNATURE----- --i/CQJCAqWP/GQJtX--