Random Segmentation faults on fileio test
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysbench |
Fix Committed
|
Undecided
|
Alexey Kopytov |
Bug Description
I am getting random seg falts when running fileio tests.
gdb output:
(gdb) bt
#0 0x0000003755289c1f in memcpy () from /lib64/libc.so.6
#1 0x000000000040997d in sb_percentile_
#2 0x000000000040b6df in file_print_stats (type=<value optimized out>) at sb_fileio.c:850
#3 0x0000000000404b4a in report_thread_proc (arg=<value optimized out>) at sysbench.c:661
#4 0x0000003755607851 in start_thread () from /lib64/
#5 0x00000037552e890d in clone () from /lib64/libc.so.6
(gdb) frame 1
#1 0x000000000040997d in sb_percentile_
95 sb_percentile.c: No such file or directory.
in sb_percentile.c
(gdb) quit
sb_percentile.c output:
<snip>
82 double sb_percentile_
83 {
84 unsigned long long ncur, nmax;
85 unsigned int i;
86
87 pthread_
88
89 if (percentile->total == 0)
90 {
91 pthread_
92 return 0.0;
93 }
94
95 memcpy(
96 percentile->size * sizeof(unsigned long long));
97 nmax = floor(percentil
98
99 pthread_
100
101 ncur = percentile->tmp[0];
102 for (i = 1; i < percentile->size; i++)
103 {
104 ncur += percentile->tmp[i];
105 if (ncur >= nmax)
106 break;
107 }
<snip>
sysbench 0.5 rev: 116