Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#77870 - [nasm] Nasm-assembled asm code cannot be debugged in GDB.

Attached to Project: Arch Linux
Opened by Jhonatan Justin (tjhexf) - Thursday, 16 March 2023, 14:51 GMT
Last edited by Levente Polyak (anthraxx) - Sunday, 19 March 2023, 01:41 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Levente Polyak (anthraxx)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:
Current outdated package version creates code that cannot be debugged by GDB, causing internal errors on breakpoint:

warning: (Internal error: pc 0x401000 in read in CU, but not in symtab.)
warning: (Error: pc 0x401000 in address map, but not in symtab.)

asm code assembled by both Gnu GAS, and yasm, assemble correctly and debug correctly, only happening on version 1.15.05 of nasm


Additional info:
Nasm 1.15.05 (Latest on arch repos, outdated compared to upstream)
https://stackoverflow.com/questions/75713295/arch-linux-gdb-error-pc-0x401000-in-address-map-but-not-in-symtab-occured
(bug reported in stackoverflow)

Steps to reproduce:
write any valid assembly code;
assemble with nasm and link with ld;
run with gdb, attempt to create any breakpoint.
This task depends upon

Closed by  Levente Polyak (anthraxx)
Sunday, 19 March 2023, 01:41 GMT
Reason for closing:  Fixed
Additional comments about closing:  2.16.01-1

Loading...