Coder Social home page Coder Social logo

Comments (6)

istana avatar istana commented on August 22, 2024

Hmm, it seems conn may be NULL, but it shouldn't be as there is a check. Is mariadb connector c compiled thread safe? Check this: https://mariadb.com/kb/en/mysql_thread_safe/

from libnss-maria.

ondrejj avatar ondrejj commented on August 22, 2024

It's default installation of mariadb from CentOS 8. I think it have to be.
Test:

[root@localhost ~]# cat test.c
#include <stdio.h>
#include <mysql/mysql.h>

int main() {
  printf("%d\n", mysql_thread_safe());
}
[root@localhost ~]# gcc test.c -l mysqlclient
[root@localhost ~]# ./a.out 
1
[root@localhost ~]#

from libnss-maria.

istana avatar istana commented on August 22, 2024

Could you try to compile it with VERBOSE=1 flag? It might show something useful in syslog

from libnss-maria.

ondrejj avatar ondrejj commented on August 22, 2024

Trying, but why do you think, someone will make more verbose logs, when process segfaults?

Jan 15 13:17:21 mail check[3181416]: spamd: connection from 127.0.0.1 [127.0.0.1]:57846 to port 783, fd 6
Jan 15 13:17:22 mail kernel: spamd child[3181416]: segfault at 20 ip 00007f06576f07d0 sp 00007ffcff05cbc8 error 4 in libmariadb.so.3[7f06576cd000+4a000]
Jan 15 13:17:22 mail kernel: Code: 05 48 83 c4 18 c3 e8 0f 39 ff ff 0f 1f 44 00 00 66 2e 0f 1f 84 00 00 00 00 00 f3 0f 1e fa 48 8b 87 f0 04 00 00 48 85 c0 74 20 <48> 8b 00 48 85 c0 74 18 48 8b 00 48 85 c0 74 10 48 8b 80 80 00 00

I see nothing special here. Where should be any verbose logs?

from libnss-maria.

istana avatar istana commented on August 22, 2024

The segfault is unfortunate, but VERBOSE compile flag will activate very verbose logging to syslog and there should be many additional messages.

from libnss-maria.

istana avatar istana commented on August 22, 2024

Hi, I think I fixed these segfaults. Could you test again?

from libnss-maria.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.