This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

xplor-nih segfaults


Hi all,

I have been able to build and run xplor-nih and can confirm the segfaults Jack is seeing.

In digging around in gdb trying to locate the place, I encountered a corrupt stack message from gdb.

The fault occurs at a point when memcpy is called at line 926 of of format.c. A format error is being responded to at this point. We know from running independently that the format statement is handled correctly, so I suspect the string holding the format or the node structure is getting clobbered. gdb was unable to print values for the parameters being passed to memcpy.

I was also able to run the application through valgrind up to the segfault. Valgrind states that there are definite memory leaks going on.

Here is valgrind info: Any suggestions at this point are welcome.

Regards,

Jerry

==12165== 357 bytes in 4 blocks are definitely lost in loss record 2 of 4
==12165==    at 0x1B909222: malloc (vg_replace_malloc.c:130)
==12165==    by 0x8096DBE: xmalloc (in /bin/bash)
==12165==    by 0x807EE91: (within /bin/bash)
==12165==    by 0x80813FC: (within /bin/bash)
==12165==    by 0x806C734: (within /bin/bash)
==12165==    by 0x806AFE4: execute_command_internal (in /bin/bash)
==12165==    by 0x806E2B4: (within /bin/bash)
==12165==    by 0x806B0F7: execute_command_internal (in /bin/bash)
==12165==    by 0x806D701: execute_command (in /bin/bash)
==12165==    by 0x806DEAA: (within /bin/bash)
==12165==    by 0x806AF63: execute_command_internal (in /bin/bash)
==12165==    by 0x806D701: execute_command (in /bin/bash)
==12165==
==12165== LEAK SUMMARY:
==12165==    definitely lost: 357 bytes in 4 blocks.
==12165==      possibly lost: 0 bytes in 0 blocks.
==12165==    still reachable: 15862 bytes in 633 blocks.
==12165==         suppressed: 0 bytes in 0 blocks.
==12165== Reachable blocks (those to which a pointer was found) are not shown.
==12165== To see them, rerun with: --show-reachable=yes
--12165--     TT/TC: 0 tc sectors discarded.
--12165--            6944 tt_fast misses.
--12165-- translate: new     6762 (106176 -> 1446579; ratio 136:10)
--12165--            discard 0 (0 -> 0; ratio 0:10).
--12165-- chainings: 4861 chainings, 0 unchainings.
--12165--  dispatch: 394194 jumps (bb entries); of them 69984 (17%) unchained.
--12165--            8/9174 major/minor sched events.
--12165-- reg-alloc: 957 t-req-spill, 261682+5408 orig+spill uis,
--12165--            33317 total-reg-rank
--12165--    sanity: 9 cheap, 1 expensive checks.
--12165--    ccalls: 24679 C calls, 58% saves+restores avoided (84678 bytes)
--12165--            33151 args, avg 0.87 setup instrs each (7968 bytes)
--12165--            0% clear the stack (73689 bytes)
--12165--            9731 retvals, 33% of reg-reg movs avoided (6408 bytes)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]