On Thu, 02 Jul 2009, David Brown wrote:

David,

I noticed some differences in the readelf output between the broken executable
and the test program.  Can you make sure that the build process for nwchem and
the test program are exactly the same.  I am suspecting that something in the
nwchem build process is not using all the correct options for segment remapping.
Specifically the hash style is different, while that shouldn't cause the problem
it might point to something being left out of the build for nwchem.

Eric

<snip>

> here's the ld version:
> # ld --version
> GNU ld version 2.17.50.0.6-9.el5 20061020
> Copyright 2005 Free Software Foundation, Inc.
> This program is free software; you may redistribute it under the terms of
> the GNU General Public License.  This program has absolutely no warranty.

This version of ld should work fine with the -zcommon-page-size and 
-zmax-page-size
linker options.

> 
> here's the readelf output of the binary that's producing the
> segmentation fault in libhugetlbfs
> # readelf -S nwchem-5.1.1/bin/LINUX64/nwchem
> There are 41 section headers, starting at offset 0x51a2f38:
> 
> Section Headers:
>   [Nr] Name              Type             Address           Offset
>        Size              EntSize          Flags  Link  Info  Align
>   [ 0]                   NULL             0000000000000000  00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 1] .interp           PROGBITS         0000000000400200  00000200
>        000000000000001c  0000000000000000   A       0     0     1
>   [ 2] .note.ABI-tag     NOTE             000000000040021c  0000021c
>        0000000000000020  0000000000000000   A       0     0     4
>   [ 3] .hash             HASH             0000000000400240  00000240
>        0000000000021edc  0000000000000004   A       4     0     8
>   [ 4] .dynsym           DYNSYM           0000000000422120  00022120
>        000000000006b670  0000000000000018   A       5     1     8
>   [ 5] .dynstr           STRTAB           000000000048d790  0008d790
>        00000000000418a3  0000000000000000   A       0     0     1
>   [ 6] .gnu.version      VERSYM           00000000004cf034  000cf034
>        0000000000008f34  0000000000000002   A       4     0     2
>   [ 7] .gnu.version_r    VERNEED          00000000004d7f68  000d7f68
>        00000000000001a0  0000000000000000   A       5    11     8
>   [ 8] .rela.dyn         RELA             00000000004d8108  000d8108
>        0000000000000078  0000000000000018   A       4     0     8
>   [ 9] .rela.plt         RELA             00000000004d8180  000d8180
>        0000000000002880  0000000000000018   A       4    11     8
>   [10] .init             PROGBITS         00000000004daa00  000daa00
>        0000000000000018  0000000000000000  AX       0     0     4
>   [11] .plt              PROGBITS         00000000004daa18  000daa18
>        0000000000001b10  0000000000000010  AX       0     0     4
>   [12] .text             PROGBITS         00000000004dc530  000dc530
>        0000000002a4a778  0000000000000000  AX       0     0     16
>   [13] .fini             PROGBITS         0000000002f26ca8  02b26ca8
>        000000000000000e  0000000000000000  AX       0     0     4
>   [14] .rodata           PROGBITS         0000000002f26cc0  02b26cc0
>        00000000005df8f0  0000000000000000   A       0     0     32
>   [15] .eh_frame_hdr     PROGBITS         00000000035065b0  031065b0
>        000000000000a27c  0000000000000000   A       0     0     4
>   [16] .eh_frame         PROGBITS         0000000003510830  03110830
>        0000000000031674  0000000000000000   A       0     0     8
>   [17] .ctors            PROGBITS         0000000003741ea8  03141ea8
>        0000000000000010  0000000000000000  WA       0     0     8
>   [18] .dtors            PROGBITS         0000000003741eb8  03141eb8
>        0000000000000010  0000000000000000  WA       0     0     8
>   [19] .jcr              PROGBITS         0000000003741ec8  03141ec8
>        0000000000000008  0000000000000000  WA       0     0     8
>   [20] .dynamic          DYNAMIC          0000000003741ed0  03141ed0
>        0000000000000290  0000000000000010  WA       5     0     8
>   [21] .got              PROGBITS         0000000003742160  03142160
>        0000000000000008  0000000000000008  WA       0     0     8
>   [22] .got.plt          PROGBITS         0000000003742168  03142168
>        0000000000000d98  0000000000000008  WA       0     0     8
>   [23] .data             PROGBITS         0000000003742f00  03142f00
>        0000000000de2218  0000000000000000  WA       0     0     32
>   [24] .bss              NOBITS           0000000004525120  03f25118
>        00000000050b7ab0  0000000000000000  WA       0     0     32
>   [25] .comment          PROGBITS         0000000000000000  03f25118
>        00000000000ca909  0000000000000000           0     0     1
>   [26] .debug_aranges    PROGBITS         0000000000000000  03fefa21
>        0000000000009cc0  0000000000000000           0     0     1
>   [27] .debug_pubnames   PROGBITS         0000000000000000  03ff96e1
>        0000000000015c7f  0000000000000000           0     0     1
>   [28] .debug_info       PROGBITS         0000000000000000  0400f360
>        00000000009bdfa6  0000000000000000           0     0     1
>   [29] .debug_abbrev     PROGBITS         0000000000000000  049cd306
>        00000000000358a6  0000000000000000           0     0     1
>   [30] .debug_line       PROGBITS         0000000000000000  04a02bac
>        0000000000371fa5  0000000000000000           0     0     1
>   [31] .debug_frame      PROGBITS         0000000000000000  04d74b58
>        000000000003dc48  0000000000000000           0     0     8
>   [32] .debug_str        PROGBITS         0000000000000000  04db27a0
>        0000000000015802  0000000000000001  MS       0     0     1
>   [33] .debug_loc        PROGBITS         0000000000000000  04dc7fa2
>        00000000001d0d5c  0000000000000000           0     0     1
>   [34] .debug_funcnames  PROGBITS         0000000000000000  04f98cfe
>        000000000000049c  0000000000000000           0     0     1
>   [35] .debug_typenames  PROGBITS         0000000000000000  04f9919a
>        000000000007e2bf  0000000000000000           0     0     1
>   [36] .debug_varnames   PROGBITS         0000000000000000  05017459
>        000000000013662b  0000000000000000           0     0     1
>   [37] .debug_ranges     PROGBITS         0000000000000000  0514da84
>        0000000000055320  0000000000000000           0     0     1
>   [38] .shstrtab         STRTAB           0000000000000000  051a2da4
>        000000000000018f  0000000000000000           0     0     1
>   [39] .symtab           SYMTAB           0000000000000000  051a3978
>        00000000000fdbd8  0000000000000018          40   24977     8
>   [40] .strtab           STRTAB           0000000000000000  052a1550
>        000000000008bc72  0000000000000000           0     0     1
> Key to Flags:
>   W (write), A (alloc), X (execute), M (merge), S (strings)
>   I (info), L (link order), G (group), x (unknown)
>   O (extra OS processing required) o (OS specific), p (processor specific)
> 
> And here's the readelf output of the test program that I finally got working.
> 
> # readelf -S test
> There are 29 section headers, starting at offset 0xcc0:
> 
> Section Headers:
>   [Nr] Name              Type             Address           Offset
>        Size              EntSize          Flags  Link  Info  Align
>   [ 0]                   NULL             0000000000000000  00000000
>        0000000000000000  0000000000000000           0     0     0
>   [ 1] .interp           PROGBITS         0000000000400200  00000200
>        000000000000001c  0000000000000000   A       0     0     1
>   [ 2] .note.ABI-tag     NOTE             000000000040021c  0000021c
>        0000000000000020  0000000000000000   A       0     0     4
>   [ 3] .gnu.hash         GNU_HASH         0000000000400240  00000240
>        000000000000003c  0000000000000000   A       4     0     8
>   [ 4] .dynsym           DYNSYM           0000000000400280  00000280
>        0000000000000138  0000000000000018   A       5     1     8
>   [ 5] .dynstr           STRTAB           00000000004003b8  000003b8
>        00000000000000a4  0000000000000000   A       0     0     1
>   [ 6] .gnu.version      VERSYM           000000000040045c  0000045c
>        000000000000001a  0000000000000002   A       4     0     2
>   [ 7] .gnu.version_r    VERNEED          0000000000400478  00000478
>        0000000000000020  0000000000000000   A       5     1     8
>   [ 8] .rela.dyn         RELA             0000000000400498  00000498
>        0000000000000018  0000000000000018   A       4     0     8
>   [ 9] .rela.plt         RELA             00000000004004b0  000004b0
>        0000000000000060  0000000000000018   A       4    11     8
>   [10] .init             PROGBITS         0000000000400510  00000510
>        0000000000000018  0000000000000000  AX       0     0     4
>   [11] .plt              PROGBITS         0000000000400528  00000528
>        0000000000000050  0000000000000010  AX       0     0     4
>   [12] .text             PROGBITS         0000000000400580  00000580
>        0000000000000248  0000000000000000  AX       0     0     16
>   [13] .fini             PROGBITS         00000000004007c8  000007c8
>        000000000000000e  0000000000000000  AX       0     0     4
>   [14] .rodata           PROGBITS         00000000004007d8  000007d8
>        0000000000000016  0000000000000000   A       0     0     8
>   [15] .eh_frame_hdr     PROGBITS         00000000004007f0  000007f0
>        0000000000000024  0000000000000000   A       0     0     4
>   [16] .eh_frame         PROGBITS         0000000000400818  00000818
>        0000000000000094  0000000000000000   A       0     0     8
>   [17] .ctors            PROGBITS         00000000008008b0  000008b0
>        0000000000000010  0000000000000000  WA       0     0     8
>   [18] .dtors            PROGBITS         00000000008008c0  000008c0
>        0000000000000010  0000000000000000  WA       0     0     8
>   [19] .jcr              PROGBITS         00000000008008d0  000008d0
>        0000000000000008  0000000000000000  WA       0     0     8
>   [20] .dynamic          DYNAMIC          00000000008008d8  000008d8
>        00000000000001a0  0000000000000010  WA       5     0     8
>   [21] .got              PROGBITS         0000000000800a78  00000a78
>        0000000000000008  0000000000000008  WA       0     0     8
>   [22] .got.plt          PROGBITS         0000000000800a80  00000a80
>        0000000000000038  0000000000000008  WA       0     0     8
>   [23] .data             PROGBITS         0000000000800ab8  00000ab8
>        0000000000000004  0000000000000000  WA       0     0     4
>   [24] .bss              NOBITS           0000000000800ac0  00000abc
>        0000000080000020  0000000000000000  WA       0     0     32
>   [25] .comment          PROGBITS         0000000000000000  00000abc
>        0000000000000114  0000000000000000           0     0     1
>   [26] .shstrtab         STRTAB           0000000000000000  00000bd0
>        00000000000000eb  0000000000000000           0     0     1
>   [27] .symtab           SYMTAB           0000000000000000  00001400
>        00000000000006a8  0000000000000018          28    50     8
>   [28] .strtab           STRTAB           0000000000000000  00001aa8
>        000000000000027d  0000000000000000           0     0     1
> Key to Flags:
>   W (write), A (alloc), X (execute), M (merge), S (strings)
>   I (info), L (link order), G (group), x (unknown)
>   O (extra OS processing required) o (OS specific), p (processor specific)
> 
> Any help would be nice.
> 
> Thanks,
> - David Brown
> 
> 
-- 
Eric B Munson
IBM Linux Technology Center
ebmun...@us.ibm.com

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Libhugetlbfs-devel mailing list
Libhugetlbfs-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libhugetlbfs-devel

Reply via email to