Page 1 of 1

[done] 64bit Multilib Mutex bug

Posted: Mon Nov 15, 2010 5:51 pm
by PrincieD
Hi ABBKlaus!

I think I've found a bug in the latest release of Tailbite with 64bit multilib when LockMutex is encountered (compiles fine on 32bit). Tailbite reports the following error when compiling asm:

Code: Select all

Error
Line no: 56
Error code: -122
Error String: UNDEFINED_SYMBOL
Line 56 of the asm reads:

Code: Select all

CALL   qword [PB_LockMutex]
Thanks!

Chris.

Re: 64bit Multilib Mutex bug

Posted: Mon Nov 15, 2010 10:45 pm
by ABBKlaus
A snippet that reproduces your problem would help a lot :wink:

Unfortunately my System is temporarely down due to new hardware.

BR Klaus

Re: 64bit Multilib Mutex bug

Posted: Tue Nov 16, 2010 2:38 am
by lexvictory
Post a snippet of code that produces this problem (like Klaus said) and I can have a look.

Also, when posting an ASM error please also post the filename (especially important in multilib mode) and a few lines around it.
(in this case i can guess the lines before what you posted involve LockMutex() but it isn't always so obvious)

Re: 64bit Multilib Mutex bug

Posted: Tue Nov 16, 2010 6:17 am
by PrincieD
ABBKlaus wrote:A snippet that reproduces your problem would help a lot :wink:
Yes of course, sorry :oops:
ABBKlaus wrote:Unfortunately my System is temporarely down due to new hardware.
No worries d00d :)
lexvictory wrote:Post a snippet of code that produces this problem (like Klaus said) and I can have a look.
Hey lex, the following small code snippet re-produces the problem when compiled as 64bit multilib:

mutextest.pb

Code: Select all

ProcedureDLL mutextest_Init()
  Global trackWinMutex = CreateMutex()
EndProcedure

ProcedureDLL mutextest_End()
  
EndProcedure

Procedure internal()
  
  LockMutex(trackWinMutex)
  
  x = x + 1
  y = x + 1
  
  UnlockMutex(trackWinMutex)
  
  ProcedureReturn 1
  
EndProcedure

ProcedureDLL command()
  
  RetVal = internal()
  
  ProcedureReturn RetVal
  
EndProcedure 
Thanks for your help guys! :)

Chris.

Re: 64bit Multilib Mutex bug

Posted: Tue Nov 16, 2010 7:21 am
by lexvictory

Re: 64bit Multilib Mutex bug

Posted: Tue Nov 16, 2010 8:46 am
by PrincieD
Excellent! thanks lexvictory :)

Re: 64bit Multilib Mutex bug

Posted: Wed Nov 17, 2010 10:54 am
by PrincieD
PrincieD wrote:
Excellent! thanks lexvictory :)
Hi Lexvictory,

V1.4.5 of the TailBite installer doesn't work on 32bit machines, when the installer is run on XP 64bit the license agreement page appears corrupt and once installed the TailBite binaries don't work - Windows reports the following error: The image "TBManager.exe" is valid, but is for a machine type other than the current machine.

:shock:

cheers!

Chris.

Re: [done] 64bit Multilib Mutex bug

Posted: Wed Nov 17, 2010 11:25 am
by lexvictory
ahh... sorry >.<
thats part of the reason why i dont do the builds for windows, i can never get it right; i hardly understand how the builder works xD
its because to do the testing i use a prefs file in the TB source dir (i dont actually have the IDE installed, which is normally what TB looks at), which was pointed at the x64 compiler for obvious reasons, and it used that to compile TB.

this one should work for you: (i advise you install it on 64 bit as well)
http://sourceforge.net/projects/tailbit ... e/download

Re: [done] 64bit Multilib Mutex bug

Posted: Thu Nov 18, 2010 3:35 am
by PrincieD
lexvictory wrote:ahh... sorry >.<
thats part of the reason why i dont do the builds for windows, i can never get it right; i hardly understand how the builder works xD
its because to do the testing i use a prefs file in the TB source dir (i dont actually have the IDE installed, which is normally what TB looks at), which was pointed at the x64 compiler for obvious reasons, and it used that to compile TB.

this one should work for you: (i advise you install it on 64 bit as well)
http://sourceforge.net/projects/tailbit ... e/download
Thanks lexvictory! works great now :D

Chris.