[En-Nut-Discussion] async event problems in 4.1.9 rc7 and rc8

William Baker bbaker at priefert.com
Wed Sep 6 19:07:18 CEST 2006


I have an app that makes heavy use of threads and a timer.  Under both 
3.9.8 and 4.0.3 the app is very stable.  I'm upgrading from 3.9.8 
because it is possible to crash the app with nmap from a remote server 
-- and I'm adding watchdog features.  I suspected that the problem would 
magically disappear in 4.1.9.

It tested both 4.1.9 rc7 and rc8 -- my hardware is the Atmega128 based 
XNUT100.  The appears to be either thread scheduling or event 
notification.  I depend on NutEventPostAsync being callable from inside 
SIG_OVERFLOW1.

The following is a list of the running threads.  The laser0, laser1, and 
plc0 threads should be in SLP state 99% of the time.  They each wait on 
events posted by NutEventPostAsync.  On the rc7 and rc8 versions, the 
threads appear to operate correctly for as long as a minute, but each 
one slips into RDY state indefinately.  After a few minutes of 
operation, usually two of the three threads are stuck in RDY, but 
sometimes all three are stuck.  Also the Event Queue column indicates 
that all the stuck threads are waiting on the same event -- which is 
impossible.  (If I'm not mistaken, it is the same Event Queue id as the 
httpd1 thread.)

If it were helpful, I could get a JTAGICE and learn how to debug the 
thread states.  I've been looking for an excuse to buy an mkII, but I 
wanted to throw out the problem before and a red flag for anyone else 
before spending a week waiting for hardware and learning how to use it.

Handle 	Name 	Priority 	Status 	Event
Queue 	Timer 	Stack-
pointer 	Free
Stack
3262 	mywdog 	64 	SLP 	0000 	2B70 	323F 	989 	OK
2D84 	laser1 	128 	SLP 	116C 	0000 	2D5F 	475 	OK
2B53 	laser0 	128 	SLP 	10F6 	0000 	2B2E 	475 	OK
2882 	tcpsm 	32 	SLP 	135D 	1F1D 	284F 	461 	OK
2665 	plc0 	64 	SLP 	1260 	0000 	2632 	717 	OK
2348 	httpd1 	160 	RUN 	1317 	0000 	2293 	331 	OK
1E7A 	sntpc 	63 	SLP 	0000 	2E1B 	1E4D 	211 	OK
1D2B 	dhcpc 	64 	SLP 	1099 	0000 	1CDD 	434 	OK
1B0E 	rxi5 	9 	SLP 	1068 	0000 	1AE3 	597 	OK
1812 	main 	254 	SLP 	0000 	2DA1 	17DA 	712 	OK
14F5 	idle 	254 	RDY 	1317 	0000 	14D9 	356 	OK


bbaker




More information about the En-Nut-Discussion mailing list