[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/10316] New: pei-i386 --all-headers Segfault

From: t dot sailer at alumni dot ethz dot ch
Subject: [Bug binutils/10316] New: pei-i386 --all-headers Segfault
Date: 23 Jun 2009 09:46:03 -0000

i686-pc-mingw32-objdump -x wpcap.dll.debug                                     

wpcap.dll.debug:     file format pei-i386
architecture: i386, flags 0x0000013b:                                           
start address 0x662410c0                                                        

Characteristics 0x2106
        line numbers stripped
        32 bit words         

Time/Date               Tue Jun 23 11:14:21 2009
Magic                   010b    (PE32)          
MajorLinkerVersion      2                       
MinorLinkerVersion      56                      
SizeOfCode              0001ce00                
SizeOfInitializedData   00032e00                
SizeOfUninitializedData 00007e00                
AddressOfEntryPoint     00000000000010c0        
BaseOfCode              0000000000001000        
BaseOfData              000000000001e000        
ImageBase               0000000066240000        
SectionAlignment        0000000000001000        
FileAlignment           0000000000000200        
MajorOSystemVersion     4                       
MinorOSystemVersion     0                       
MajorImageVersion       1                       
MinorImageVersion       0                       
MajorSubsystemVersion   4                       
MinorSubsystemVersion   0                       
Win32Version            00000000                
SizeOfImage             00048000                
SizeOfHeaders           000003d0                
CheckSum                00016794                
Subsystem               00000003        (Windows CUI)
DllCharacteristics      00000000                     
SizeOfStackReserve      0000000000200000             
SizeOfStackCommit       0000000000001000             
SizeOfHeapReserve       0000000000100000             
SizeOfHeapCommit        0000000000001000             
LoaderFlags             00000000                     
NumberOfRvaAndSizes     00000010                     

The Data Directory
Entry 0 000000000003a000 000008e3 Export Directory [.edata (or where ever we
found it)]                                                                      
Entry 1 000000000003b000 00000ce0 Import Directory [parts of .idata]            
Entry 2 0000000000000000 00000000 Resource Directory [.rsrc]                    
Entry 3 0000000000000000 00000000 Exception Directory [.pdata]                  
Entry 4 0000000000000000 00000000 Security Directory                            
Entry 5 000000000003c000 000021e0 Base Relocation Directory [.reloc]            
Entry 6 0000000000000000 00000000 Debug Directory                               
Entry 7 0000000000000000 00000000 Description Directory                         
Entry 8 0000000000000000 00000000 Special Directory
Entry 9 0000000000000000 00000000 Thread Storage Directory [.tls]
Entry a 0000000000000000 00000000 Load Configuration Directory
Entry b 0000000000000000 00000000 Bound Import Directory
Entry c 0000000000000000 00000000 Import Address Table Directory
Entry d 0000000000000000 00000000 Delay Import Directory
Entry e 0000000000000000 00000000 CLR Runtime Header
Entry f 0000000000000000 00000000 Reserved

There is an import table in .idata at 0x6627b000

The Import Tables (interpreted .idata section contents)
 vma:            Hint    Time      Forward  DLL       First
                 Table   Stamp     Chain    Name      Thunk
 0003b000       00000000 00000000 00000000 00000000 00000000

There is an export table in .edata at 0x6627a000

The Export Tables (interpreted .edata section contents)

Export Flags                    0
Time/Date stamp                 0
Major/Minor                     0/0
Segmentation fault

I would have expected objdump not to segfault.

The file wpcap.dll.debug was created from wpcap.dll by
i686-pc-mingw32-objcopy --only-keep-debug wpcap.dll wpcap.dll.debug
i686-pc-mingw32-objcopy --add-gnu-debuglink=wpcap.dll.debug --strip-unneeded

wpcap.dll itself was compiled with 
i686-pc-mingw32-gcc -v
Using built-in specs.
Target: i686-pc-mingw32
Configured with: ../configure --prefix=/usr --bindir=/usr/bin
--includedir=/usr/include --libdir=/usr/lib64 --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --build=x86_64-redhat-linux-gnu
--host=x86_64-redhat-linux-gnu --target=i686-pc-mingw32 --with-gnu-as
--with-gnu-ld --verbose --without-newlib --disable-multilib --with-system-zlib
--disable-nls --without-included-gettext --disable-win32-registry
Thread model: win32
gcc version 4.4.0 20090319 (experimental) (GCC)

           Summary: pei-i386 --all-headers Segfault
           Product: binutils
           Version: 2.19
            Status: NEW
          Severity: normal
          Priority: P2
         Component: binutils
        AssignedTo: unassigned at sources dot redhat dot com
        ReportedBy: t dot sailer at alumni dot ethz dot ch
                CC: bug-binutils at gnu dot org
 GCC build triplet: x86_64-redhat-linux
  GCC host triplet: x86_64-redhat-linux
GCC target triplet: i686-pc-mingw32


------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]