| Summary: | mysql test fails with gcc-4 | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Guy Martin (RETIRED) <gmsoft> |
| Component: | New packages | Assignee: | Gentoo Linux MySQL bugs team <mysql-bugs> |
| Status: | RESOLVED TEST-REQUEST | ||
| Severity: | normal | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| URL: | http://bugs.mysql.com/bug.php?id=15087 | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | mysql_client_test opened | ||
|
Description
Guy Martin (RETIRED)
2006-06-11 06:18:52 UTC
I tried with the mentionned CFLAGS in the mysql bug and it worked fine : mysql_client_test [ pass ] I'll try to find out which flag exactly fix this. It looks like adding -DUNDEF_HAVE_INITGROUPS to CXXFLAGS makes it work. these the places where HAVE_INITGROUPS influences the code:
sql/mysqld.cc
[...]
ifdef HAVE_INITGROUPS
static bool calling_initgroups= FALSE; /* Used in SIGSEGV handler. */
#endif
[...]
#ifdef HAVE_INITGROUPS
/*
We can get a SIGSEGV when calling initgroups() on some systems when NSS
is configured to use LDAP and the server is statically linked. We set
calling_initgroups as a flag to the SIGSEGV handler that is then used to
output a specific message to help the user resolve this problem.
*/
calling_initgroups= TRUE;
initgroups((char*) user, user_info->pw_gid);
calling_initgroups= FALSE;
#endif
[...]
#ifdef HAVE_INITGROUPS
if (calling_initgroups)
fprintf(stderr, "\n\
This crash occured while the server was calling initgroups(). This is\n\
often due to the use of a mysqld that is statically linked against glibc\n\
and configured to use LDAP in /etc/nsswitch.conf. You will need to either\n\
upgrade to a version of glibc that does not have this problem (2.3.4 or\n\
later when used with nscd), disable LDAP in your nsswitch.conf, or use a\n\
mysqld that is not statically linked.\n");
#endif
[...]
initgroups normally read from /etc/groups, sincerely I fail to see how it can be related, can you provide some more info about your user accouunting system?
I have nss_ldap but I'm not using it. I kept the default config files from pam and nssswitch.conf : passwd: compat shadow: compat group: compat Created attachment 90149 [details]
mysql_client_test opened
funnily, that is one of the most complex test of the whole suite ...
mysql_client_test call another test in ${SRC_DIR}/tests/mysql_client_test that call another client test in tests/.lib/mysql_client_test .
The attachment show how ${SRC_DIR}/tests/mysql_client_test is called, the piece of code failing and the output to screen.
This is being revieved with an hppa expert (meaning you).
Ciao,
Francesco
|