A fix is available
APAR status
Closed as program error.
Error description
Debug information generated for variable length arrays is incorrect. When using a debugger to look at variable length array values, incorrect data is output. === TEST CASE === #include <stdio.h> #include <memory.h> #include <string.h> int main() { char CCC[strlen("11111111")]; memset(CCC, 0, sizeof(CCC)); sprintf(CCC, "abcdef"); return 0; } $ dbx test_case reading symbolic information ... (dbx) stop in main (dbx) run ... stopped in main at line 9 9 sprintf(CCC, "abcdef"); (dbx) step (dbx) p CCC "/ユ" (dbx)
Local fix
Problem summary
PROBLEM DESCRIPTION: Debug information for variable length arrays - both stabstrings and DWARF - is incorrect, and not recognized by debuggers. USERS AFFECTED: Users wishing to debug variable length arrays using -g generated debug information.
Problem conclusion
The debug information generated was corrected, and variable length arrays are now recognized by debuggers correctly.
Temporary fix
Comments
APAR Information
APAR number
LI78469
Reported component name
XL C/C++ FOR LI
Reported component ID
5725C7300
Reported release
D10
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-02-25
Closed date
2015-02-25
Last modified date
2015-02-25
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
XL C/C++ FOR LI
Fixed component ID
5725C7300
Applicable component levels
RD10 PSN IV64517
UP06/09/13
[{"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SSXVZZ","label":"XL C\/C++ for Linux"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"13.1","Line of Business":{"code":"LOB57","label":"Power"}}]
Document Information
Modified date:
17 October 2021