bkerler / mtkclient

MTK reverse engineering and flash tool
GNU General Public License v3.0
2.52k stars 505 forks source link

Segmentation fault when running the program #1005

Open AlphaCraft9658 opened 3 months ago

AlphaCraft9658 commented 3 months ago

When trying to run either the mtkclient or the mtkclient gui I get a segmentation fault. This is the output from dmesg.

[  478.510420] python[9405]: segfault at a8 ip 00007f78ec8731c4 sp 00007ffcd1d54b88 error 4 in libpython3.12.so.1.0[7f78ec6fe000+218000] likely on CPU 1 (core 1, socket 0)
[  478.510429] Code: 5d c8 4d 89 e8 eb c8 4c 89 ee 4c 89 c7 e8 54 5e f7 ff 85 c0 75 b9 e9 fb 2e e9 ff e9 17 2f e9 ff 66 0f 1f 44 00 00 f3 0f 1e fa <48> 8b 87 a8 00 00 00 f6 c4 10 75 0c f6 c4 02 74 0a 31 f6 e9 e4 24
[  478.510454] audit: type=1701 audit(1715955908.933:284): auid=1000 uid=1000 gid=1000 ses=3 subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 pid=9405 comm="python" exe="/usr/bin/python3.12" sig=11 res=1
[  478.514340] audit: type=1334 audit(1715955908.937:285): prog-id=98 op=LOAD
[  478.514445] audit: type=1334 audit(1715955908.937:286): prog-id=99 op=LOAD
[  478.514459] audit: type=1334 audit(1715955908.937:287): prog-id=100 op=LOAD
[  478.524963] audit: type=1130 audit(1715955908.948:288): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@4-9421-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  478.721130] audit: type=1131 audit(1715955909.144:289): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=systemd-coredump@4-9421-0 comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
[  478.770736] audit: type=1334 audit(1715955909.194:290): prog-id=100 op=UNLOAD
[  478.770739] audit: type=1334 audit(1715955909.194:291): prog-id=99 op=UNLOAD
[  478.770740] audit: type=1334 audit(1715955909.194:292): prog-id=98 op=UNLOAD
[  501.431937] audit: type=1334 audit(1715955931.855:293): prog-id=101 op=LOAD
[  501.475289] audit: type=1130 audit(1715955931.898:294): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=fprintd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
HoneyHazard commented 3 months ago

segfault here also. fedora 40. any hints?

AlphaCraft9658 commented 3 months ago

segfault here also. fedora 40. any hints?

I'm on Fedora 39.

HoneyHazard commented 3 months ago

I have one machine with fedora 40 where it happens, and the other fedora 40 where it doesn't. I will try to investigate more

bkerler commented 3 months ago

If you use python 3.12, I strongly recommend to use a venv with python 3.11. I have lots of weird issues with 3.12 tbh especially with crypto libraries.