Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
EmBitz 2.50 crashes on specific code [solved]
#1
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)     {     } }


Attached Files
.zip   CrashTest2.zip (Size: 466.7 KB / Downloads: 42)
Reply
#2
I will look into it.
Thanks

Btw which '=' character? Line number?
Reply
#3
(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.
Reply
#4
Ok, solved in next 2.60 release.

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

Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)