How to file/report a bug

Discussion about programs, libraries and tools that work with MicroPython. Mostly these are provided by a third party.
Target audience: All users and developers of MicroPython.
Post Reply
a-ha
Posts: 21
Joined: Sat Jun 27, 2020 10:42 pm

How to file/report a bug

Post by a-ha » Wed Jul 01, 2020 4:48 pm

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

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: How to file/report a bug

Post by dhylands » Wed Jul 01, 2020 6:38 pm

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.

a-ha
Posts: 21
Joined: Sat Jun 27, 2020 10:42 pm

Re: How to file/report a bug

Post by a-ha » Thu Jul 02, 2020 5:26 pm

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.

User avatar
dhylands
Posts: 3821
Joined: Mon Jan 06, 2014 6:08 pm
Location: Peachland, BC, Canada
Contact:

Re: How to file/report a bug

Post by dhylands » Thu Jul 02, 2020 6:33 pm

What board are you running on?
What version of MicroPython are you using?

a-ha
Posts: 21
Joined: Sat Jun 27, 2020 10:42 pm

Re: How to file/report a bug

Post by a-ha » Fri Jul 03, 2020 3:55 am

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.

Post Reply