[Gambas-bugtracker] Bug #1749: String conversion and error catch cause jit to abort

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Tue Mar 10 15:20:06 CET 2020


http://gambaswiki.org/bugtracker/edit?object=BUG.1749&from=L21haW4-

Brian G reported a new bug.

Summary
-------

String conversion and error catch cause jit to abort

Type             : Bug
Priority         : High
Gambas version   : Master
Product          : JIT compiler


Description
-----------

This script
#!/usr/bin/gbs3
' Gambas Script File Created 03/10/2020 14:17:13.518
Fast

Public Sub Main()
  
  Print "1" + "2"
  Print "-1"
  Print -"1"
  
  Catch
    Print Error.txt
End

causes this output:
3
-1

** 
** OOPS! INTERNAL ERROR. Program aborting, sorry! :-(
** Stack mismatch in JIT function (SP +2)

** 
** MMain.Main.13: #11: Unknown symbol 'txt' in class 'Error'
** 
** Please send a bug report to the gambas bugtracker [1] or to the gambas mailing-list [2].
** [1] http://gambaswiki.org/bugtracker
** [2] https://lists.gambas-basic.org/listinfo/user
**


System information
------------------

master




More information about the Bugtracker mailing list