[Gambas-user] [Gambas Bug Tracker] Bug #910: Segfault with Subst$(), IIf() and Null
bugtracker at ...3416...
bugtracker at ...3416...
Wed Apr 6 13:18:49 CEST 2016
http://gambaswiki.org/bugtracker/edit?object=BUG.910&from=L21haW4-
Tobias BOEGE reported a new bug.
Summary
-------
Segfault with Subst$(), IIf() and Null
Type : Bug
Priority : Medium
Gambas version : 3.8.90 (TRUNK)
Product : Unknown
Description
-----------
Code such as
Print Subst$("&1", IIf(False, "x", ""))
results in a segfault on my system. It is crucial that there is an IIf() inside a Subst$() evaluation and that the IIf() evaluates to Null, or the empty string for that matter. The segfault occurs in STRING_subst():
#0 STRING_subst (str=<optimized out>, len=4, get_param=get_param at ...2861...=0x4118cb <get_subst>) at gbx_string.c:707
#1 0x0000000000412411 in SUBR_subst (code=<optimized out>) at gbx_subr_string.c:584
#2 0x000000000043d28b in EXEC_loop () at gbx_exec_loop.c:514
Let me know if debugging symbols are required.
More information about the User
mailing list