Question & Answer
Question
1) Enable full core:
# ulimit -c unlimited
# chdev -l sys0 -a fullcore=true
2) Run CPAN
# perl -MCPAN -e 'shell' -e 'install Term::ReadLine::Perl'
<....>
Reading '/.cpan/sources/authors/01mailrc.txt.gz'
............................................................................DONE Reading '/.cpan/sources/modules/02packages.details.txt.gz' Database was generated on Wed, 27 Mar 2024 00:29:02 GMT .................................................................... Segmentation fault(coredump)
3) Examine error log
# errpt -a
LABEL: CORE_DUMP
PROGRAM NAME
perl5.34.1 STACK EXECUTION DISABLED 0 COME FROM ADDRESS REGISTER ?? PROCESSOR ID hw_fru_id: 1 hw_cpu_id: 15 ADDITIONAL INFORMATION
extend_br 2D0 extend_br 288 Unable to generate symptom string. 4) Examine stack trace
# dbx /usr/opt/perl5/bin/perl5.34.1 /core
(dbx) where
Segmentation fault in extend_brk at 0xd018af90 ($t1)
0xd018af90 (extend_brk+0x2d0) 90040004 stw r0,0x4(r4) (dbx) where extend_brk(internal error: assertion failed at line 3914 in file frame.c ??, internal error: assertion failed at line 3914 in file frame.c ??, internal error: assertion failed at line 3914 in file frame.c ??) at 0xd018af90 |
Answer
AIX does not set maxdata because it causes issues for AIX Perl-based commands.
One of the following solutions can usually resolve the issue:
1) Use the 64-bit module
2) export LDR_CNTRL=MAXDATA=0x80000000@DSA
3) Use a perl.rpm version (which is recommended for reasons that are listed in the AIX Perl Updates and Support for perl.rte technote), then use ldedit to permanently set the maxdata value
# ldedit -b maxdata=0x80000000 "path to perl.rpm Perl binary"
Recommendations for Perl application developers
- Always develop and test Perl applications with the latest version available on the AIX Toolbox for Linux®, which installs Perl in a unique path. The rpm version ensures the most prompt availability of latest Perl releases, and control over custom modules.
SUPPORT | ||||
---|---|---|---|---|
A) For all questions or issues with Toolbox packages, the support is handled by the AIX Open Source Team in the forum:
** Cases opened to address Toolbox problems will be canceled and users will be referred to the Open Source Forum.
B) If there is a problem with installing or updating perl.rte, or loading a perl.rte executable file, you can open an AIX Case (See C) for assistance. Examples of perl.rte issues supported through AIX Support:
C) Opening an AIX Support Case If you require more assistance, use the following step-by-step instructions to contact IBM to open a case for software with an active and valid support contract. 1. Document (or collect screen captures of) all symptoms, errors, and messages related to your issue. 2. Capture any logs or data relevant to the situation. 3. Contact IBM to open a case: -For electronic support, see the IBM Support Community: 4. Provide a clear, concise description of the issue. 5. If the system is accessible, collect a system snap, and upload all of the details and data for your case. - For guidance, see: Working with IBM AIX Support: Collecting snap data |
Related Information
Was this topic helpful?
Document Information
Modified date:
26 March 2024
UID
ibm16205882