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

Justin M Wozniak wozniak at mcs.anl.gov
Fri Aug 1 11:09:06 CDT 2014


Try now.

On 08/01/2014 10:40 AM, Ketan Maheshwari wrote:
> Now working on BG. Justin, can you push the latest genleaf with 
> objlist on BG.
>
>
> On Thu, Jul 31, 2014 at 4:34 PM, Tim Armstrong 
> <tim.g.armstrong at gmail.com <mailto:tim.g.armstrong at gmail.com>> wrote:
>
>     Hm, ok, interesting.  I'm surprised that the compiler/linker
>     didn't kick up a fuss, but I guess it snuck by it somehow.
>
>     - Tim
>
>
>     On Thu, Jul 31, 2014 at 4:29 PM, Ketan Maheshwari
>     <ketan at mcs.anl.gov <mailto:ketan at mcs.anl.gov>> wrote:
>
>         Justin caught 1 by copying all the .o files from FS into
>         objfiles directory, no subdirs. Which lead to me adding -fPIC
>         in Makefile. Later, I explicitly made the dir hierarchy mkdir
>         -p objfiles/nab, pulled in respective .o files and built the
>         .so with them. The invalid address was likely from one of the
>         nab/*.o files (most likely molio.o) which got fixed.
>
>
>         On Thu, Jul 31, 2014 at 4:25 PM, Ketan Maheshwari
>         <ketan at mcs.anl.gov <mailto:ketan at mcs.anl.gov>> wrote:
>
>             Two things:
>
>             1. The nab module was not being compiled with -fPIC.
>             2. I did not use the object files from this module as they
>             end up in a subdir and I was just saying objfiles/*.o
>             instead of objfiles/*.o objfiles/nab/*.o.
>
>
>             On Thu, Jul 31, 2014 at 4:21 PM, Tim Armstrong
>             <tim.g.armstrong at gmail.com
>             <mailto:tim.g.armstrong at gmail.com>> wrote:
>
>                 What was the diagnosis in the end?
>
>
>                 On Thu, Jul 31, 2014 at 3:51 PM, Justin M Wozniak
>                 <wozniak at mcs.anl.gov <mailto:wozniak at mcs.anl.gov>> wrote:
>
>
>                     Oh good.
>
>                     On 07/31/2014 03:49 PM, Ketan Maheshwari wrote:
>>                     This has worked!
>>
>>                     Thanks,
>>                     Ketan
>>
>>
>>                     On Thu, Jul 31, 2014 at 3:41 PM, Maheshwari,
>>                     Ketan C. <ketan at mcs.anl.gov
>>                     <mailto:ketan at mcs.anl.gov>> wrote:
>>
>>                         Fixed now.
>>
>>
>>                         On Thu, Jul 31, 2014 at 3:37 PM, Wozniak,
>>                         Justin M. <wozniak at mcs.anl.gov
>>                         <mailto:wozniak at mcs.anl.gov>> wrote:
>>
>>                             On 07/31/2014 03:33 PM, Ketan Maheshwari
>>                             wrote:
>>                             >
>>                             > The make output shows things were
>>                             compiled with
>>                             > -fPIC:
>>                             /homes/ketan/dock6/install/makedock.out
>>
>>                             I get:
>>
>>                             /usr/bin/ld: objfiles/molio.o: relocation
>>                             R_X86_64_32 against
>>                             `.rodata.str1.1' can not be used when
>>                             making a shared object; recompile
>>                             with -fPIC
>>                             objfiles/molio.o: could not read symbols:
>>                             Bad value
>>
>>                             makedock.out contains:
>>
>>                             gcc -c -O3 -D_ANSI_SOURCE  molio.c
>>
>>                             --
>>                             Justin M Wozniak
>>
>>
>>
>
>
>                     -- 
>                     Justin M Wozniak
>
>
>                     _______________________________________________
>                     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
>
>
>
>
>
>


-- 
Justin M Wozniak

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


More information about the ExM-user mailing list