[ExM Users] debugging suggestions for non-static main-wrap segfault

Justin M Wozniak wozniak at mcs.anl.gov
Tue Jul 29 10:45:08 CDT 2014


Ok, it's in.  The Swift/K SVN is apparently down so it's not on the web 
yet but see the asciidoc.

On 07/29/2014 10:21 AM, Justin M Wozniak wrote:
>
> I thought VALGRIND was in the manual already but it isn't.  I will add 
> it now.  I will also talk about our GDB feature.
>
> On 07/29/2014 10:17 AM, Ketan Maheshwari wrote:
>> 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 <mailto: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 <mailto: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 <mailto:ExM-user at lists.mcs.anl.gov>
>>         https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>>
>>
>>
>>
>>
>> _______________________________________________
>> ExM-user mailing list
>> ExM-user at lists.mcs.anl.gov
>> https://lists.mcs.anl.gov/mailman/listinfo/exm-user
>
>
> -- 
> Justin M Wozniak


-- 
Justin M Wozniak

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/exm-user/attachments/20140729/57d5f750/attachment.html>


More information about the ExM-user mailing list