Modify ↓
Ticket #20 (closed defect: fixed)
"written length does not match optimized length" with stabs enabled
| Reported by: | jlawson-yasm@… | Owned by: | mu@… |
|---|---|---|---|
| Priority: | P2 | Milestone: | 0.4.0 |
| Component: | Debug Format: stabs | Version: | other |
| Severity: | normal | Keywords: | |
| Cc: |
Description
I've encountered this internal error when attempting to compile some source code with stabs debugging output enabled. INTERNAL ERROR at libyasm/bytecode.c, line 839: written length does not match optimized length Abort I am using a current CVS checkout dated today (20031019). Command-line used was: yasm -f elf -m amd64 -p nasm -r nasm -g stabs plat/x86_64/x86ident.asm
Attachments
Change History
comment:2 Changed 7 years ago by jlawson-yasm@…
Removing "-g stabs" from the command-line allows the assembly to succeed without problems.
comment:3 Changed 7 years ago by mu@…
- Owner changed from peter@… to mu@…
- Component changed from core to debug format: stabs
This is a stabs bug. Taking ownership.
comment:4 Changed 7 years ago by mu@…
- Status changed from new to assigned
Broken Fix in modules/dbgfmt/stabs/stabs-dbgfmt.c r1.5. Only saving for compatibility with the previous incorrect design in case we find cases where the stabs n_value field is not 32 bits.
comment:5 Changed 7 years ago by mu@…
- Status changed from assigned to resolved
- Resolution set to fixed
comment:6 Changed 7 years ago by mu@…
Fixed in modules/dbgfmts/stabs/stabs-dbgfmt.c r1.6 by removing 16-byte stab support. Apparently existing 64-bit systems use truncated 32-bit n_value fields, and objdump -G appears to agree. stabs-dbgfmt.c now matches this behavior. Thanks, Jeff! Your code should now work with stabs. (As much as the stabs debugging works, anyway.)
Note: See
TracTickets for help on using
tickets.
