> > Can you reproduce it under cygwin gdb? I.e. 'gdb apps/openssl' and then > at gdb prompt 'run speed sha1'. If yes, ctrl-C and 'info threads'. Then > 'cont', ctrl-C and 'info threads' few more times. Look at thread #1 at > all occasions. Where is it caught? Does program counter varies? If it's > caught in sha1_block_data_order_ssse3, collect several 'thread apply 1 > info reg' outputs. > >
Disgusting gdb under sickening cygwin do not understand Crtl-C! Fortunately workaround available: http://www.mingw.org/wiki/Workaround_for_GDB_Ctrl_C_Interrupt openssl was compiled with ./config -g (gdb) info threads Id Target Id Frame * 12 Thread 8820.0x1fc0 0x77b2000d in ntdll!LdrFindResource_U () from /cygdrive/c/Windows/system32/ntdll.dll 8 Thread 8820.0x2280 0x77b2f861 in ntdll!RtlUpdateClonedSRWLock () from /cygdrive/c/Windows/system32/ntdll.dll 7 Thread 8820.0x19bc 0x77b2fd21 in ntdll!RtlFindSetBits () from /cygdrive/c/Windows/system32/ntdll.dll 6 Thread 8820.0x2bd0 0x77b2fd9d in ntdll!RtlFindSetBits () from /cygdrive/c/Windows/system32/ntdll.dll 5 Thread 8820.0x2b40 0x77b2f861 in ntdll!RtlUpdateClonedSRWLock () from /cygdrive/c/Windows/system32/ntdll.dll 4 Thread 8820.0x1634 0x77b300ed in ntdll!RtlEnableEarlyCriticalSectionEventCreation () from /cygdrive/c/Windows/system32/ntdll.dll 2 Thread 8820.0x1f18 0x77b2f895 in ntdll!RtlUpdateClonedSRWLock () from /cygdrive/c/Windows/system32/ntdll.dll 1 Thread 8820.0x272c _sha1_block_data_order_ssse3 () at sha1-586.s:1689 (gdb) thread apply 1 info reg Thread 1 (Thread 8820.0x272c): eax 0xcc6ee5e 214363742 ecx 0xff2dbcf7 -13779721 edx 0x47b21e88 1202855560 ebx 0x3430f0e8 875622632 esp 0x287e40 0x287e40 ebp 0x41a18787 0x41a18787 esi 0x47b31288 1202918024 edi 0xb3a52001 -1281023999 eip 0x555c3e 0x555c3e <_sha1_block_data_order_ssse3+990> eflags 0x203 [ CF IF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x53 83 gs 0x2b 43 (gdb) (gdb) thread apply 1 info reg Thread 1 (Thread 8820.0x272c): eax 0x24f45c66 619994214 ecx 0xcb1d6c20 -887264224 edx 0x57307c2c 1462795308 ebx 0x11f11a9f 301013663 esp 0x287f1c 0x287f1c ebp 0x1008208 0x1008208 esi 0xe85d345d -396544931 edi 0xf70aaf7d -150294659 eip 0x556710 0x556710 <_sha1_block_data_order_ssse3+3760> eflags 0x202 [ IF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x53 83 gs 0x2b 43 (gdb) (gdb) thread apply 1 info reg Thread 1 (Thread 8820.0x272c): eax 0x2cbb7e4d 750485069 ecx 0x481a015 75603989 edx 0xe3e6332c -471452884 ebx 0xa7f4213a -1477172934 esp 0x287e40 0x287e40 ebp 0xa2e42130 0xa2e42130 esi 0x99405b26 -1723835610 edi 0x280b64d3 671835347 eip 0x556063 0x556063 <_sha1_block_data_order_ssse3+2051> eflags 0x282 [ SF IF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x53 83 gs 0x2b 43 (gdb) (gdb) thread apply 1 info reg Thread 1 (Thread 8820.0x272c): eax 0xbc696264 -1133944220 ecx 0xafee45bd -1343339075 edx 0x54158eaf 1410698927 ebx 0x5e827d65 1585610085 esp 0x287e40 0x287e40 ebp 0x25e34b13 0x25e34b13 esi 0xf16c38d8 -244565800 edi 0xf72a45d5 -148224555 eip 0x556049 0x556049 <_sha1_block_data_order_ssse3+2025> eflags 0x206 [ PF IF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x53 83 gs 0x2b 43 (gdb) (gdb) thread apply 1 info reg Thread 1 (Thread 8820.0x272c): eax 0x348d035c 881656668 ecx 0xac8d1c04 -1400038396 edx 0x6d76965e 1836488286 ebx 0xeed891a4 -287796828 esp 0x287e40 0x287e40 ebp 0x8b021ae9 0x8b021ae9 esi 0xee991124 -291958492 edi 0x60435d31 1615027505 eip 0x555cb5 0x555cb5 <_sha1_block_data_order_ssse3+1109> eflags 0x203 [ CF IF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x53 83 gs 0x2b 43 (gdb) (gdb) thread apply 1 info reg Thread 1 (Thread 8820.0x272c): eax 0xea86e973 -360257165 ecx 0x409b7f15 1083932437 edx 0xe9577486 -380144506 ebx 0x2a6005ed 710936045 esp 0x287e40 0x287e40 ebp 0xbd75cca4 0xbd75cca4 esi 0x374abba4 927644580 edi 0xe2b92932 -491181774 eip 0x556450 0x556450 <_sha1_block_data_order_ssse3+3056> eflags 0x282 [ SF IF ] cs 0x23 35 ss 0x2b 43 ds 0x2b 43 es 0x2b 43 fs 0x53 83 gs 0x2b 43 ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List openssl-dev@openssl.org Automated List Manager majord...@openssl.org