[ExM Users] debugging suggestions for non-static main-wrap segfault
Ketan Maheshwari
ketan at mcs.anl.gov
Tue Jul 29 10:17:50 CDT 2014
Thanks! Seems turbine script already had a placeholder for Valgrind so I
tried that and from the output, it seems tcl libraries are causing segfault
but I may be wrong. Attached is the Valgrind output.
On Tue, Jul 29, 2014 at 10:05 AM, Tim Armstrong <tim.g.armstrong at gmail.com>
wrote:
> I don't have any particular insight into the cause of the segfault, I
> can help with the debugger though.
>
> You need to point gdb at the tclsh that is being used by turbine (which is
> just a shell script). You can locate the correct tclsh by looking at TCLSH
> in scripts/turbine-config.sh in the turbine install directory.
>
> - TIm
>
>
> On Tue, Jul 29, 2014 at 10:00 AM, Ketan Maheshwari <ketan at mcs.anl.gov>
> wrote:
>
>> Hi,
>>
>> Trying to main-wrap DOCK 6.6 application for ATPESC, I get the build
>> right (seems) but things fail at runtime giving segfault:
>>
>> $ turbine -n 4 user-code.tcl
>>
>>
>> ===================================================================================
>> = BAD TERMINATION OF ONE OF YOUR APPLICATION PROCESSES
>> = EXIT CODE: 139
>> = CLEANING UP REMAINING PROCESSES
>> = YOU CAN IGNORE THE BELOW CLEANUP MESSAGES
>>
>> ===================================================================================
>> YOUR APPLICATION TERMINATED WITH THE EXIT STRING: Segmentation fault
>> (signal 11)
>> This typically refers to a problem with your application.
>> Please see the FAQ page for debugging suggestions
>>
>> This is on MCS machine. Any suggestion to debug this? I tried gdb but
>> it gives:
>>
>> "/nfs2/ketan/exm-install/turbine/bin/turbine": not in executable
>> format: File format not recognized
>>
>> With strace, I see some signs of missing files but not sure if that is
>> the cause of segfault. Attached is the strace output of:
>>
>> strace -o strace.out turbine -n 4 user-code.tcl
>>
>> The code has some MPI and pthread elements but does not use them as far
>> as I understand.
>>
>> Thanks for any suggestions.
>>
>> --
>> Ketan
>>
>> _______________________________________________
>> ExM-user mailing list
>> ExM-user at lists.mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140729/17adc317/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind.out
Type: application/octet-stream
Size: 13107 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140729/17adc317/attachment.obj>
More information about the ExM-user
mailing list