It is currently Thu May 23, 2013 10:59 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 9 posts ] 
Author Message
 Post subject: [done] 64bit Multilib Mutex bug
PostPosted: Mon Nov 15, 2010 5:51 pm 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
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:
Error
Line no: 56
Error code: -122
Error String: UNDEFINED_SYMBOL


Line 56 of the asm reads:
Code:
CALL   qword [PB_LockMutex]


Thanks!

Chris.

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
 
 Post subject: Re: 64bit Multilib Mutex bug
PostPosted: Mon Nov 15, 2010 10:45 pm 
Offline
Addict
Addict

Joined: Sat Apr 10, 2004 1:20 pm
Posts: 1069
Location: Germany
A snippet that reproduces your problem would help a lot :wink:

Unfortunately my System is temporarely down due to new hardware.

BR Klaus

_________________
http://www.PureBasicPower.de


Top
 Profile  
 
 Post subject: Re: 64bit Multilib Mutex bug
PostPosted: Tue Nov 16, 2010 2:38 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1024
Location: Australia
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!


Top
 Profile  
 
 Post subject: Re: 64bit Multilib Mutex bug
PostPosted: Tue Nov 16, 2010 6:17 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
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:
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


Top
 Profile  
 
 Post subject: Re: 64bit Multilib Mutex bug
PostPosted: Tue Nov 16, 2010 7:21 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1024
Location: Australia
fixed.
http://sourceforge.net/projects/tailbit ... e/download

_________________
Demonio Ardente

Currently managing Linux & OS X Tailbite
OS X TailBite now up to date with Windows!


Top
 Profile  
 
 Post subject: Re: 64bit Multilib Mutex bug
PostPosted: Tue Nov 16, 2010 8:46 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
lexvictory wrote:


Excellent! thanks lexvictory :)

_________________
ProGUI - Professional Graphical User Interface Library - http://www.progui.co.uk


Top
 Profile  
 
 Post subject: Re: 64bit Multilib Mutex bug
PostPosted: Wed Nov 17, 2010 10:54 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
PrincieD wrote:
lexvictory 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


Top
 Profile  
 
 Post subject: Re: [done] 64bit Multilib Mutex bug
PostPosted: Wed Nov 17, 2010 11:25 am 
Offline
Addict
Addict

Joined: Sun May 15, 2005 5:15 am
Posts: 1024
Location: Australia
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!


Top
 Profile  
 
 Post subject: Re: [done] 64bit Multilib Mutex bug
PostPosted: Thu Nov 18, 2010 3:35 am 
Offline
Enthusiast
Enthusiast
User avatar

Joined: Wed Aug 10, 2005 2:08 pm
Posts: 558
Location: Yorkshire, England
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye