IBM Support

IV03484: FATAL ERROR IN XLCENTRY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Compiling the following template test case results in fatal
    error.
    
    $cat xlc_crash.cxx
    
    #include <inttypes.h>
    #include <string>
    #include <iostream>
    #include <vector>
    
    class DocumentsWriter {
    
    private:
    
      class ByteBlockPool;
      class CharBlockPool;
      class FieldMergeState;
    
      template<typename T>
      class BlockPool {
      protected:
        bool trackAllocations;
    
        int32_t numBuffer;
    
        int32_t bufferUpto;           // Which buffer we are upto
        int32_t blockSize;
    
        DocumentsWriter* parent;
      public:
        int32_t tOffset;          // Current head offset
        int32_t tUpto;             // Where we are in head buffer
        T* buffer;                              // Current head
    buffer
    
        virtual T* getNewBlock(bool trackAllocations) = 0;
    
        BlockPool(DocumentsWriter* _parent, int32_t _blockSize, bool
    trackAllocations)
    
        {
          this->blockSize = _blockSize;
          this->parent = _parent;
          bufferUpto = -1;
          tUpto = blockSize;
          tOffset = -blockSize;
          buffer = NULL;
          numBuffer = 0;
          this->trackAllocations = trackAllocations;
          buffer = NULL;
        }
        virtual ~BlockPool(){ }
    
        virtual void reset() = 0;
    
        void nextBuffer() {
        }
    
        friend class DocumentsWriter;
      };
    
      class CharBlockPool: public BlockPool<char>{
      public:
        CharBlockPool(DocumentsWriter* _parent);
        virtual ~CharBlockPool();
        char* getNewBlock(bool trackAllocations);
        void reset();
        friend class DocumentsWriter::FieldMergeState;
      };
    
      class ByteBlockPool: public BlockPool<uint8_t>{
      public:
        ByteBlockPool( bool _trackAllocations, DocumentsWriter*
    _parent);
        virtual ~ByteBlockPool();
        uint8_t* getNewBlock(bool trackAllocations);
        int32_t newSlice(const int32_t size);
        int32_t allocSlice(uint8_t* slice, const int32_t upto);
        void reset();
    
      };
    };
    
    
    ===== ACTUAL OUTPUT:
    
    $xlC xlc_crash.cxx -c
    1501-224 (S) fatal error in
    <path_to_compiler_binary>/exe/xlCentry: signal 11 received
    

Local fix

  • N/A
    

Problem summary

  • PROBLEM DESCRIPTION: An internal error may be generated with
    some uses of member template classes due to an invalid query.
    
    USERS AFFECTED: The problem would affect only users of member
    template classes.
    

Problem conclusion

  • Problem is fixed. Apply applicable service.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IV03484

  • Reported component name

    XL C++ AIX

  • Reported component ID

    5724U8100

  • Reported release

    A10

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2011-07-19

  • Closed date

    2011-09-19

  • Last modified date

    2011-09-20

Fix information

  • Fixed component name

    XL C++ AIX

  • Fixed component ID

    5724U8100

Applicable component levels

[{"Line of Business":{"code":"LOB08","label":"Cognitive Systems"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Product":{"code":"SSJT9L","label":"XL C\/C++"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"A.1"}]

Document Information

Modified date:
27 September 2021