Comments (6)
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.
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.
Could you try to compile it with VERBOSE=1 flag? It might show something useful in syslog
from libnss-maria.
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.
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.
Hi, I think I fixed these segfaults. Could you test again?
from libnss-maria.
Related Issues (9)
- FR: if you ever release it, it needs to have SSL/TLS support HOT 2
- Problem with replace() code from stackoverflow HOT 3
- root/user separation example is broken HOT 1
- UTF is broken HOT 1
- libnss-mysql compatible configuration HOT 7
- Too many open files when browsing filesystems (find command) HOT 6
- Memory leak in maria_config_helpers.c HOT 2
- No such file or directory HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libnss-maria.