Bug #59345 | libmysqlclient_r.so crashed in my_read when mysql_query("LOAD DATA LOCAL") | ||
---|---|---|---|
Submitted: | 7 Jan 2011 9:40 | Modified: | 8 Dec 2014 11:49 |
Reporter: | Jian Huang | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / C | Severity: | S2 (Serious) |
Version: | 6.0.2 | OS: | Linux (SUSE 10 x86 ) |
Assigned to: | CPU Architecture: | Any | |
Tags: | crash, load, local, my_read, mysql_query |
[7 Jan 2011 9:40]
Jian Huang
[30 Mar 2011 17:54]
Valeriy Kravchuk
Please, send the output of: show create table LOOKUP\G What server version, x.y.z, did you use?
[2 Apr 2011 9:44]
Jian Huang
mysql> show create table LOOKUP; +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Table | Create Table | +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | LOOKUP | CREATE TABLE `LOOKUP` ( `imsi` varchar(15) COLLATE ascii_bin NOT NULL, `msisdn` varchar(26) COLLATE ascii_bin NOT NULL, `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`imsi`,`msisdn`), KEY `LOOKUP_IDX` (`imsi`,`msisdn`) ) ENGINE=MyISAM DEFAULT CHARSET=ascii COLLATE=ascii_bin | +--------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ 1 row in set (0.00 sec) The version of mysql is 5.1.41
[10 May 2012 18:04]
Sveta Smirnova
Thank you for the report. I can not repeat described behavior. Do you experience same problem if use LOAD DATA INFILE (not LOCAL)? Could you please provide full example of C code you use?
[11 Jun 2012 1:00]
Bugs System
No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open".
[7 Nov 2014 14:54]
Yashwanth M
I'm facing the same problem with one of my application. That too in LOAD DATA LOCAL INFILE only. But the same application is running fine in another server with out any Difference in Configurations. Why is this like this?
[5 Dec 2014 17:49]
Sveta Smirnova
Yashwanth, could you please provide example of C code which fails? Thanks in advance.
[8 Dec 2014 6:20]
Yashwanth M
I got it fixed. It was problem with mysqlpp C++ Wrapper i think. In the server where I was getting this kind of error had mysqlpp3.1.0, which caused problem. I reverted that with mysqlpp3.0. Now it's fine. Thank you.
[8 Dec 2014 11:49]
Sveta Smirnova
Thank you for the feedback. Closed as "Not a Bug" since the reason of wrong behavior was not MySQL code.
[8 May 2018 9:58]
Sarath T
I have got the same error in my code 0x00eed626 in my_read (Filedes=8, Buffer=0xf1012478 "26&&==80000004&&==0&&==8265&&==internal&&==555343454C00010131363630363736383332380001013136363036373631343935", '0' <repeats 17 times>, "300023F21020400020018&&==176971895==##==26&&==80000004&&==0&&==8268&&==int"..., Count=8192, MyFlags=0) at /export/home/pb2/build/sb_0-9099207-1367226740.47/rpm/BUILD/mysql-5.6.11/mysql-5.6.11/mysys/my_read.c:55 #1 0x00eb9edc in default_local_infile_read (ptr=0xf101a908, buf=0xf1012478 "26&&==80000004&&==0&&==8265&&==internal&&==555343454C00010131363630363736383332380001013136363036373631343935", '0' <repeats 17 times>, "300023F21020400020018&&==176971895==##==26&&==80000004&&==0&&==8268&&==int"..., buf_len=8192) at /export/home/pb2/build/sb_0-9099207-1367226740.47/rpm/BUILD/mysql-5.6.11/mysql-5.6.11/libmysql/libmysql.c:602 #2 0x00eba172 in handle_local_infile (mysql=0xf100918c, net_filename=0xf100fe69 "./cdr/processor/D1SUBMIT_2018_04_28_22_03_44_93_1.TXT") at /export/home/pb2/build/sb_0-9099207-1367226740.47/rpm/BUILD/mysql-5.6.11/mysql-5.6.11/libmysql/libmysql.c:485 #3 0x00ebe981 in cli_read_query_result (mysql=0xf100918c) at /export/home/pb2/build/sb_0-9099207-1367226740.47/rpm/BUILD/mysql-5.6.11/mysql-5.6.11/sql-common/client.c:4057 #4 0x00ebb3e7 in mysql_real_query (mysql=0xf100918c, query=0xf101a808 "load data local infile './cdr/processor/D1SUBMIT_2018_04_28_22_03_44_93_1.TXT' into table SUBMIT fields terminated by '&&==' lines terminated by '==##==' (Command_Length,Command_Id,Command_Status,Sequ"..., length=230) at /export/home/pb2/build/sb_0-9099207-1367226740.47/rpm/BUILD/mysql-5.6.11/mysql-5.6.11/sql-common/client.c:4103 #5 0x00ae25ea in execute (this=0xf2ffee40, str=0xf101a808 "load data local infile './cdr/processor/D1SUBMIT_2018_04_28_22_03_44_93_1.TXT' into table SUBMIT fields terminated by '&&==' lines terminated by '==##==' (Command_Length,Command_Id,Command_Status,Sequ"..., len=230) at ./lib/dbdriver.h:288 #6 mysqlpp::Query::execute (this=0xf2ffee40, str=0xf101a808 "load data local infile './cdr/processor/D1SUBMIT_2018_04_28_22_03_44_93_1.TXT' into table SUBMIT fields terminated by '&&==' lines terminated by '==##==' (Command_Length,Command_Id,Command_Status,Sequ"..., len=230) at ./lib/query.cpp:206 #7 0x00ae289d in mysqlpp::Query::execute (this=0xf2ffee40, s=...) at ./lib/query.cpp:190 #8 0x00ae293d in mysqlpp::Query::execute (this=0xf2ffee40) at ./lib/query.cpp:165 #9 0x08054338 in CDBDetails::mcfn_LoadDB (this=0xf6c0a360, pscL_TableName=0xf2fff1c0 "SUBMIT", pscL_Path=...) at DBDetails.cpp:68 #10 0x0805affc in CFileUploader::mcfn_processFiles (this=0xf6c09ad8) at FileUploader.cpp:347 #11 0x080585ef in mcfnS_processThread (pvL_This=0xf6c09ad8) at FileUploader.cpp:17 #12 0x00718a49 in start_thread () from /lib/libpthread.so.0 #13 0x0045ae1e in clone () from /lib/libc.so.6