Raised This Month: $ Target: $400
 0% 

Compiler bugs / crashes / assertions?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BAILOPAN
Join Date: Jan 2004
Old 09-13-2005 , 03:50   Compiler bugs / crashes / assertions?
Reply With Quote #1

As you may have noticed, ITB CompuPhase's Pawn Compiler is quite buggy.

Lately I've become somewhat adept at fixing its numerous parse errors. However, I don't have time to fix everything.

If you find a bug in the compiler, post it here with code that will definitively crash the latest version. If I can't fix it, I'll just forward it to ITB CompuPhase. So far I'm 7 for 7 for bugs people have found on IRC or through the forums, so there's a good chance it'll get fixed.

The compiler really isn't production ready and I want it to become usable for other projects of mine.

Thanks!
__________________
egg
BAILOPAN is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-13-2005 , 17:25  
Reply With Quote #2

I fixed this for someone last night, missing commas in multi-dimensional string-like array definitions crash.

Code:
 new my_array[6][] = {  "str1",  "str2",  "str3",  "str4",  "str5"  "str6" }  public entry_point() { }

Note that creating a one-dimension integer array and leaving out a comma gives a "invalid function or declaration" error instead of crashing.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
BAILOPAN
Join Date: Jan 2004
Old 09-13-2005 , 20:39  
Reply With Quote #3

Code:
test.sma(9) : error 010: invalid function or declaration
Looks like it already catches this, at least in my version
__________________
egg
BAILOPAN is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 09-13-2005 , 22:29  
Reply With Quote #4

Well I'm still using the compiler that came with 1.00, which it crashes on. I figured at least the web compiler would be up to date, but it also crashes there.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-21-2005 , 22:09  
Reply With Quote #5

Here's a bug. It doesn't know what frikkin line the tag mismatch is on.

http://forums.alliedmods.net/showthread.php?t=18289
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
BAILOPAN
Join Date: Jan 2004
Old 09-22-2005 , 04:12  
Reply With Quote #6

You must post a script, in its entirety (but preferably as small as possible) which reproduces the error.
__________________
egg
BAILOPAN is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 09-25-2005 , 14:21  
Reply With Quote #7

Sorry I can't provide much info. Everything I compile returns Internal Error; including AMXModX native files.

EDIT: An exact file? Ok sure.. how about csstats.sma? cmdmenu.sma? adminchat.sma? It seems it doesn't matter what file I use.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 14:24.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode