QlArchARM object has no attribute unicorn_exception_handler during ARM Cortex-M emulation

Aperta
#1,478 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
python

Direzione di ricerca

Reproduce the failure with the provided Qiling(...) configuration for the ARM Cortex-M ELF, then start at ql.run() and trace ARM MCU initialization to the missing unicorn_exception_handler. Done means the sample initializes and runs without this AttributeError.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
When attempting to emulate a bare-metal ARM program for Cortex-M using Qiling, the following error occurs: AttributeError: 'QlArchARM' object has no attribute 'unicorn_exception_handler'.

Sample Code

from qiling import Qiling
from qiling.const import *

ELF_FILE_PATH = "my-application.axf"
ROOT_FS_PATH = "./rootfs"

ql = Qiling([ELF_FILE_PATH], ROOT_FS_PATH, archtype=QL_ARCH.ARM, ostype=QL_OS.MCU, verbose=QL_VERBOSE.DEBUG)
ql.run()

Expected behavior
The Qiling emulator should successfully initialize and run the provided ARM Cortex-M ELF file without raising an AttributeError.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context

  • Qiling version: 1.4.6
  • Python version: 3.10.12
  • Operating System: Ubuntu 22.04.4 LTS - x86_64
  • Detailed error message: AttributeError: 'QlArchARM' object has no attribute 'unicorn_exception_handler'
Lingua principale
Python
Stelle
6.2k
Fork
806
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di qilingframework/qiling

Tutte le issue di qilingframework/qiling

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.