rozhuk-im / minipro

Open source tool for MiniPRO TL866xx series of chip programmers
GNU General Public License v3.0
7 stars 2 forks source link

SIGILL on chip_db_load #2

Open gbin opened 6 years ago

gbin commented 6 years ago

compil;ed with: cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/gbin/prefix ..

sal ➜  Amiga-firmware  gdb minipro                            
GNU gdb (GDB) 8.2
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from minipro...done.
(gdb) r -p "AM27C4096 @DIP40" -y -c code -r out
Starting program: /home/gbin/prefix/bin/minipro -p "AM27C4096 @DIP40" -y -c code -r out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGILL, Illegal instruction.
chip_db_load (file_name=<optimized out>, file_name_size=<optimized out>) at /home/gbin/projects/minipro/src/database.c:396
396                     if (0 == chip_db_parse_item(ini, soff, sname, sname_sz,
(gdb) bt
#0  chip_db_load (file_name=<optimized out>, file_name_size=<optimized out>) at /home/gbin/projects/minipro/src/database.c:396
#1  0x000055dab48575e0 in main (argc=<optimized out>, argv=0x7ffc2bf59338) at /home/gbin/projects/minipro/src/main.c:329
gbin commented 6 years ago

Added some log debug Parse item 455. [1] 10984 illegal hardware instruction sudo ./src/minipro -p "AM27C4096 @DIP40" -y -c code -r out.rom

It crashes at item 455 out of 13143 or something.

rozhuk-im commented 5 years ago

Can you show build log?

rozhuk-im commented 5 years ago

Probably this commit 944077ac46fd3126a250dc652f0f9d11ccf1ae13 fix crash.

gbin commented 5 years ago

Thx gonna have a try