#332: icc-10.0 32bit unexpected address for .text
--------------------+-------------------------------------------------------
 Reporter:  rurban  |       Owner:     
     Type:  bug     |      Status:  new
 Priority:  normal  |   Milestone:     
Component:  none    |     Version:     
 Severity:  medium  |    Keywords:     
     Lang:          |       Patch:     
 Platform:  linux   |  
--------------------+-------------------------------------------------------

Old description:

> '''Expected = 0x08049000, actual = 0x08048000'''
>
> {{{
> rur...@gentoo-vm ~/parrot $ uname -a
> Linux gentoo-vm 2.6.23-gentoo-r3 #1 SMP Mon Dec 31 12:00:09 EST 2007 i686
> Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux
> }}}
>
> emerge icc[[BR]]
> perl Configure.pl --cc=icc --ld=icc & make[[BR]]
> emerge idb[[BR]]
> export PATH=$PATH:/opt/intel/cc/10.0.026/bin[[BR]]
>
> {{{
> rur...@gentoo-vm ~/parrot $ idb --args ./miniparrot config_lib.pasm
> Intel(R) Debugger for applications running on IA-32, Version 31, Build
> 20070716
> ------------------
> object file name: ./miniparrot
> INTERNAL ERROR: unexpected address for .text of
> /usr/src/perl/parrot/miniparrot
> Expected = 0x08049000, actual = 0x08048000, diff = 0xfffff000
> Reading symbols from /usr/src/perl/parrot/miniparrot...done.
> (idb) run
> INTERNAL ERROR: unexpected address for .text of
> /usr/src/perl/parrot/miniparrot
> Expected = 0x08049000, actual = 0x08048000, diff = 0xfffff000
> Starting program: /usr/src/perl/parrot/miniparrot
> Program received signal SIGSEGV
>
> (idb)
> }}}
>
> I guess we need some linker hint here.

New description:

 '''Expected = 0x08049000, actual = 0x08048000'''

 {{{
 rur...@gentoo-vm ~/parrot $ uname -a
 Linux gentoo-vm 2.6.23-gentoo-r3 #1 SMP Mon Dec 31 12:00:09 EST 2007 i686
 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux
 }}}

 emerge icc[[BR]]
 perl Configure.pl --cc=icc --ld=icc & make[[BR]]
 emerge idb[[BR]]
 export PATH=$PATH:/opt/intel/cc/10.0.026/bin[[BR]]

 {{{
 rur...@gentoo-vm ~/parrot $ idb --args ./miniparrot config_lib.pasm
 Intel(R) Debugger for applications running on IA-32, Version 31, Build
 20070716
 ------------------
 object file name: ./miniparrot
 INTERNAL ERROR: unexpected address for .text of
 /usr/src/perl/parrot/miniparrot
 Expected = 0x08049000, actual = 0x08048000, diff = 0xfffff000
 Reading symbols from /usr/src/perl/parrot/miniparrot...done.
 (idb) run
 INTERNAL ERROR: unexpected address for .text of
 /usr/src/perl/parrot/miniparrot
 Expected = 0x08049000, actual = 0x08048000, diff = 0xfffff000
 Starting program: /usr/src/perl/parrot/miniparrot
 Program received signal SIGSEGV

 (idb)
 }}}

 I guess we need some linker hint here.

 {{{
 Summary of my parrot 0.9.0 (r0) configuration:
   configdate='Sat Feb 14 13:11:11 2009 GMT'
   Platform:
     osname=linux, archname=i686-linux
     jitcapable=1, jitarchname=i386-linux,
     jitosname=LINUX, jitcpuarch=i386
     execcapable=1
     perl=/usr/bin/perl5.8.8
   Compiler:
     cc='icc', ccflags=' -pipe -Wdeclaration-after-statement
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -wd269
 -wd1572 -wd1599 -wd181 -wd869 -wd981 -wd1419 -wd117 -wd810 -wd177 -wd1296
 -Wall -Wcheck -w2 -Wabi -Wcomment -Wdeprecated -Wmain -Wmissing-prototypes
 -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wuninitialized
 -Wunknown-pragmas -Wunused-function -Wunused-variable -we147 -D_GNU_SOURCE
 -DHAS_GETTEXT',
   Linker and Libraries:
     ld='icc', ldflags=' -L/usr/local/lib',
     cc_ldflags='',
     libs='-lpthread -lnsl -ldl -lm -lcrypt -lutil -lgmp -lreadline '
   Dynamic Linking:
     share_ext='.so', ld_share_flags=' -shared -g -pipe -fexceptions
 -fPIC',
     load_ext='.so', ld_load_flags=' -shared -g -pipe -fexceptions -fPIC'
   Types:
     iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
     ptrsize=4, ptr_alignment=1 byteorder=1234,
     nv=double, numvalsize=8, doublesize=8
 }}}

--

Comment(by rurban):

 {{{
 Summary of my parrot 0.9.0 (r0) configuration:
   configdate='Sat Feb 14 13:11:11 2009 GMT'
   Platform:
     osname=linux, archname=i686-linux
     jitcapable=1, jitarchname=i386-linux,
     jitosname=LINUX, jitcpuarch=i386
     execcapable=1
     perl=/usr/bin/perl5.8.8
   Compiler:
     cc='icc', ccflags=' -pipe -Wdeclaration-after-statement
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -wd269
 -wd1572 -wd1599 -wd181 -wd869 -wd981 -wd1419 -wd117 -wd810 -wd177 -wd1296
 -Wall -Wcheck -w2 -Wabi -Wcomment -Wdeprecated -Wmain -Wmissing-prototypes
 -Wpointer-arith -Wreturn-type -Wstrict-prototypes -Wuninitialized
 -Wunknown-pragmas -Wunused-function -Wunused-variable -we147 -D_GNU_SOURCE
 -DHAS_GETTEXT',
   Linker and Libraries:
     ld='icc', ldflags=' -L/usr/local/lib',
     cc_ldflags='',
     libs='-lpthread -lnsl -ldl -lm -lcrypt -lutil -lgmp -lreadline '
   Dynamic Linking:
     share_ext='.so', ld_share_flags=' -shared -g -pipe -fexceptions
 -fPIC',
     load_ext='.so', ld_load_flags=' -shared -g -pipe -fexceptions -fPIC'
   Types:
     iv=long, intvalsize=4, intsize=4, opcode_t=long, opcode_t_size=4,
     ptrsize=4, ptr_alignment=1 byteorder=1234,
     nv=double, numvalsize=8, doublesize=8
 }}}

-- 
Ticket URL: <https://trac.parrot.org/parrot/ticket/332#comment:1>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets

Reply via email to