[ExM Users] debugging suggestions for non-static main-wrap segfault
Ketan Maheshwari
ketan at mcs.anl.gov
Thu Jul 31 16:29:12 CDT 2014
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> 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>
> 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>
>> 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
>>> > wrote:
>>>
>>>> Fixed now.
>>>>
>>>>
>>>> On Thu, Jul 31, 2014 at 3:37 PM, Wozniak, Justin M. <
>>>> 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
>>> 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/20140731/49bfd864/attachment.html>
More information about the ExM-user
mailing list