sys: the TLSF implementation contains (a) read-before-write error(s)
Merge #1259, compile and run the mere hello-world example, see the debug messages.
The library either needs a proper source code review, or at least a dynamic examination in valgrind. Findings should be pushed upstream.
The PR in question was merged quite a while ago. @Kijewski: do you still get this error and can tell me how to reproduce it? Right now I don't get any runtime errors and the compiler warnings I get are likely due to my compiler specs:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.1/../../../../x86_64-pc-linux-gnu/bin/ld: /home/n8fear/src/RIOT/examples/default/bin/native/cpu.a(tramp.o): warning: relocation against `_native_saved_eip' in readonly section `.text'.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.1/../../../../x86_64-pc-linux-gnu/bin/ld: warning: creating a DT_TEXTREL in object.
@Kijewski ping?
Is this outdated?
I somehow fail to build for qemu-i386 at all.
Because master is not building...
With the fixed master I still get the warnings when building hello-world as followed:
CFLAGS=-DDEBUG_READ_BEFORE_WRITE BOARD=qemu-i386 make -B clean all term
@OlegHahm this will not be fixed for this release, right?
I don't think so.
-> known issue?
yes.
any news here?
I was probably the RIOTer with the most extensive use of TLSF over the last three months, but apart from concurrency issues with calloc() I couldn't find a problem.
Should we close it then?
Should we close it then?
No.
Then it will postponed since there is no PR solving this bug.
@OlegHahm, @emmanuelsearch, there are enough bored out BSc students, aren't there? Maybe implementing TLSF from scratch according to its paper, and comparing it to more common allocators would make an interesting bachelor thesis?
Is this still an issue?
@jcarrano did you fix this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you want me to ignore this issue, please mark it with the "State: don't stale" label. Thank you for your contributions.
Duplicate of #5796