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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
6bf6d4b8
Commit
6bf6d4b8
authored
Aug 22, 2001
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge hundin:/my/mysql into bitch.mysql.fi:/my/mysql
parents
57d9bc04
2e6a193c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
12 deletions
+15
-12
BUILD/compile-solaris-sparc-purify
BUILD/compile-solaris-sparc-purify
+1
-1
sql/mysqld.cc
sql/mysqld.cc
+5
-3
sql/stacktrace.c
sql/stacktrace.c
+8
-2
sql/stacktrace.h
sql/stacktrace.h
+1
-6
No files found.
BUILD/compile-solaris-sparc-purify
View file @
6bf6d4b8
...
...
@@ -6,7 +6,7 @@ aclocal && autoheader && aclocal && automake && autoconf
(
cd
bdb/dist
&&
sh s_all
)
(
cd
innobase
&&
aclocal
&&
autoheader
&&
aclocal
&&
automake
&&
autoconf
)
CFLAGS
=
"-
Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -DHAVE_purify -DEXTRA_DEBUG -O2"
CXX
=
gcc
CXXLD
=
g++
CXXFLAGS
=
"
-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -DHAVE_purify -DEXTRA_DEBUG -O2"
./configure
--prefix
=
/usr/local/mysql
--enable-assembler
--with-extra-charsets
=
complex
--enable-thread-safe-client
--with-berkeley-db
--with-innodb
CFLAGS
=
"-
g -Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Wunused -DHAVE_purify -DEXTRA_DEBUG -O2"
CXX
=
gcc
CXXLD
=
g++
CXXFLAGS
=
"-g
-Wimplicit -Wreturn-type -Wid-clash-51 -Wswitch -Wtrigraphs -Wcomment -W -Wchar-subscripts -Wformat -Wimplicit-function-dec -Wimplicit-int -Wparentheses -Wsign-compare -Wwrite-strings -Woverloaded-virtual -Wextern-inline -Wsign-promo -Wreorder -Wctor-dtor-privacy -Wnon-virtual-dtor -felide-constructors -fno-exceptions -fno-rtti -DHAVE_purify -DEXTRA_DEBUG -O2"
./configure
--prefix
=
/usr/local/mysql
--enable-assembler
--with-extra-charsets
=
complex
--enable-thread-safe-client
--with-berkeley-db
--with-innodb
gmake
-j
4
...
...
sql/mysqld.cc
View file @
6bf6d4b8
...
...
@@ -1247,12 +1247,14 @@ static void init_signals(void)
sigset
(
THR_KILL_SIGNAL
,
end_thread_signal
);
sigset
(
THR_SERVER_ALARM
,
print_signal_warning
);
// Should never be called!
struct
sigaction
sa
;
sa
.
sa_flags
=
0
;
sigemptyset
(
&
sa
.
sa_mask
);
sigprocmask
(
SIG_SETMASK
,
&
sa
.
sa_mask
,
NULL
);
if
(
!
(
test_flags
&
TEST_NO_STACKTRACE
)
||
(
test_flags
&
TEST_CORE_ON_SIGNAL
))
{
struct
sigaction
sa
;
sa
.
sa_flags
=
SA_RESETHAND
|
SA_NODEFER
;
sigemptyset
(
&
sa
.
sa_mask
);
sigprocmask
(
SIG_SETMASK
,
&
sa
.
sa_mask
,
NULL
);
init_stacktrace
();
sa
.
sa_handler
=
handle_segfault
;
sigaction
(
SIGSEGV
,
&
sa
,
NULL
);
...
...
sql/stacktrace.c
View file @
6bf6d4b8
...
...
@@ -205,11 +205,17 @@ resolve it\n");
/* Produce a core for the thread */
#ifdef HAVE_
WRITE_CORE
#ifdef HAVE_
LINUXTHREADS
void
write_core
(
int
sig
)
{
signal
(
sig
,
SIG_DFL
);
if
(
fork
()
!=
0
)
exit
(
1
);
// Abort main program
// Core will be written at exit
}
#endif
/* HAVE_WRITE_CORE */
#else
void
write_core
(
int
sig
)
{
signal
(
sig
,
SIG_DFL
);
pthread_kill
(
pthread_self
(),
sig
);
}
#endif
sql/stacktrace.h
View file @
6bf6d4b8
...
...
@@ -30,9 +30,6 @@ extern char* heap_start;
void
print_stacktrace
(
gptr
stack_bottom
,
ulong
thread_stack
);
void
safe_print_str
(
const
char
*
name
,
const
char
*
val
,
int
max_len
);
#endif
/* (defined (__i386__) || (defined(__alpha__) && defined(__GNUC__))) */
#define HAVE_WRITE_CORE
void
write_core
(
int
sig
);
#endif
/* HAVE_LINUXTHREADS */
/* Define empty prototypes for functions that are not implemented */
...
...
@@ -42,9 +39,7 @@ void write_core(int sig);
#define safe_print_str(A,B,C) {}
#endif
/* HAVE_STACKTRACE */
#ifndef HAVE_WRITE_CORE
#define write_core(A) {}
#endif
void
write_core
(
int
sig
);
#ifdef __cplusplus
}
...
...
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