- - - - - - - - - - - - - - - - - - - - - - - - - - - -
Name: zabar
Subject: Re: Segmentation fault

сделал поотдельности для каждой нити т.к. полный результат не знаю как захватить
в работе было 20 нитей

(gdb) thread 1
[Switching to thread 1 (Thread 0x704100 (LWP 100570))]#0  0x0000000800e5e6bc in 
select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffafec000
(gdb) thread 2
[Switching to thread 2 (Thread 0x703f80 (LWP 100568))]#0  0x0000000800e5e6bc in 
select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040de87 in ?? ()
#3  0x000000000040dfce in ?? ()
#4  0x000000000040fa9c in ?? ()
#5  0x000000000040a586 in ?? ()
#6  0x00000000004068f8 in ?? ()
#7  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#8  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffb3ed000
(gdb) thread 3
[Switching to thread 3 (Thread 0x703e00 (LWP 100565))]#0  0x0000000800e5e6bc in 
select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffb7ee000
(gdb) thread 4
[Switching to thread 4 (Thread 0x703c80 (LWP 100560))]#0  0x0000000800e5e6bc in 
select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffbbef000
(gdb) thread 5
[Switching to thread 5 (Thread 0x703b00 (LWP 100556))]#0  0x0000000800e5e6bc in 
select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffbff0000
(gdb) thread 6
[Switching to thread 6 (Thread 0x703980 (LWP 100552))]#0  0x0000000800e5e0c4 in 
memset () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e0c4 in memset () from /lib/libc.so.7
#1  0x0000000000442012 in ?? ()
#2  0x000000000043033c in ?? ()
#3  0x0000000000408db3 in ?? ()
#4  0x00000000004095ca in ?? ()
#5  0x00000000004097b2 in ?? ()
#6  0x0000000000409f30 in ?? ()
#7  0x00000000004068f8 in ?? ()
#8  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#9  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffc3f1000
(gdb) thread 7
[Switching to thread 7 (Thread 0x703800 (LWP 100548))]#0  0x0000000800de389e in 
fgetwc () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800de389e in fgetwc () from /lib/libc.so.7
#1  0x0000000800de3e78 in fgetwc () from /lib/libc.so.7
#2  0x0000000800de42a9 in fgetwc () from /lib/libc.so.7
#3  0x0000000800de8ed0 in regexec () from /lib/libc.so.7
#4  0x0000000000442299 in ?? ()
#5  0x0000000000442540 in ?? ()
#6  0x00000000004092e5 in ?? ()
#7  0x000000000040959e in ?? ()
#8  0x00000000004097b2 in ?? ()
#9  0x0000000000409f30 in ?? ()
#10 0x00000000004068f8 in ?? ()
#11 0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#12 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffc7f2000
(gdb) thread 8
[Switching to thread 8 (Thread 0x703680 (LWP 100545))]#0  0x0000000800e5e6bc in 
select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040de87 in ?? ()
#3  0x000000000040dfce in ?? ()
#4  0x000000000040fa9c in ?? ()
#5  0x000000000040a586 in ?? ()
#6  0x00000000004068f8 in ?? ()
#7  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#8  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffcbf3000
(gdb) thread 9
[Switching to thread 9 (Thread 0x703500 (LWP 100543))]#0  0x0000000800e43f2c in 
nanosleep () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e43f2c in nanosleep () from /lib/libc.so.7
#1  0x0000000800e43ee5 in usleep () from /lib/libc.so.7
#2  0x00000008006c00c1 in usleep () from /lib/libthr.so.3
#3  0x0000000000411181 in ?? ()
#4  0x000000000040ac45 in ?? ()
#5  0x00000000004068f8 in ?? ()
#6  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#7  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffcff4000
(gdb) thread 10
[Switching to thread 10 (Thread 0x703380 (LWP 100539))]#0  0x0000000800e5e73c 
in read () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e73c in read () from /lib/libc.so.7
#1  0x00000008006c03b3 in read () from /lib/libthr.so.3
#2  0x0000000000419c6c in ?? ()
#3  0x000000000041d155 in ?? ()
#4  0x0000000000424a27 in ?? ()
#5  0x000000000043e3f5 in ?? ()
#6  0x000000000043df2f in ?? ()
#7  0x000000000043e627 in ?? ()
#8  0x000000000040a1ad in ?? ()
#9  0x00000000004068f8 in ?? ()
#10 0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#11 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffd3f5000
(gdb) thread 11
[Switching to thread 11 (Thread 0x703200 (LWP 100528))]#0  0x0000000800e5e73c 
in read () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e73c in read () from /lib/libc.so.7
#1  0x00000008006c03b3 in read () from /lib/libthr.so.3
#2  0x0000000000419c6c in ?? ()
#3  0x000000000041d0a1 in ?? ()
#4  0x0000000000424a27 in ?? ()
#5  0x000000000043e3f5 in ?? ()
#6  0x000000000043df2f in ?? ()
#7  0x000000000043e627 in ?? ()
#8  0x000000000040a1ad in ?? ()
#9  0x00000000004068f8 in ?? ()
#10 0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#11 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffd7f6000
(gdb) thread 12
[Switching to thread 12 (Thread 0x703080 (LWP 100525))]#0  0x0000000800e5e73c 
in read () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e73c in read () from /lib/libc.so.7
#1  0x00000008006c03b3 in read () from /lib/libthr.so.3
#2  0x0000000000419c6c in ?? ()
#3  0x000000000041d155 in ?? ()
#4  0x0000000000424a27 in ?? ()
#5  0x000000000043e3f5 in ?? ()
#6  0x000000000043df2f in ?? ()
#7  0x000000000043e627 in ?? ()
#8  0x000000000040a1ad in ?? ()
#9  0x00000000004068f8 in ?? ()
#10 0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#11 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffdbf7000
(gdb) thread 13
[Switching to thread 13 (Thread 0x702f00 (LWP 100523))]#0  0x0000000800e5e6bc 
in select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffdff8000
(gdb) thread 14
[Switching to thread 14 (Thread 0x702d80 (LWP 100513))]#0  0x0000000800e5e6bc 
in select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffe3f9000
(gdb) thread 15
[Switching to thread 15 (Thread 0x702c00 (LWP 100511))]#0  0x0000000800e5e6bc 
in select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffe7fa000
(gdb) thread 16
[Switching to thread 16 (Thread 0x702a80 (LWP 100509))]#0  0x0000000800e5e6bc 
in select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffebfb000
(gdb) thread 17
[Switching to thread 17 (Thread 0x702900 (LWP 100450))]#0  0x0000000800df7f7e 
in free () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800df7f7e in free () from /lib/libc.so.7
#1  0x0000000000438480 in ?? ()
#2  0x000000000040a157 in ?? ()
#3  0x00000000004068f8 in ?? ()
#4  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#5  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7ffffeffc000
(gdb) thread 18
[Switching to thread 18 (Thread 0x702780 (LWP 100445))]#0  0x0000000800e5e73c 
in read () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e73c in read () from /lib/libc.so.7
#1  0x00000008006c03b3 in read () from /lib/libthr.so.3
#2  0x0000000000419c6c in ?? ()
#3  0x000000000041d155 in ?? ()
#4  0x0000000000424a27 in ?? ()
#5  0x000000000043e3f5 in ?? ()
#6  0x000000000043df2f in ?? ()
#7  0x000000000043e627 in ?? ()
#8  0x000000000040a1ad in ?? ()
#9  0x00000000004068f8 in ?? ()
#10 0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#11 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff3fd000
(gdb) thread 19
[Switching to thread 19 (Thread 0x702600 (LWP 100442))]#0  0x0000000800e130ac 
in poll () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e130ac in poll () from /lib/libc.so.7
#1  0x00000008006c0463 in poll () from /lib/libthr.so.3
#2  0x0000000800806589 in net_clear () from 
/usr/local/lib/mysql/libmysqlclient.so.15
#3  0x0000000800803652 in cli_advanced_command () from 
/usr/local/lib/mysql/libmysqlclient.so.15
#4  0x0000000800800569 in mysql_send_query () from 
/usr/local/lib/mysql/libmysqlclient.so.15
#5  0x00000008008005c1 in mysql_real_query () from 
/usr/local/lib/mysql/libmysqlclient.so.15
#6  0x000000000044f2fe in ?? ()
#7  0x00000000004668cd in ?? ()
#8  0x000000000043e21b in ?? ()
#9  0x0000000000409a06 in ?? ()
#10 0x000000000040a0f2 in ?? ()
#11 0x00000000004068f8 in ?? ()
#12 0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#13 0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffff7fe000
(gdb) thread 20
[Switching to thread 20 (Thread 0x702480 (LWP 100431))]#0  0x0000000800e5e6bc 
in select () from /lib/libc.so.7
(gdb) bt
#0  0x0000000800e5e6bc in select () from /lib/libc.so.7
#1  0x00000008006c0268 in select () from /lib/libthr.so.3
#2  0x000000000040fb66 in ?? ()
#3  0x000000000040a586 in ?? ()
#4  0x00000000004068f8 in ?? ()
#5  0x00000008006c13ec in pthread_getprio () from /lib/libthr.so.3
#6  0x0000000000000000 in ?? ()
Cannot access memory at address 0x7fffffbff000
(gdb)


- - - - - - - - - - - - - - - - - - - - - - - - - - - -

Read the full topic here:
http://www.dataparksearch.org/cgi-bin/simpleforum.cgi?fid=06;topic_id=1222331675

Ответить