[done] 64bit Multilib Mutex bug

TailBite specific forum

Moderators: gnozal, ABBKlaus, lexvictory

PrincieD
Enthusiast
Enthusiast
Posts: 646
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

[done] 64bit Multilib Mutex bug

Post 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.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
ABBKlaus
Addict
Addict
Posts: 1143
Joined: Sat Apr 10, 2004 1:20 pm
Location: Germany

Re: 64bit Multilib Mutex bug

Post 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
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: 64bit Multilib Mutex bug

Post 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)
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
PrincieD
Enthusiast
Enthusiast
Posts: 646
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: 64bit Multilib Mutex bug

Post 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.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: 64bit Multilib Mutex bug

Post by lexvictory »

Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
PrincieD
Enthusiast
Enthusiast
Posts: 646
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: 64bit Multilib Mutex bug

Post by PrincieD »

Excellent! thanks lexvictory :)
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
PrincieD
Enthusiast
Enthusiast
Posts: 646
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: 64bit Multilib Mutex bug

Post 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.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
lexvictory
Addict
Addict
Posts: 1027
Joined: Sun May 15, 2005 5:15 am
Location: Australia
Contact:

Re: [done] 64bit Multilib Mutex bug

Post 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
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!
PrincieD
Enthusiast
Enthusiast
Posts: 646
Joined: Wed Aug 10, 2005 2:08 pm
Location: Yorkshire, England
Contact:

Re: [done] 64bit Multilib Mutex bug

Post 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.
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk
Post Reply