Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7858287
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T21:22:11+00:00 2026-06-02T21:22:11+00:00

I am getting illegal operand error when I run a program. The program where

  • 0

I am getting illegal operand error when I run a program. The program where the crash happens is written in assembly and linked as an object file, so I’m not sure how to use gdb with it. I noticed the fault by trapping the SIGILL signal.I want to get the address of the offending instruction. One method that comes to my mind is to get the last execution context in the signal handler and note down the value of rip register from it. I know that context is passed to signal handlers, but don’t know how.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T21:22:14+00:00Added an answer on June 2, 2026 at 9:22 pm

    If you do want to follow the signal handler route it is not hard to get the address of the instruction that causes the signal handler to run. When you create your signal handler set the SA_SIGINFO bit in the flags setting. Then when you write your handler it will have access to a siginfo_t structure that includes the field si_addr which is the address of the memory location that triggered the exception.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am getting java:105: error: illegal character: \29 } I am writing a program
I am getting some errors when trying to run yuicompressor. it says: [error] 1:2:illegal
I'm getting an Illegal characters in path error while using XMLTextReader method. Basically, I'm
I am getting an illegal start of type error at the first nested if
I'm getting the error Illegal access to loading collection when I'm trying to get
Getting a rendering error for this form: 'NoneType' object has no attribute 'widget' http://dpaste.com/88585/
I'm getting illegal offset type error for every iteration of this code. Here's the
Well.. it's pretty much that, I seem to be getting a Illegal Seek error
During my file upload process, I found illegal character getting saved in Table. zurück.pdf
I am getting the error java:35: error: illegal character: \29, all this should do

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.