Page 1 of 1

How to file/report a bug

Posted: Wed Jul 01, 2020 4:48 pm
by a-ha
Hello,

I think I found a bug in the _thread module the other day.
I think I should report this. Is there a procedure to follow? Would someone send me some pointers?

thanks
a-ha

Re: How to file/report a bug

Posted: Wed Jul 01, 2020 6:38 pm
by dhylands
You can post it here and we can discuss it to see if it's really a bug, or perhaps just a misuse or misunderstanding.

If you're sure it really is a bug, then you create a github issue.

Re: How to file/report a bug

Posted: Thu Jul 02, 2020 5:26 pm
by a-ha
The issue does not exist with serial repl. Only with webrepl you can reproduce the issue.
So this is an issue with webrepl, not _thread.

Here is the repro steps:
--
import _thread

def foo(a, b):
for i in range(a, b):
print(i)

def bar():
_thread.start_new_thread(foo, (1, 1000))
_thread.start_new_thread(foo, (2000, 2100))
--
Running bar() within webrepl session will get you disconnected.

Re: How to file/report a bug

Posted: Thu Jul 02, 2020 6:33 pm
by dhylands
What board are you running on?
What version of MicroPython are you using?

Re: How to file/report a bug

Posted: Fri Jul 03, 2020 3:55 am
by a-ha
I am using the version of upython released on 6/30/2020 on the esp32.
esp32-idf3-20200630-unstable-v1.12-597-gcb9aafbf8.bin.

I also tried it on the current stable build with the same results.
esp32-idf3-20191220-v1.12.bin.