-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReadOrWriteError exception raised when trying to use comment api in IDA 6.8 #61
Comments
Okay. @gool123456, were you able to confirm that |
Also if you want to disable the comment cache because you need to get some other work done, you can just comment out the hook entirely in misc/hooks.py at line 993.
|
Python>database.tag(0x006DA9C8, '222', 'ok') |
Okay. Lol. That's very confusing then. There must be something in that hook that's screwed up, let's double-check that the api isn't messed up. The following code should reproduce the exception. Can you try it and let me know what it outputs? Ideally it should raise that ReadOrWriteError exception.
|
@arizvisa hi , |
How to set this add method type parameter ? |
@gool123456, just use Then if you want to describe an array, you just wrap it in a list, like After you figure out the size of your type, you can assign to It's definitely a very strange way of thinking about types, but I couldn't come up with any other way to hide what IDAPython does with its typeflags like |
@arizvisa that's nice, Interesting question!! In learning, ida is really a big knowledge base. |
@arizvisa hi, I'm so stupid, I have to come and ask you questions, I don't know what went wrong, I can't set the member's custom type , it awaly is 'int':
|
Also, are you trying to change the type of the member at offset 0 to a structure? If so, then you'll want to do:
|
You can also treat
|
@gool123456, I moved your question to a separate issue for tracking since it is different that this bug you reported. You can find it at #62. |
Btw, I'm still looking at this issue and am trying to download a version of IDA 6.8 from archive.org in order to reproduce. The town that I'm currently at was hit by a hurricane and for some reason my d/l speed is around 5k/s-10k/s. Give me a little bit to get an older version of IDA so I can try and reproduce this. |
Yes. That link seems to work. Thanks you. I was also downloading it from this link too. https://archive.org/details/Yadi.skdRG9p6Vqu3NRckp Currently my internet is very slow, though. So I'll update this issue when I finish downloading it and am able to reproduce. |
Similar logs related to issue: Exception type 1:
Exception type 2:
|
I was only able to reproduce these errors wiith a non-fresh instance of IDA. What this means is that you need to open a database, let it analyze to completion, close it, and then create a new database. This seems to happen right before the type-propagation phase (I think). To identify the "type-propagation" phase, it's right before the type library gets applied. After planting some logging, it seems to be happening when erasing the cache + blog when no data is specified. This is happening in the finally case for a try-finally block in the implementation of |
Some of these issues are potentially related to issue #65. |
I think PR #67 should fix the exception you mentioned, and 2 more that I found after being able to reproduce. There's a chance I didn't get them all as it depends on what hooks IDA executes (which depends on what it's analyzing). I was able to find and fix the following 3 exceptions:
Check out PR #67 whenever you get a chance, and let me know if it fixes these 3 issues, and if it introduces any newer exceptions that we haven't seen yet. |
(btw, sorry about the language barrier. I know I write English very "comprehensively" and so it might be difficult for you to understand.) |
@arizvisa Thanks~ So that's it, I understand. It does appear only when you open a non-latest instance. I use the newly opened instance and everything is normal. It doesn't affect the use. :) |
@gool123456, okay...Can you try out PR #67 to see if it fixes those errors that are happening during auto-analysis? This is the last PR to confirm, a lot of thanks for your patience. To try it out you can use git like the following which will check out the PR into its own branch.
Then you'll likely need to rebase the PR onto origin/master by doing:
Don't forget that you'll need to "open a non-latest instance". So pick something small the first time, and then open up another file. It should display the auto-analysis and not list any of the exceptions that you mentioned. Although I'm not 100% sure I got every single one of them as I was only able to identify the 3 that I mentioned. |
@arizvisa You are awesome, The RP#61 is right. It's okay, I'm happy to test it for you. :) |
I should thank you for writing such a good tool . Like IDA-minsc is really easy to use, it helps a lot in my work. |
@arizvisa I tried to let one ida instance analyze multiple samples, which is normal. |
Fixed a couple of compatibility issues with hooks that are being executed in response to IDA's auto-analysis.
Awesome. Thanks you for testing it out. I just merged the PR, so you can checkout |
Lol! Nice. ;-) I'm totally trying to beat sark (http://github.com/tmr232/sark) in users. :-) |
Feel free to close this issue whenever you feel like it as PR #67 has been merged. Also, don't be afraid to create a new issue when asking questions about how to use ida-minsc. |
Ha ! Okay, I already have a few friends using . I believe you can. 👍 🥇 |
@arizvisa The new version is much easier to use . Thanks! |
Awesome. Happy to help, and thanks for your contribution. ;-) Closing this issue as it's been resolved by PR #67 |
This issue manifested after fixing issue #59 with PR #60 (some prior conversation exists in those tickets, so start there if you need context for this).
The text was updated successfully, but these errors were encountered: