Mbed-os: Missing ThisThread:: in get_name() of ThisThread.cpp

Created on 29 May 2020  路  8Comments  路  Source: ARMmbed/mbed-os

Description of defect

undefined reference to `rtos::ThisThread::get_name()'
Linking error due to missing of ThisThread:: in front of get_name()

Target(s) affected by this defect ?

All

Toolchain(s) (name and version) displaying this defect ?

GCC_ARM. arm-none-eabi version 9.2.1

What version of Mbed-os are you using (tag or sha) ?


b6370b4c37f3d4665ed1cdcb1afea85396bba1b3

What version(s) of tools are you using. List all that apply (E.g. mbed-cli)

mbed-cli version 1.10.2

How is this defect reproduced ?

call ThisThread::get_name() method

bug

Most helpful comment

The odd thing is that it was submitted by someone who said it was useful in #8961. Clearly didn't find it useful enough to actually call it :)

All 8 comments

Thanks for the report. How come this was not in our CI? Will investigate

Reference to the declaration: https://github.com/ARMmbed/mbed-os/blob/mbed-os-5.15/rtos/Thread.h#L397

cc @ARMmbed/mbed-os-core @kjbracey-arm

Pull request welcome to fix this, we might create one soon (in the future for bugs like this it is faster to get the fix in if a pull request is created).

I'm making one.

The odd thing is that it was submitted by someone who said it was useful in #8961. Clearly didn't find it useful enough to actually call it :)

@ndrs-pst thank you for raising this issue.Please take a look at the following comments:

Could you add some more detail to the description? A good description should be at least 25 words.
We cannot automatically identify a release based on the version of Mbed OS that you have provided.
Please provide either a single valid sha of the form #abcde12 or #3b8265d70af32261311a06e423ca33434d8d80de
or a single valid release tag of the form mbed-os-x.y.z .
E.g. '5.15.x' has not been matched as a valid tag or sha.
NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'.This indicates to us that at least all the fields have been considered.
Please update the issue header with the missing information, the issue will not be mirroredto our internal defect tracking system or investigated until this has been fully resolved.

@ciarmcom Updated already.

@ndrs-pst it has been 5 days since the last reminder. Could you please update the issue header as previously requested?

sha updated

Was this page helpful?
0 / 5 - 0 ratings