EmBitz
EmBitz 2.50 crashes on specific code [solved] - Printable Version

+- EmBitz (https://www.embitz.org/forum)
+-- Forum: IDE (https://www.embitz.org/forum/forum-1.html)
+--- Forum: Bug report (https://www.embitz.org/forum/forum-8.html)
+--- Thread: EmBitz 2.50 crashes on specific code [solved] (/thread-158.html)



EmBitz 2.50 crashes on specific code [solved] - Operton - 24-03-2023

Hi,

I have this code that crashes EmBitz. This is the minimal code that producing the crash.
When the program reaching the '=' character, EmBitz becomes unresponsive, greyed out, and the only thing I can do is closing the application.
The wierd thing is, if I change the '=' character to anything else, the crash doens't happen.

The crash doens't happen on another IDE.

STM32H743VIT6
EmBitz 2.50
EBlink 4.7-21
Windows 10

The included project is generated with the EmBitz 2.50.

Thanks!


Code:
#include "main.h"

typedef struct
{
    char *host;
    char *path;

} tURL;

int main(void)
{
    static tURL url;
    static char host_str[20];
    static char path_str[20];
    const char *pch = "foo=bar";
    uint32_t i = 0;

    url.host = host_str;
    url.path = path_str;

    while(*pch != '\0')
    {
        path_str[i++] = *pch++;
    }

    while(1)
    {
    }
}



RE: EmBitz 2.50 crashes on specific code - embitz - 25-03-2023

I will look into it.
Thanks

Btw which '=' character? Line number?


RE: EmBitz 2.50 crashes on specific code - Operton - 25-03-2023

(25-03-2023, 07:30 AM)embitz Wrote: I will look into it.
Thanks

Btw which '=' character? Line number?

The '=' in the string.
The crash happens when the copy while loop reach the '=' character in the string.


RE: EmBitz 2.50 crashes on specific code - embitz - 28-03-2023

Ok, solved in next 2.60 release.

   


RE: EmBitz 2.50 crashes on specific code - Operton - 28-03-2023

(28-03-2023, 02:43 PM)embitz Wrote: Ok, solved in next 2.60 release.

Thank you!