nmeum / android-tools

Unoffical CMake-based build system for android command line utilities
Apache License 2.0
191 stars 57 forks source link

Fastboot ends in "Segmentation Fault" #49

Closed CastorDYvaine closed 2 years ago

CastorDYvaine commented 3 years ago

I have aarch64 android-tools in termux, and am having an issue where fastboot gives an error message saying "Segmentation Fault". I have uninstalled and then reinstalled android-tools.

Android 10 : Motorola Moto E7 : aarch64 : Unrooted Stock rom termux fboot err1 termux fboot err2 termux fboot err3

anatol commented 3 years ago

Could you please run the tool with debugger gdb fastboot? It will give a better stacktrace information.

Johnnynator commented 3 years ago

That bug is fixed in their packaging with termux/termux-packages/issues/7882 .

The backtrace I saw before checking their issue tracker was most likely fixed by this line change https://github.com/termux/termux-packages/pull/7882/files#diff-3f73b981194d1b1f8a51c2295ea09a5a75d569a61c15b94187852daf2143dc9cR22

CastorDYvaine commented 2 years ago

I fixed it somehow. I ran it in gdb and it worked while in there, then I exited gdb and ran it normally and it worked (huh??). Unfortunately I cannot provide logs as I am a noob at using gdb. Thanks for your help anyways.