Giter Site home page Giter Site logo

Interrupted System Call about voltron HOT 17 CLOSED

snare avatar snare commented on May 8, 2024
Interrupted System Call

from voltron.

Comments (17)

richo avatar richo commented on May 8, 2024

I've reprod this (independantly, I actually thought I broke something).

I'm digging into this atm, however it's definitely a regression, so in the very short term you can probably wind back about ~a month of git history and have this bug go away.

from voltron.

richo avatar richo commented on May 8, 2024

Separately, you should not have the init line in your .gdbinit.

You should load voltron, load the inferior, the voltron init

from voltron.

snare avatar snare commented on May 8, 2024

No, it’s fine to voltron init in your gdbinit. Doing it after loading a target is only required for LLDB due to the way it manages the stop hooks (you add stop hooks on a per-target basis).

Thanks for looking into it Richo.

On 15 Jan 2015, at 6:18 am, Richo Healey [email protected] wrote:

Separately, you should not have the init line in your .gdbinit.

You should load voltron, load the inferior, the voltron init


Reply to this email directly or view it on GitHub.

from voltron.

richo avatar richo commented on May 8, 2024

Ah! my bad.

(Interestingly, sometimes this issue did not happen to me when I started
my inferior, and stepped through a few instructions before init'ing voltron
and attaching some views. I really doubt they're related, but it might be a
Thing You Could Do to get moving with it.

Will hopefully make time to dig into the underlying issue this week some
time, but nfi when.

On Wed, Jan 14, 2015 at 4:32 PM, snare [email protected] wrote:

No, it’s fine to voltron init in your gdbinit. Doing it after loading a
target is only required for LLDB due to the way it manages the stop hooks
(you add stop hooks on a per-target basis).

Thanks for looking into it Richo.

On 15 Jan 2015, at 6:18 am, Richo Healey [email protected]
wrote:

Separately, you should not have the init line in your .gdbinit.

You should load voltron, load the inferior, the voltron init


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub
#65 (comment).

from voltron.

snare avatar snare commented on May 8, 2024

Didn't mean to close this. THANKS GITHUB. Let me know if this solves your problem, @theqlabs. Thanks!

from voltron.

theqlabs avatar theqlabs commented on May 8, 2024

Will test again this week, got a little busy. Will post back results. Thanks guys for digging into this! Been dying to use this tool.

from voltron.

theqlabs avatar theqlabs commented on May 8, 2024

Looks like it's still occurring, just pulled the newest commit and installed on a 32-bit Ubuntu 12.04 VM again:

Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 551, in __bootstrap_inner
    self.run()
  File "/usr/local/lib/python2.7/dist-packages/voltron-0.1-py2.7.egg/voltron/core.py", line 202, in run
    rfds, _, _ = select.select([serv, self.exit_pipe] + self.clients, [], [])
error: (4, 'Interrupted system call')

from voltron.

theqlabs avatar theqlabs commented on May 8, 2024

Ok, it looks like if I load the inferior first (as you suggested) and then source dbgentry.py and run voltron init, I don't seem to get the Interrupted System call exception.

And I also just got views working, this seems a little shaky but it's currently working (if I do it in the above order)

from voltron.

theqlabs avatar theqlabs commented on May 8, 2024

The first "ni" I take in GDB, I check the views and instead of refreshing I get: Failed getting registers: Exception getting registers from debugger: Couldn't get extended state status: No such process.

I will try to dig into this as I have time. Am I the only one having these issues?

from voltron.

richo avatar richo commented on May 8, 2024

Wow, that's weird. I don't suppose you can bundle up a VM that does this for me to poke?

from voltron.

richo avatar richo commented on May 8, 2024

Can you try the branch at https://github.com/richo/voltron/tree/debug/theqlabs ?

It'll most likely barf about a jillion messages into your console. It seems likely that something is leaking tons of signals (especially if they're batched) and causing the bug.

from voltron.

theqlabs avatar theqlabs commented on May 8, 2024

Sure, can do either. I can try the branch above first, if that doesn't work I'll bundle up the VM.

from voltron.

snare avatar snare commented on May 8, 2024

@theqlabs re: you being the only one having the issue, I really only use this on OS X with LLDB and it kinda only gets tested on Linux/GDB when @richo has to do something on Linux.

There's a test suite which runs some tests against the GDB CLI but they're really unreliable at the moment so you have to run them a few times and only treat a failure that occurred every time as a true failure. I've been meaning to try to do something to make these more reliable, but that might also be a good starting point.

In general if you're having issues, enable debug_logging in your config (as per the configuration page). You'll get voltron_main.log and voltron_debugger.log created in your ~/.voltron dir, which are the log files for the views/clients and debugger respectively. These might be helpful in finding the issues (either for us or you).

I guess I should probably write a "troubleshooting" section for the wiki :)

from voltron.

snare avatar snare commented on May 8, 2024

GDB tests should be more reliable now. Waiting for the debugger to restart sucks.

from voltron.

snare avatar snare commented on May 8, 2024

BTW you'll also get a tests/test.log when you run the tests.

from voltron.

snare avatar snare commented on May 8, 2024

Which you do with nosetests -sv in the root of the repo, or nosetests -sv tests/gdb_cli_tests.py for just the GDB tests.

from voltron.

snare avatar snare commented on May 8, 2024

This will probably be resolved now since the core comms has been completely rewritten and is not using the sockets code any more

from voltron.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.