Question

We are trying to port our code from HPX to AIX but getting core dump while running exe.

its failing in some unknown function ptrgl_64._ptrgl.

> ptrgl_64._ptrgl() at 0x900000084da0e48
> dfile_Proc(o_record =
> 0x0000000400000004, fileType =
> "^O\377\377\377\377\377TH^O\377\377\377\377\377TQ^O\377\377\377\377\377Ta^O\377\377\377\377\377T}",
> dist_dest = (nil), indicator = '\0',
> i_acCounters = (nil)), line 621 in
> "DISTfile.c" main(i_argc = 4, i_argv =
> 0x0fffffffffff34e8), line 66 in
> "main_EXEC.c"

any idea about this issue?? Thanks in advance.

Was it helpful?

Solution

This is called pointer glue, and is used to call functions through a pointer on PowerPC. Because the pointer could point to a function in another module/shared object, the pointer glue is needed to set up the correct RTOC and environment pointer for that module and then jump to the function entry point. If the function pointer was not valid then it will likely crash in the pointer glue, since that is where the pointer is actually dereferenced.

See section A.3.3 of the PowerPC Compiler Writer's Guide if you are interested in the full details.

OTHER TIPS

ptrgl_64._ptrgl() at 0x900000084da0e48
dfile_Proc(o_record = 0x0000000400000004,
fileType ="^O\377\377\377\377\377TH^O\377\377\377\377\377TQ^O\377\377\377\377\377Ta^O\377\377\377\377\377T}",
dist_dest = (nil), indicator = '\0', i_acCounters = (nil)), line 621 in "DISTfile.c"
main(i_argc = 4, i_argv = 0x0fffffffffff34e8), line 66 in "main_EXEC.c"

Look at line 621 of DISTfile.c.
What is this line doing ?
Is it calling a function through a function pointer ?
What sort of problems might be caused by line 621 ?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top