RIOT icon indicating copy to clipboard operation
RIOT copied to clipboard

sys: the TLSF implementation contains (a) read-before-write error(s)

Open Kijewski opened this issue 12 years ago • 19 comments

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.

Kijewski avatar Jun 02 '14 18:06 Kijewski

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.

N8Fear avatar Oct 16 '14 15:10 N8Fear

@Kijewski ping?

N8Fear avatar Nov 25 '14 18:11 N8Fear

Is this outdated?

PeterKietzmann avatar Mar 04 '15 14:03 PeterKietzmann

I somehow fail to build for qemu-i386 at all.

OlegHahm avatar Mar 05 '15 15:03 OlegHahm

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 avatar Mar 05 '15 16:03 OlegHahm

@OlegHahm this will not be fixed for this release, right?

haukepetersen avatar Mar 31 '16 14:03 haukepetersen

I don't think so.

OlegHahm avatar Apr 01 '16 20:04 OlegHahm

-> known issue?

OlegHahm avatar Apr 01 '16 20:04 OlegHahm

yes.

haukepetersen avatar Apr 13 '16 13:04 haukepetersen

any news here?

kaspar030 avatar Jul 11 '16 12:07 kaspar030

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.

OlegHahm avatar Jul 13 '16 17:07 OlegHahm

Should we close it then?

kYc0o avatar Jul 25 '16 16:07 kYc0o

Should we close it then?

No.

Kijewski avatar Jul 25 '16 16:07 Kijewski

Then it will postponed since there is no PR solving this bug.

kYc0o avatar Jul 25 '16 16:07 kYc0o

@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?

Kijewski avatar Sep 19 '17 20:09 Kijewski

Is this still an issue?

kYc0o avatar Apr 13 '18 17:04 kYc0o

@jcarrano did you fix this?

kYc0o avatar Jul 17 '18 11:07 kYc0o

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.

stale[bot] avatar Aug 10 '19 08:08 stale[bot]

Duplicate of #5796

jcarrano avatar Sep 10 '19 09:09 jcarrano