Unable to compile for Solaris
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
percona-tools |
New
|
Undecided
|
Unassigned |
Bug Description
Makefile doesn't work on Solaris 10
aka
Does anyone know how to make tpcc-mysql compile on Solaris 10 ? :)
With some hackery to the Makefile such as I was able to get tpcc_load to work, but tpcc_start Seg Faults.
CC=/opt/csw/bin/gcc -m64
LDFLAGS=-m64
So I can load the Warehouse but can't test it. :( I tried a couple of the patches but no luck.
# ./tpcc_start -dtpcc1000 -uroot -pPW -w20 -c8 -r10 -l300
*******
*** ###easy### TPC-C Load Generator ***
*******
...
RAMP-UP TIME.(10 sec.)
Segmentation Fault (core dumped)
Below is a stack from one of the patched versions (sorry if it's misleading), but as you can see it still crashes even with 1 connection specified.
pstack core.tpcc_
core 'core.tpcc_
----------------- lwp# 1 / thread# 1 -------
fffffd7ffeac244a ___nanosleep () + a
00000000004092ca main () + 9aa
00000000004030cc _start () + 6c
----------------- lwp# 2 / thread# 2 -------
fffffd7ffed8a456 my_stat () + 3e
fffffd7ffed5d294 my_read_
fffffd7ffed5d836 init_available_
fffffd7ffeaad859 pthread_once () + 79
fffffd7ffed5de89 my_charset_
fffffd7ffed5df50 get_charset_
fffffd7ffed22313 mysql_set_
fffffd7ffed223ec mysql_init_
fffffd7ffed23dec mysql_real_connect () + 82c
0000000000403234 thread_main () + 64
fffffd7ffeabd9db _thr_setup () + 5b
fffffd7ffeabdc10 _lwp_start ()
This is the 1st crash when I was attempting to run 8 connections
core 'core.tpcc_
----------------- lwp# 1 / thread# 1 -------
fffffd7ffeac244a ___nanosleep () + a
00000000004092ca main () + 9aa
00000000004030cc _start () + 6c
----------------- lwp# 2 / thread# 2 -------
fffffd7ffeabdc87 __lwp_park () + 17
fffffd7ffeab66c8 mutex_lock_impl () + e8
fffffd7ffeab67bb mutex_lock () + b
fffffd7ffeaad816 pthread_once () + 36
fffffd7ffed5de89 my_charset_
fffffd7ffed5df50 get_charset_
fffffd7ffed22313 mysql_set_
fffffd7ffed223ec mysql_init_
fffffd7ffed23dec mysql_real_connect () + 82c
0000000000403234 thread_main () + 64
fffffd7ffeabd9db _thr_setup () + 5b
fffffd7ffeabdc10 _lwp_start ()
Some machine details
# uname -a
SunOS ny-dcmysql06 5.10 Generic_147148-26 i86pc i386 i86pc
# more /etc/release
Copyright (c) 1983, 2011, Oracle and/or its affiliates. All rights reserved.
pre-Makefile hackery the error is
ld: fatal: file /opt/mysql/
Thanks,
Scott
I get this crash on solaris and linux. It is solved by calling mysql_init(NULL) in each thread instead of in the main thread.
Program terminated with signal 11, Segmentation fault. my_lib. c:378 my_lib. c:378 charset_ file at ./mysys/ charset. c:422 charsets () at ./mysys/ charset. c:511 libpthread. so.0 get_by_ name at ./mysys/ charset. c:734 by_csname at ./mysys/ charset. c:755 character_ set_with_ default_ collation (mysql=0x246e380) at ./sql-common/ client. c:2880 character_ set (mysql=0x246e380) at ./sql-common/ client. c:2920 client. c:4499 libpthread. so.0
#0 my_stat at ./mysys/
378 my_errno= errno;
(gdb) where
#0 my_stat at ./mysys/
#1 in my_read_
#2 in init_available_
#3 in pthread_once () from /lib64/
#4 in my_charset_
#5 in get_charset_
#6 in mysql_set_
#7 in mysql_init_
#8 in mysql_real_connect at ./sql-common/
#9 in thread_main (arg=<optimized out>) at main.c:680
#10 in start_thread () from /lib64/
#11 in clone () from /lib64/libc.so.6