Topic
2 replies Latest Post - ‏2011-06-02T17:54:59Z by davidjmhansen
RAAZ123
RAAZ123
9 Posts
ACCEPTED ANSWER

Pinned topic Illegal Instruction (Core dump) occurs on AIX 6.1

‏2011-05-26T09:33:32Z |
While porting an application from AIX 5.3 to AIX 6.1, All the binaries are rebuilt successfully on 6.1 and when we try to execute them Illegal Instruction (Core dump) is occuring. and some times Memory fault(coredump) is occurring.

The compiler is used for building in 6.1 is xlc version 11.1 and for the 5.3 is xlc version 6

NOTE: The binaries built on 5.3 and deployed directly on 6.1 are running fine.

Any pointers to this problem is highly appreciated.
Updated on 2011-06-02T17:54:59Z at 2011-06-02T17:54:59Z by davidjmhansen
  • haubi
    haubi
    37 Posts
    ACCEPTED ANSWER

    Re: Illegal Instruction (Core dump) occurs on AIX 6.1

    ‏2011-05-31T09:35:00Z  in response to RAAZ123
    > While porting an application from AIX 5.3 to AIX 6.1, All the binaries are rebuilt successfully on 6.1 and when we try to execute them Illegal Instruction (Core dump) is occuring. and some times Memory fault(coredump) is occurring.

    Did you try some debugger already to get some more hints on where exactly the coredump occurs?

    > The compiler is used for building in 6.1 is xlc version 11.1 and for the 5.3 is xlc version 6

    Need to say that I've stopped using xlc long time ago.

    > NOTE: The binaries built on 5.3 and deployed directly on 6.1 are running fine.

    Dumb suggestion: What if you compile the object files on AIX 5.3, but link the binaries on AIX 6.1?

    /haubi/
  • davidjmhansen
    davidjmhansen
    2 Posts
    ACCEPTED ANSWER

    Re: Illegal Instruction (Core dump) occurs on AIX 6.1

    ‏2011-06-02T17:54:59Z  in response to RAAZ123
    I had this issue. The problem happened when I linked the executable with libraries compiled with the -qarch=pwr5 argument. The programs were compiled with the -qarch=pwr7 argument. When the pwr7 program was linkes witgh pwr5 libraries, the program dumped core.

    To fix, I recompiled all libraries with -q=pwr7.