RE: [tcljava-user] Thread 2.5.2 on 64bit Solaris
Brought to you by:
mdejong
From: Rob R. <rr...@fu...> - 2004-09-04 02:50:28
|
David, I saw this problem on the Cray where the pointer length is 64 bit, but the pthread_t type is 32 bit. There is actually a casting-related bug in the core Tcl thread library (Tcl_ThreadCreate) where it was assumed that both were the same size. The thread id ends up being shifted to the left 4 bytes as a result. The good news is that Zoran Vasiljevic checked in a fix into CVS. So just check out the head or the 8.4 branch for Tcl and that should fix the problem. Let me know if that doesn't work for you. Rob > -----Original Message----- > From: tcl...@li... > [mailto:tcl...@li...]On Behalf Of > Dav...@na... > Sent: Thursday, September 02, 2004 11:10 PM > To: tcl...@li... > Subject: [tcljava-user] Thread 2.5.2 on 64bit Solaris > > > > > > > Has anyone had any experience getting tcljava working correctly > in a 64 bit environment? I am using tclBlend 1.3.1, tcl 8.4.7, > and thread 2.5.2 on 64bit Solaris 8/sparcv9. For various reasons, > (the main one being that gcc defaults to 64 bit mode) I built > 64 bit versions of all the binaries. > > I am finding that the Thread package is misbehaving and my guess > (at this stage) is that it's due to some sort of 32/64 bit confusion: > > % package require Thread > 2.5 > % set tid [thread::create] > 77309411328 > % thread::send $tid {some command} > invalid thread id > % > > Does anyone have any ideas about what's going wrong here? > > thanks > -- > David > > This email is sent by or on behalf of the named sender identified above. If > you do not wish to receive any email marketing material from this person in > the future, please forward the contents of this email to > uns...@na... with the word "unsubscribe" in the subject > box. If you do not forward the contents of this email with your > unsubscription then it may not be able to be implemented. If you wish to > unsubscribe from all central email marketing lists used by our business, > please forward the contents of this email to > uns...@na... with the message "unsubscribe from all > central email marketing lists" in the subject box. If you do not forward > the contents of this email with your unsubscription then it may not be able > to be implemented. > > > The information contained in this email communication may be confidential. > You should only disclose, re-transmit, copy, distribute, act in reliance on > or commercialise the information if you are authorised to do so. Any views > expressed in this email communication are those of the individual sender, > except where the sender specifically states them to be the views of a > member of the National Australia Bank Group of companies. Any advice > contained in this e-mail has been prepared without taking into account your > objectives, financial situation or needs. Before acting on any advice in > this e-mail, National Australia Bank Limited recommends that you consider > whether it is appropriate for your circumstances. If this e-mail contains > reference to any financial products, the National recommends you consider > the Product Disclosure Statement (PDS) or other disclosure document before > making any decisions regarding any products. The National Australia Bank > Group of companies does not represent, warrant or guarantee that the > integrity of this communication has been maintained nor that the > communication is free of errors, virus or interference. > > > > ------------------------------------------------------- > This SF.Net email is sponsored by BEA Weblogic Workshop > FREE Java Enterprise J2EE developer tools! > Get your free copy of BEA WebLogic Workshop 8.1 today. > http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click > _______________________________________________ > tcljava-user mailing list > tcl...@li... > https://lists.sourceforge.net/lists/listinfo/tcljava-user > |