Questions tagged [libmysql]

Libmysql is a client library for connecting C written application to MySql.

113 questions
0
votes
0 answers

MySQL Connector/C++ hangs on read()

I am writing a multi-threaded application in C++ using Boost threads (pthread). The application spawns 100 threads and each thread does the following task (I am writing a code snippet that will be running in each thread): try { driver =…
Cik
  • 381
  • 5
  • 16
0
votes
1 answer

Invalid free() / delete / delete[] / realloc() with g_string_free()

I have a GList which contains a collection of GSList. This GSlist contains a collection of GString. When I free the whole GList, I get segmentation fault. Now check the following code. GList *m_rows = NULL; m_rows = mysql_multiple_rows(mysql,…
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187
0
votes
1 answer

Segfault on g_strdupv function

I am getting segfault on this function. /** * Excutes the passed query and returs the the first row as an array of * strings. You must free this array by calling g_strfreev() */ static gchar** mysql_single_row(MYSQL *mysql_handle, char*…
Shiplu Mokaddim
  • 56,364
  • 17
  • 141
  • 187
0
votes
1 answer

MySQLdb - libmysqlclient_r stuck on read()

I am writing a multi-threaded python application that read/write to a MySQL DB (using MySQLDB and libmysqlclient_r - thread safe library). At some point (not sure why or when), one of the threads stuck. #0 0x00007f6c124ad14d in read () from…
user1144031
  • 627
  • 2
  • 6
  • 16
0
votes
2 answers

May prepared statements be shared across threads?

using libmysqlclient_r.so i.e c mysql connector. as per current arch, In thread1 for connection1 prepared stmt will be created and cached . next for thread2 connection2 cached prepared stmt will be reused. after executing, program throws…
user1145280
  • 371
  • 1
  • 2
  • 10
-1
votes
2 answers

Error with MySQL Instalattion in Centos 6.4

I'm trying to install MySQL in my CentOS 6.4 (X86_64) with the command: "yum install mysql mysql-server" And I'm having problems with the installation, the error presented is the following: Check the error log in the following link…