On Sunday 09 July 2006 02:01, Jason alavaliant wrote: > Yeah I was wondering about that but I never had any issues with the older > modules so I started ignoring that note.
It is highly unlikey that two different kernel threads are messing with the same structures/lists at the same time, but these things always come back and bite you when you really don't have the time. Anyway, I made the whole thing SMP-safe now, it's something that needs to be there if we shall be able to trust it in the long run anyway.. > > Which processor type do you have, and was there any difference in the > > processor type for your tests? (like Uni/HT/Dual-core or several CPUs) [...] Ok, mixed environment, and it crashes whenever you plugged it in, meaning I *should* have seen this even on my machine... I *finally* managed to get a similar crash as you got after I recompiled my kernel as SMP, but it turned out that it was more dependent on where the kernel had allocated the different structs than on the system beeing an SMP or not.. When you plugin in a new tablet the data for that tablet (X/Y/PRESSURE/... buttons etc) is copied to a local structure so I can emulate the tablet even after it has been disconnected. I did this with a few for-loops, but I somehow managed to iterate four times the actual length of the arrays (an int is four bytes I guess). This meant that it got way outside the struct and sometimes also the memory page the struct was allocated in. (Maybe you noticed the very even address the fault was reported on? First address of the next page..) I did specifically tested this thing so I wasn't expecting this to cause problems.. Yes, this means that I've fixed the problem, and some other smaller things as well that I've found (and things that I meant to do). As always available at http://195.38.3.2/linuxprojs/ . Hope this one works better.. Thanks for your patience ;) Magnus ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Linuxwacom-discuss mailing list Linuxwacom-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-discuss