From: SourceForge.net <no...@so...> - 2006-01-10 11:54:38
|
Bugs item #1400457, was opened at 2006-01-09 12:06 Message generated for change (Comment added) made by msofer You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1400457&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: current: 8.4.12 Status: Open Resolution: Works For Me Priority: 5 Submitted By: yahalom emet (yahalom) Assigned to: Zoran Vasiljevic (vasiljevic) Summary: threaded tcl crashes on win 2003 Initial Comment: tcl crashes when we use it on windows2003. it seems to happen when the io is used but it is hard to point on the exact spot. we compiled tcl with threads and this is what we get from visual studio: 10213740 push edx 10213741 mov eax,dword ptr [ebp-4] 10213744 mov ecx,dword ptr [eax+14h] 10213747 and ecx,0FFFFh 1021374D mov edx,dword ptr [ecx*4+10261544h] 10213754 push edx 10213755 push 10257474h 1021375A push 0 1021375C push 0 1021375E push 0 10213760 push 1 10213762 call 10214E40 10213767 add esp,20h 1021376A cmp eax,1 1021376D jne 10213770 =>1021376F int 3 10213770 xor eax,eax 10213772 test eax,eax 10213774 jne 10213733 10213776 mov ecx,dword ptr [ebp-4] 10213779 cmp dword ptr [ecx+14h],3 1021377D jne 102137EB 1021377F mov edx,dword ptr [ebp-4] 10213782 cmp dword ptr [edx+0Ch],0FEDCBABCh 10213789 jne 10213794 1021378B mov eax,dword ptr [ebp-4] 1021378E cmp dword ptr [eax+18h],0 10213792 je 102137B5 10213794 push 10257434h 10213799 push 0 Loaded symbols for 'E:\Ashrait\tcl\bin\tclsh84tg.exe' Loaded 'C:\WINDOWS\system32\ntdll.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\kernel32.dll', no matching symbolic information found. Loaded symbols for 'E:\Ashrait\tcl\bin\tcl84tg.dll' Loaded 'C:\WINDOWS\system32\advapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\rpcrt4.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\user32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\gdi32.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\bin\MSVCRTD.DLL', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\lpk.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\usp10.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msvcrt.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\tcl8.4\tbcload1.4 \tbcload14.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\xorLib\systemUtils\nologoff. dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wsock32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2_32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ws2help.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msctf.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\mswsock.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\dnsapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winrnr.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wldap32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\hnetcfg.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\wshtcpip.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\tclx8.4\tclx84.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\thread2.6.2\thread262.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\Trf2.1\Trf21.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\itcl3.3\itcl33.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\tdom0.8.1\tdom081.dll', no matching symbolic information found. Loaded 'E:\Ashrait\tcl\lib\tclodbc2.3\tclodbc.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\odbc32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common- Controls_6595b64144ccf1df_5.82.3790.1830_x- ww_1B6F474A\comctl32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\comdlg32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\shell32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\shlwapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common- Controls_6595b64144ccf1df_6.0.3790.1830_x- ww_7AE38CCF\comctl32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\odbcint.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\sqlsrv32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\netapi32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\oleaut32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\ole32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\sqlunirl.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\winspool.drv', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\version.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\nddeapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\sqlsrv32.rll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\secur32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\odbccp32.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\msv1_0.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\iphlpapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\psapi.dll', no matching symbolic information found. Loaded 'C:\WINDOWS\system32\mslbui.dll', no matching symbolic information found. The thread 0xCFC has exited with code 0 (0x0). ---------------------------------------------------------------------- >Comment By: miguel sofer (msofer) Date: 2006-01-10 08:54 Message: Logged In: YES user_id=148712 Assuming that "context" is a stack trace, the two Tcl functions in there suggest that some Tcl_Obj has a string rep that was allocated "improperly". This could happen in at least two different ways: (1) Tcl and Tcl extensions were compiled with different options (especially wrt memory allocation, which can be a side effect of some of them being threaded and some others not, or maybe some but all are using Tcl's memory debugging). (2) A Tcl_Obj was hand-crafted in one extension, and malloc was used to allocate its string rep (instead of Tcl_Alloc or ckalloc). HTH ---------------------------------------------------------------------- Comment By: yahalom emet (yahalom) Date: 2006-01-10 07:59 Message: Logged In: YES user_id=130120 I removed Tclx but still happens. tclODBC and tdom and Itcl are compiled for threads. does the context help? MSVCRTD! 1021376f() MSVCRTD! 10213541() MSVCRTD! 102134ce() TclpFree(char *) FreeStrintInternalRep(Tcl_Obj *) ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2006-01-10 01:02 Message: Logged In: NO The decompile output is meaningless to us. Where in the source code is that? ---------------------------------------------------------------------- Comment By: Jeffrey Hobbs (hobbs) Date: 2006-01-09 15:51 Message: Logged In: YES user_id=72656 This sounds like it might be outside the core, especially as you list a g (symbols built) tclsh, but the stack trace shows no Tcl functions. ---------------------------------------------------------------------- Comment By: Michael Schlenker (mic42) Date: 2006-01-09 12:42 Message: Logged In: YES user_id=302287 I see at least Tclx, tdom, Itcl, Trf, Tclodbc and tbcload listed in your set of used extensions. Are all of those compiled with --enable-threads and the same memory allocator as the Tcl you use for debugging? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1400457&group_id=10894 |