View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0034430 | Lazarus | Debugger | public | 2018-10-18 19:36 | 2021-01-10 12:07 |
Reporter | Cyrax | Assigned To | Martin Friebe | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | assigned | Resolution | open | ||
Platform | Linux x86_64 | OS | Arch | ||
Product Version | 2.1 (SVN) | ||||
Summary | 0034430: Assembler window is empty and "Cannot access memory at address <x>". | ||||
Description | When debugging a simple console program, Assembler Window can't display disassembly at the start of main program. Debug output window will display these error lines : <-data-disassemble -s 134516676 -e 134516677 -- 0> ^error,msg="Cannot access memory at address 0x8048fc4" (gdb) <-data-disassemble -s 134516560 -e 134517088 -- 0> ^error,msg="Cannot access memory at address 0x8048f50" (gdb) <-data-disassemble -s 134516380 -e 134516381 -- 0> ^error,msg="Cannot access memory at address 0x8048e9c" (gdb) <-data-disassemble -s 134516264 -e 134516560 -- 0> ^error,msg="Cannot access memory at address 0x8048e28" (gdb) <-data-disassemble -s 134516676 -e 134516677 -- 0> ^error,msg="Cannot access memory at address 0x8048fc4" (gdb) <-data-disassemble -s 134516560 -e 134517088 -- 0> ^error,msg="Cannot access memory at address 0x8048f50" (gdb) <-data-disassemble -s 134516380 -e 134516381 -- 0> ^error,msg="Cannot access memory at address 0x8048e9c" (gdb) Only when stepping into subroutine at the different unit, Assembler Window will display correct disassembly. And when going back to main program, Assembler Window will show nothing. This bad behaviour will disappear when adding additional clauses to the main program. | ||||
Steps To Reproduce | Attached test project (project1.zip) will demonstrate this problem. It will disappear, when you enable the define DEBUG_PADDING at the main source. | ||||
Additional Information | This was tested by building the attached test project as an 32-bit program on top 64-bit Arch Linux and debugging it via 32-bit Lazarus. Attached extra files which are debug log from Lazarus and output from Debug output window (debug info.zip) and main program and unit1 assembler files. ---- I have FPC 3.3.1-r39935 and Lazarus 2.1.0 r59300. | ||||
Tags | No tags attached. | ||||
Fixed in Revision | |||||
LazTarget | |||||
Widgetset | GTK 2 | ||||
Attached Files |
|
related to | 0034475 | resolved | Florian | FPC | When exception is raised and its not handled properly, the stack trace doesn't show correct file names and their numbers. |
related to | 0032240 | assigned | Martin Friebe | Lazarus | Continuous attempts to disassemble AVR target in Lazarus when stopped at break point |
|
|
|
Link to thread where there is discussion on this : https://forum.lazarus.freepascal.org/index.php/topic,42882.msg299529.html#msg299529 |
|
|
|
|
|
|
|
|
|
|
|
|
|
I can't reproduce this bug in the 64-bit environment at all. See attached x86_64 files for more info. |
|
Using GDB 8.2 from Arch repositories. |
|
When running directly at terminal window, GDB shows correct assembler output. No errors are shown. |
|
Related to bug report https://bugs.freepascal.org/view.php?id=34475 |
|
As on FPC trunk r42276 and Lazarus trunk r61453, this bug got fixed in the mean time. GDB is at 8.3 version. binutils is at 2.32-2 version. |
Date Modified | Username | Field | Change |
---|---|---|---|
2018-10-18 19:36 | Cyrax | New Issue | |
2018-10-18 19:36 | Cyrax | Status | new => assigned |
2018-10-18 19:36 | Cyrax | Assigned To | => Martin Friebe |
2018-10-18 19:36 | Cyrax | File Added: project1.zip | |
2018-10-18 19:37 | Cyrax | Note Added: 0111457 | |
2018-10-18 19:38 | Cyrax | File Added: debug info.zip | |
2018-10-18 19:38 | Cyrax | File Added: project1.s-linux-i386.zip | |
2018-10-18 19:38 | Cyrax | File Added: unit1.s-linux-i386.zip | |
2018-10-18 19:55 | Cyrax | File Added: project1.s-linux-x86-64.zip | |
2018-10-18 19:55 | Cyrax | File Added: unit1.s-linux-x86-64.zip | |
2018-10-18 20:01 | Cyrax | File Added: debug info x86_64.zip | |
2018-10-18 20:02 | Cyrax | Note Added: 0111458 | |
2018-10-20 16:06 | Cyrax | Note Added: 0111487 | |
2018-10-26 16:04 | Cyrax | Note Added: 0111580 | |
2018-11-04 04:48 | Cyrax | Note Added: 0111774 | |
2018-11-04 08:46 | Juha Manninen | Relationship added | related to 0034475 |
2019-06-23 23:07 | Cyrax | Note Added: 0116879 | |
2021-01-10 12:07 | Martin Friebe | Relationship added | related to 0032240 |