binaryninja-api icon indicating copy to clipboard operation
binaryninja-api copied to clipboard

New Section Does Not Appear After Creation Unless Save and Reopen Database

Open utkonos opened this issue 3 months ago • 1 comments

Version and Platform (required):

  • Binary Ninja Version: 5.3.8657-dev Ultimate, a792480c
  • OS: macos
  • OS Version: 15.7
  • CPU Architecture: arm64

Bug Description: If I create a new section in a new memory region, the new section does not appear in the disassembly view. To see it, you must save the database and open it again. After that, the section is visible in all places you would expect it.

Steps To Reproduce:

  1. Open this database: quadratic galaxy rushes bidirectionally
  2. Open Memory Map
  3. Right click -> Add Memory Region...
  4. Set Source: File Backed Region
  5. Set Name: unpacked
  6. Set Start: 0x440000
  7. Select File: focused autumn marks infinitely
  8. Check Flags: RWX
  9. Open Linear Disassembly View
  10. Turn off Single Function View
  11. Navigate to 0x441000
  12. In the Memory Map, right click in Sections -> Add Section...
  13. Set Name: unpacked.text
  14. Set Start: 0x441000
  15. Set Length: 0x18000
  16. Set Semantics: Read-only code
  17. Click OK
  18. Look at Disassembly View and note that the section has not appeared.
  19. Save database
  20. Close database
  21. Open database
  22. Note that you can now see the new section.

Expected Behavior: Section should appear immediately after creation. You should not need to save, close, and open the database to see it.

Screenshots: Create region:

Image

Linear Disassembly View Before section created:

Image

Add section:

Image

Linear Disassembly View After section created:

Image

Linear Disassembly View After save and reopen:

Image

utkonos avatar Nov 22 '25 08:11 utkonos

Additional problem, probably related: if you undo, the undo does nothing until after, again save, close, open.

Before undo:

Image

After (look at history and then see that the section is still there in the view:

Image

utkonos avatar Nov 22 '25 16:11 utkonos