tracker issue : CF-3498550

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

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>              		      	
<cfset variables.mystruct = "">   
<cfthread name="#addThreadName()#" action="run">
	<cfthread action="sleep" duration="100" />
	<cfset variables.mystruct = structNew()>
	<cfset variables.mystruct.hello = "Hello World!">

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

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

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

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

<cfdump var="#mystruct#" >

Actual Result:

[empty string] 

Expected Result:

[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:



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