arturo-lang / arturo

Simple, expressive & portable programming language for efficient scripting
http://arturo-lang.io
MIT License
713 stars 32 forks source link

[Net\serve] the function returns a SIGSEGV #1239

Closed RickBarretto closed 11 months ago

RickBarretto commented 1 year ago

Describe the bug "seems to break upon requesting a GET to localhost:18966/post?id=123, with SIGSEGV. The first route (parameterless) works fine, but the second and third both crash the arturo process"

To Reproduce

serve .port:18966 [
GET "/"          [ "This is the homepage" ]
GET "/post"      $[id][ 
                    send.html ~"This is the post with id: |id|" 
                 ]
POST "/getinfo"  $[id][ 
                   send.json write.json ø #[
                     i: id
                     msg: "This is some info"
                   ]
                 ]
]

Expected behavior It should work as said in documentation.

Desktop (please complete the following information):

Additional context This message from Discord, thanks @Rosen.

RickBarretto commented 1 year ago

@drkameleon Wasn't it fixed before at #1240?

drkameleon commented 1 year ago

@drkameleon Wasn't it fixed before at #1240?

You must be right! I'll have a look...

drkameleon commented 11 months ago

I've been testing this one and it appears all pending issues have indeed been fixed. So, I'm closing this...

In case the issue persists, we can ofc open it again.