Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mbed error info not printed with mbed-os-5.12.0 #10242

Closed
desowin opened this issue Mar 27, 2019 · 5 comments

Comments

Projects
None yet
4 participants
@desowin
Copy link

commented Mar 27, 2019

Description

Consider following dummy application:

int main(void)
{
    char *buf;
    do
    {
        buf = new char[1024];
    }
    while (buf);
}

As the application leaks memory, mbed error will eventually occur and on serial port there'll be information like (mbed-os-5.11.5):

++ MbedOS Error Info ++
Error Status: 0x8001011F Code: 287 Module: 1
Error Message: Operator new[] out of memory

Location: 0x80029A5
Error Value: 0x400
Current Thread: main  Id: 0x2000551C Entry: 0x8002EA3 StackSize: 0x1000 StackMem: 0x20005560 SP: 0x200064F4
For more info, visit: https://armmbed.github.io/mbedos-error/?error=0x8001011F
-- MbedOS Error Info --

However with mbed-os-5.12.0, no data is received on serial port.

I am observing the issue with 32F746GDISCOVERY board. The command I use to compile and run the application is mbed compile --target DISCO_F746NG -t GCC_ARM --flash

Issue request type

[ ] Question
[ ] Enhancement
[X] Bug
@cmonr

This comment has been minimized.

Copy link
Contributor

commented Mar 27, 2019

...huh. That's an interesting test case.

CC @ARMmbed/mbed-os-core

@ciarmcom ciarmcom added the type: bug label Mar 27, 2019

@ciarmcom

This comment has been minimized.

Copy link
Member

commented Mar 27, 2019

@kegilbert

This comment has been minimized.

Copy link
Contributor

commented Mar 27, 2019

Tested on a K64F (all I had on hand at the time) with GCC_ARM on 5.11, 5.12, and master and was able to get

++ MbedOS Error Info ++
Error Status: 0x8001011F Code: 287 Module: 1
Error Message: Operator new[] out of memory
...

each time with the described code snippet. I'll try to track down a 32F746GDISCOVERY, might be something target specific.

@cmonr

This comment has been minimized.

Copy link
Contributor

commented Apr 9, 2019

However with mbed-os-5.12.0, no data is received on serial port.

I recall seeing another issue about serial port intiialization. I wonder if this is related.

@cmonr

This comment has been minimized.

Copy link
Contributor

commented Apr 9, 2019

Possibly related: #10344

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.