tracker issue : CF-3498550

select a category, or use search below
(searches all categories and all time range)
Title:

Thread null error in application.log

| View in Tracker

Status/Resolution/Reason: Closed/Withdrawn/

Reporter/Name(from Bugbase): William Eatman / William Eatman (William Eatman)

Created: 02/11/2013

Components: Server Monitoring

Versions: 9.0.1

Failure Type:

Found In Build/Fixed In Build: 9.0.1 /

Priority/Frequency: Minor / Very few users will encounter

Locale/System: English / Win 2003 Ent. Edition

Vote Count: 0

Problem Description:  Intermittent problem where there is a thread null error in the application log and undesired output.  Seems to only be a problem when I have all the coldfusion monitoring turned on.  

Steps to Reproduce:

<cfset threads = arrayNew(1)>
<cfset threadPrefix = createUUID()>

<cffunction name="addThreadName" returntype="string" access="private" output="false">
	<cfset var threadName = "t" & variables.threadPrefix & (arrayLen(variables.threads) + 1)>
	<cfset arrayAppend(variables.threads, threadName)>
	<cfreturn threadName>              		      	
</cffunction> 
   
<cfset variables.mystruct = "">   
   
<cfthread name="#addThreadName()#" action="run">
	<cfthread action="sleep" duration="100" />
	<cfset variables.mystruct = structNew()>
	<cfset variables.mystruct.hello = "Hello World!">
</cfthread>

<cfthread name="#addThreadName()#" action="run">
</cfthread>

<cfthread name="#addThreadName()#" action="run">
</cfthread>

<cfthread name="#addThreadName()#" action="run">
</cfthread>

<cfloop array="#variables.threads#" index="i">
	<cfoutput>#i#</cfoutput><br />
    <cfthread action="join" name="#trim(i)#" timeout="2000" / >     	
</cfloop>	   

<cfdump var="#mystruct#" >

Actual Result:

tE65ACFC2-5056-9852-3BC66FCFAEE291C51
tE65ACFC2-5056-9852-3BC66FCFAEE291C52
tE65ACFC2-5056-9852-3BC66FCFAEE291C53
tE65ACFC2-5056-9852-3BC66FCFAEE291C54
[empty string] 


Expected Result:

tE65ACFC2-5056-9852-3BC66FCFAEE291C51
tE65ACFC2-5056-9852-3BC66FCFAEE291C52
tE65ACFC2-5056-9852-3BC66FCFAEE291C53
tE65ACFC2-5056-9852-3BC66FCFAEE291C54
[Hello World!] 

Any Workarounds:

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3498550

External Customer Info:
External Company:  
External Customer Name: billeatman
External Customer Email:  
External Test Config: My Hardware and Environment details:

Attachments:

Comments:

I was able to reproduce the error using the code above be refreshing the page many times.
Comment by External U.
16352 | February 11, 2013 01:46:30 PM GMT
I wasn't able to replicate this (Windows 7 Home 64-bit), so there might be more to it than meets the eye. -- Adam
Comment by External U.
16353 | April 11, 2013 01:23:48 PM GMT
Have now tested on CF9.0.2 and CF10. Cannot replicate. -- Adam
Comment by External U.
16354 | April 11, 2013 01:27:03 PM GMT
unable to repro the issue with CF901 on Windows 2008 with the supplied test code, after enabling the following in the CF admin console: Server Monitoring > Monitoring Settings> Enable Monitoring , Enable Profiling, Enable Memory Tracking, Enable Memory Tracking no errors in the application.log either. @billeatman, can you confirm if this is a incorrect output is consistent at your end, or provide any further details on your environment.
Comment by Piyush K.
16355 | December 23, 2013 04:43:47 AM GMT