Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
f1cea652
Commit
f1cea652
authored
Feb 18, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Fix merge of fix for Bug #4872.
sql/mysqld.cc: Clean up merge
parents
ac57068a
5edc77be
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
2 deletions
+23
-2
sql/mysqld.cc
sql/mysqld.cc
+23
-2
No files found.
sql/mysqld.cc
View file @
f1cea652
...
@@ -298,12 +298,14 @@ my_bool lower_case_file_system= 0;
...
@@ -298,12 +298,14 @@ my_bool lower_case_file_system= 0;
my_bool
opt_innodb_safe_binlog
=
0
;
my_bool
opt_innodb_safe_binlog
=
0
;
volatile
bool
mqh_used
=
0
;
volatile
bool
mqh_used
=
0
;
#ifdef HAVE_INITGROUPS
static
bool
calling_initgroups
=
FALSE
;
/* Used in SIGSEGV handler. */
#endif
uint
mysqld_port
,
test_flags
,
select_errors
,
dropping_tables
,
ha_open_options
;
uint
mysqld_port
,
test_flags
,
select_errors
,
dropping_tables
,
ha_open_options
;
uint
delay_key_write_options
,
protocol_version
;
uint
delay_key_write_options
,
protocol_version
;
uint
lower_case_table_names
;
uint
lower_case_table_names
;
uint
opt_crash_binlog_innodb
;
uint
opt_crash_binlog_innodb
;
uint
volatile
thread_count
,
thread_running
,
kill_cached_threads
,
wake_thread
;
uint
volatile
thread_count
,
thread_running
,
kill_cached_threads
,
wake_thread
;
ulong
back_log
,
connect_timeout
,
concurrency
;
ulong
back_log
,
connect_timeout
,
concurrency
;
ulong
server_id
,
thd_startup_options
;
ulong
server_id
,
thd_startup_options
;
ulong
table_cache_size
,
thread_stack
,
thread_stack_min
,
what_to_log
;
ulong
table_cache_size
,
thread_stack
,
thread_stack_min
,
what_to_log
;
...
@@ -1143,7 +1145,15 @@ static void set_user(const char *user, struct passwd *user_info)
...
@@ -1143,7 +1145,15 @@ static void set_user(const char *user, struct passwd *user_info)
#if !defined(__WIN__) && !defined(OS2) && !defined(__NETWARE__)
#if !defined(__WIN__) && !defined(OS2) && !defined(__NETWARE__)
DBUG_ASSERT
(
user_info
);
DBUG_ASSERT
(
user_info
);
#ifdef HAVE_INITGROUPS
#ifdef HAVE_INITGROUPS
initgroups
((
char
*
)
user
,
user_info
->
pw_gid
);
/*
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
#endif
if
(
setgid
(
user_info
->
pw_gid
)
==
-
1
)
if
(
setgid
(
user_info
->
pw_gid
)
==
-
1
)
{
{
...
@@ -1897,6 +1907,17 @@ information that should help you find out what is causing the crash.\n");
...
@@ -1897,6 +1907,17 @@ information that should help you find out what is causing the crash.\n");
fflush
(
stderr
);
fflush
(
stderr
);
#endif
/* HAVE_STACKTRACE */
#endif
/* HAVE_STACKTRACE */
#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
if
(
test_flags
&
TEST_CORE_ON_SIGNAL
)
if
(
test_flags
&
TEST_CORE_ON_SIGNAL
)
{
{
fprintf
(
stderr
,
"Writing a core file
\n
"
);
fprintf
(
stderr
,
"Writing a core file
\n
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment