[valgrind] [Bug 479041] New: Executables without RW sections do not trigger debuginfo reading.

Paul Floyd bugzilla_noreply at kde.org
Tue Dec 26 18:07:23 GMT 2023


https://bugs.kde.org/show_bug.cgi?id=479041

            Bug ID: 479041
           Summary: Executables without RW sections do not trigger
                    debuginfo reading.
    Classification: Developer tools
           Product: valgrind
           Version: 3.22 GIT
          Platform: Other
                OS: macOS
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: jseward at acm.org
          Reporter: pjfloyd at wanadoo.fr
  Target Milestone: ---

It looks like macho can skip having a RW section. For instance

memcheck/tests/supp.c 

objdump -section-headers supp1

supp1:  file format Mach-O 64-bit x86-64

Sections:
Idx Name          Size      Address          Type
  0 __text        0000002f 0000000100000f80 TEXT 
  1 __unwind_info 00000048 0000000100000fb0 DATA

--56886-- di_notify_mmap-2: ./supp1
--56886-- di_notify_mmap-3: is_rx_map 1, is_rw_map 0, is_ro_map 0
--56886-- di_notify_mmap-4: noting details in DebugInfo* at 0x70000087C4A0
--56886-- di_notify_mmap-6: no dinfo loaded ./supp1 (no rx or no rw mapping)
--56886-- di_notify_mmap-0:
--56886-- di_notify_mmap-1: 0x100001000-0x100001fff r--
--56886-- di_notify_mmap-2: ./supp1
--56886-- di_notify_mmap-3: is_rx_map 0, is_rw_map 0, is_ro_map 1
--56886-- di_notify_mmap-4: noting details in DebugInfo* at 0x70000087C4A0
--56886-- di_notify_mmap-6: no dinfo loaded ./supp1 (no rx or no rw mapping)
(next is dyld)

If I add a global variable "int z = 3;" then that is

supp1:  file format Mach-O 64-bit x86-64

Sections:
Idx Name          Size      Address          Type
  0 __text        0000002f 0000000100000f80 TEXT 
  1 __unwind_info 00000048 0000000100000fb0 DATA 
  2 __data        00000004 0000000100001000 DATA

-- 
You are receiving this mail because:
You are watching all bug changes.



More information about the kde-mac mailing list