REPLACE$ & ALIGN$ bugs (SOLVED)
Jun 30, 2024 17:50:27 GMT 1
Post by rikky on Jun 30, 2024 17:50:27 GMT 1
Hello
Since the bug forum is occupied I am reporting here.
I have this program:
result:
The version 4.8.1 is a fossil from Thursday 18/04/2024 08:48:16.
The issues:
- REPLACE$(REPLACE$(string1$,NL$,''),' ','') => nix
- ALIGN$(string2$,64,0) => signal for SEGMENTATION FAULT.
Rik.
Since the bug forum is occupied I am reporting here.
I have this program:
PRINT
PRINT VERSION$
string1$ = "bla " & NL$ & "blabla bla bla" & NL$ & "blabla bla bla" & NL$ & "blabla bla bla" & NL$ & "blabla bla bla" & NL$ & "blabla bla bla" & NL$ & "blabla bla bla" & NL$ & "blabla bla bla" & NL$ & "blabla bla bla"
PRINT
PRINT "string1:"
PRINT string1$
string2$ = REPLACE$(string1$,NL$,"")
PRINT
PRINT "string2$ = REPLACE$(string1$,NL$,'')"
PRINT string2$
string2$ = REPLACE$(string2$," ","")
PRINT
PRINT "string2$ = REPLACE$(string2$,' ','')"
PRINT string2$
string3$ = REPLACE$(REPLACE$(string1$,NL$,"")," ","")
PRINT
PRINT "REPLACE$(REPLACE$(string1$,NL$,''),' ','')"
PRINT "=>" & string3$ & "<= huh? it's gone."
'more fun
PRINT
PRINT "ALIGN$(string1$,64,0)"
PRINT ALIGN$(string1$,64,0)
PRINT
PRINT "ALIGN$(string2$,64,0)"
PRINT ALIGN$(string2$,64,0)
result:
4.8.1
string1:
bla
blabla bla bla
blabla bla bla
blabla bla bla
blabla bla bla
blabla bla bla
blabla bla bla
blabla bla bla
blabla bla bla
string2$ = REPLACE$(string1$,NL$,'')
bla blabla bla blablabla bla blablabla bla blablabla bla blablabla bla blablabla bla blablabla bla blablabla bla bla
string2$ = REPLACE$(string2$,' ','')
blablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablablabla
REPLACE$(REPLACE$(string1$,NL$,''),' ','')
=><= huh? it's gone.
ALIGN$(string1$,64,0)
bla blabla bla bla blabla bla bla blabla bla bla blabla bla bla
blabla bla bla blabla bla bla blabla bla bla blabla bla bla
ALIGN$(string2$,64,0)
ERROR: signal for SEGMENTATION FAULT received - memory invalid or array out of bounds? Try to compile the program with TRAP LOCAL to find the cause.
double free or corruption (!prev)
ERROR: signal ABORT received - internal error. Try to compile the program with TRAP LOCAL to find the cause.
The version 4.8.1 is a fossil from Thursday 18/04/2024 08:48:16.
The issues:
- REPLACE$(REPLACE$(string1$,NL$,''),' ','') => nix
- ALIGN$(string2$,64,0) => signal for SEGMENTATION FAULT.
![:D](http://storage.proboards.com/forum/images/smiley/grin.png)