You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The dependencies are listed in /firmware/dependencies.env, and there are a few patch files to help me apply changes to files both inside secp256k1-embedded and secp256k1 which I have been using to debug an issue.
I am a little out of my depth here, so I have been using Github Actions to build (it is the only way I can get it to build successfully) and I am running the following code in repl mode on the device to observe any changes:
The issue I have been diagnosing is that when running any secp256k1 code, the device becomes unresponsive. I found that by running this code on a second thread, the device doesn't become completely unresponsive (which is good) and when the main thread ends, so does any spawned threads.
If the secp256k1.ec_seckey_verify(secret) function returns, then I see a printed "ERRORRORORORORO" message. The reason is that I have already shortcircuited the secp256k1.ec_seckey_verify method (via patch file) to return mp_const_none. It will do that immediately after calling maybe_init_ctx(); which is its first line, and I identified that the issue occurs within that line as placing the return BEFORE that line, I get an immediate response.
So I then continued to debug by following the code into secp256k1_context_preallocated_create which is defined in secp256k1/src/secp256k1.c ~line 124.
I used return NULL as a shortcircuit, and placing it AFTER:
Is where the problem starts. So I seem to have isolated the issue to the line above.
What is annoying is that I see no error messages, it just crashes or hangs without giving any feedback to my computer. In fact even printf didn't seem to output anything like the print method in python does.
Hopefully, from this issue, someone can give some useful tips based on experience that helps me out because I am really and utterly stumped.
Even suggestions on how I can change my development setup such that I may be more likely to see error messages would be helpful at this point.
Thanks,
Dipun.
The text was updated successfully, but these errors were encountered:
I have a project defined here: https://github.com/dipunm/bitcoin-starter-kit/
The dependencies are listed in
/firmware/dependencies.env
, and there are a few patch files to help me apply changes to files both insidesecp256k1-embedded
andsecp256k1
which I have been using to debug an issue.I am a little out of my depth here, so I have been using Github Actions to build (it is the only way I can get it to build successfully) and I am running the following code in
repl
mode on the device to observe any changes:The issue I have been diagnosing is that when running any
secp256k1
code, the device becomes unresponsive. I found that by running this code on a second thread, the device doesn't become completely unresponsive (which is good) and when the main thread ends, so does any spawned threads.If the
secp256k1.ec_seckey_verify(secret)
function returns, then I see a printed "ERRORRORORORORO" message. The reason is that I have already shortcircuited thesecp256k1.ec_seckey_verify
method (via patch file) to returnmp_const_none
. It will do that immediately after callingmaybe_init_ctx();
which is its first line, and I identified that the issue occurs within that line as placing thereturn
BEFORE that line, I get an immediate response.So I then continued to debug by following the code into
secp256k1_context_preallocated_create
which is defined insecp256k1/src/secp256k1.c
~line 124.I used
return NULL
as a shortcircuit, and placing it AFTER:Works fine.
Placing it after the next line:
Is where the problem starts. So I seem to have isolated the issue to the line above.
What is annoying is that I see no error messages, it just crashes or hangs without giving any feedback to my computer. In fact even
printf
didn't seem to output anything like theprint
method in python does.Hopefully, from this issue, someone can give some useful tips based on experience that helps me out because I am really and utterly stumped.
Even suggestions on how I can change my development setup such that I may be more likely to see error messages would be helpful at this point.
Thanks,
Dipun.
The text was updated successfully, but these errors were encountered: