Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jan 2005 11:08:39 -0500 (EST)
From:      Rob Watt <rob@hudson-trading.com>
To:        Joseph Koshy <joseph.koshy@gmail.com>
Cc:        freebsd-amd64@freebsd.org
Subject:   Re: 32-bit binary compatibility on 5.3-amd64
Message-ID:  <20050128105930.V54223@daemon.mistermishap.net>
In-Reply-To: <84dead72050127201552e14c04@mail.gmail.com>
References:  <20050127100818.M46092@daemon.mistermishap.net> <84dead72050127201552e14c04@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
On Fri, 28 Jan 2005, Joseph Koshy wrote:

> > I've run the /usr/src/tools/lib32/build32.sh script, and applied some
> > other changes that people have reccomended, but basically our 32-bit
> > applications all segfault when run on the amd64 machines.
>
> Exactly what is the segfault?  Could you post the output of ktrace on an example
> process?
>

a ktrace is attached for this sample code:

#include <stdio.h>

int main(int argc, char *argv[])
{
    printf("char* %d\n", sizeof(char*));
    printf("int* %d\n", sizeof(int*));
    printf("void* %d\n", sizeof(void*));
    printf("long %d\n", sizeof(long));
    printf("double %d\n", sizeof(double));
    printf("int %d\n", sizeof(int));
    return 0;
}

this was compiled on a 5.3 i386 machine with:  g++ -g

-
Rob Watt
[-- Attachment #2 --]
:ktraceo`A{- :ktraceo`A&|.;7:ktraceo`A/| ./test-i386-53-native:ktraceo`Av6g/libexec/ld-elf32.so.14:test-i386-53-nativeo`A;H4:test-i386-53-nativeo`A@Q0:test-i386-53-nativeo`A(:test-i386-53-nativeo`A*:I(04:test-i386-53-nativeo`AI84:test-i386-53-nativeo`A [6
l(:test-i386-53-nativeo`A-H4:test-i386-53-nativeo`A3@T6
:test-i386-53-nativeo`A<(:test-i386-53-nativeo`AU4:test-i386-53-nativeo`AZ 4:test-i386-53-nativeo`A}@6g(:test-i386-53-nativeo`A6g/etc/libmap32.conf:test-i386-53-nativeo`A 4:test-i386-53-nativeo`A b#(:test-i386-53-nativeo`A6g/var/run/ld-elf32.so.hints:test-i386-53-nativeo`A:test-i386-53-nativeo`A0!@(:test-i386-53-nativeo`A6g/lib32/libstdc++.so.44:test-i386-53-nativeo`Aɀ!:test-i386-53-nativeo`AЀ0!@(:test-i386-53-nativeo`A؀ `/usr/lib32/libstdc++.so.4:test-i386-53-nativeo`A! :test-i386-53-nativeo`Af@(,:test-i386-53-nativeo`A@6g/usr/lib32/libstdc++.so.4$:test-i386-53-nativeo`A
:test-i386-53-nativeo`A
 !::test-i386-53-nativeo`A 4:test-i386-53-nativeo`A@(:test-i386-53-nativeo`AFDELF	pW4n
4 (؁XM
XM
XM
^
r	=

8
r
l
o:H8	{_

J
_
P
#

$W
.
(
C
j
A	7Y


^W
X

E/Q
A
kB!R 
g

	
&o
5$

dq _eM	i
Dmg~	&	
mA3
"
"	
e}
Co
	g?
0	oS\YF(
	



b.*>

s
a=`qW/
m
0P
t$
*

Ne
?	DSK

8n
)
N

	^
ns 
Z
"L	12ZL
,z	l	
x=
f
	Zi	
p<db
Uf

=
L		 ]

;;
&

/
k
)P	'


|
`



*
{~
uz
nN%
C



a\	w	

'	

;
1
D
z)U
	|

6	fr	T
l,

agNg
9	kB	5			?
2	`S%`

^
	Y	t	

k


hy
Y+

eM(
Z|U


	wCj}4
	\;	VI
8@	[	

i
Q=

8(35{
t

U

	E

s
va	
riWm		
	

		gI

|q

F	j
1
4
	R

I
|	5)b
q<

/
\Y/u[
2
;!%
	
`F,


|zG#]d"/
PxG
@> 1
6

	|
x LS	i


2
@
|
	%+
F
?

N
-8	9
	@
	K	_O\DAO
K)&[

LC		>-
O\M
$	1
<	8t
	l
5
:test-i386-53-nativeo`AGH:test-i386-53-nativeo`AM#
:test-i386-53-nativeo`AV( $:test-i386-53-nativeo`AY@6gJP(:test-i386-53-nativeo`A^J :test-i386-53-nativeo`Ay6gJP(:test-i386-53-nativeo`A}JH:test-i386-53-nativeo`AV`(4:test-i386-53-nativeo`A`(H$:test-i386-53-nativeo`AV(`:test-i386-53-nativeo`A(:test-i386-53-nativeo`AɁC:test-i386-53-nativeo`A΁$:test-i386-53-nativeo`A@0!@(:test-i386-53-nativeo`Ap':/lib32/libm.so.3:test-i386-53-nativeo`A!:test-i386-53-nativeo`A=N!@($:test-i386-53-nativeo`A	
/usr/lib32/libm.so.34:test-i386-53-nativeo`A! :test-i386-53-nativeo`A k`(,:test-i386-53-nativeo`A&/usr/lib32/libm.so.3:test-i386-53-nativeo`A.:test-i386-53-nativeo`A10$::test-i386-53-nativeo`A5 :test-i386-53-nativeo`A8(4:test-i386-53-nativeo`AC_ELF	p(44 (WW```==PPPoQwn6Mj[Cv&tqGcJpr.l_f:iTd?m31/z`%!ROy<)>"9H58D+B= V'AEKgsWe@h4*u,IZUbk{N7aP-Y#F|\X$~x](S0}2L;^8d!!p( 	 
`LP
НPIb02*`/#Sp#3#Cp\8`}[j@|`)`:0<@4#+$=p1*/<*	-3*bp.*PpA"d@|p8*.#hXDI0#6@#%-#+k bI\4,U,  0-u@7@;p 6Q@.*@O,*vQg0;*I 3*:A &$2-P7:`5#,$Qk3*0  !D?8o*w~Г-:
@,!`07PNPnP
8/-Pl*F/
pIfP0*; B0#%@[.A"/# -#!PB.r`2*9}*+Q0&P3#}$q$:test-i386-53-nativeo`AFH:test-i386-53-nativeo`AJ@;:test-i386-53-nativeo`AcP( :test-i386-53-nativeo`Af`RJ(:test-i386-53-nativeo`AiJ 4:test-i386-53-nativeo`A.J($:test-i386-53-nativeo`AJH:test-i386-53-nativeo`A(@`:test-i386-53-nativeo`A(4:test-i386-53-nativeo`A0$:test-i386-53-nativeo`A:test-i386-53-nativeo`A =N!@(4:test-i386-53-nativeo`A/lib32/libc.so.5:test-i386-53-nativeo`A!$:test-i386-53-nativeo`A0=N!@(:test-i386-53-nativeo`AƂR/usr/lib32/libc.so.5:test-i386-53-nativeo`Aς! 4:test-i386-53-nativeo`Aӂ`(,:test-i386-53-nativeo`A؂[/usr/lib32/libc.so.5:test-i386-53-nativeo`A߂$:test-i386-53-nativeo`A@=N:test-i386-53-nativeo`A :test-i386-53-nativeo`A(4:test-i386-53-nativeo`ApaELF	 4̘4 (&%&
&
&
6
6
H<[
k
k

OA

-M8	b	?	

	u7
}
|
	V
;k
\		\
j
\
`	vx	;I3
	bQ;	6		
:		Z)R	e		(
D	<		bz[M=	2y
	Z
zD
n$
<!*pRK_*?zn	8
J
T0	7	K	[
	r	N	#O5|9

Fu	#
]	mW	xJ_V
B&+
		e^	If
TkI	LhK3
]C
Std	7hA
o
O	h
]dT><	Pr	H
7\(	x(

W%
e,
2tk		B

 oT
kV-
^Z			i
=	+	<
z4
	9\


yV/		yqR	1H	z	ff$b
Q
3w	)	~hK
~a5	&
RC
-	2
g	QE)W^
l
N
p\v
	90{
d
g		O
c	
		j	|	)	
$
S]U|	a
	
<`
	~e
M*
E
	U	8	"		!	p%	
	y	]E	;	W
	

<,g	`!:t	ID	{ao	X	 	y)f		U	


1	@6
mOtu
a		K,[Hwu?-5		Gs
	
#x		$	G	2
3		
`
j\
y
y5

C&	M	|	0
v
.M
fppt:test-i386-53-nativeo`AH:test-i386-53-nativeo`AGI$:test-i386-53-nativeo`A(( :test-i386-53-nativeo`A,gJ$(:test-i386-53-nativeo`A0J 4:test-i386-53-nativeo`AJfJ$(:test-i386-53-nativeo`ALJH:test-i386-53-nativeo`AO9 $(P 
$:test-i386-53-nativeo`A\ $(H:test-i386-53-nativeo`Aj#p$(@4:test-i386-53-nativeo`Arp$(:test-i386-53-nativeo`Au*::test-i386-53-nativeo`A{:test-i386-53-nativeo`A#:!@(:test-i386-53-nativeo`A/lib32/libm.so.34:test-i386-53-nativeo`A!:test-i386-53-nativeo`AP!@(:test-i386-53-nativeo`A R/usr/lib32/libm.so.3$:test-i386-53-nativeo`A!H4:test-i386-53-nativeo`AAI:test-i386-53-nativeo`A΃%($:test-i386-53-nativeo`AՃp=NI%(:test-i386-53-nativeo`A܃IH$:test-i386-53-nativeo`A߃Q0u4:test-i386-53-nativeo`A%(4:test-i386-53-nativeo`A\I%(0u$:test-i386-53-nativeo`AwIH$:test-i386-53-nativeo`A@&)V4:test-i386-53-nativeo`A%(4:test-i386-53-nativeo`A‰@):I%($:test-i386-53-nativeo`AˉI $:test-i386-53-nativeo`AԉർJ(0
4:test-i386-53-nativeo`AJH4:test-i386-53-nativeo`A*U$:test-i386-53-nativeo`A%($:test-i386-53-nativeo`A`%:I%(U4:test-i386-53-nativeo`A#I 4:test-i386-53-nativeo`A9iJ(0
$:test-i386-53-nativeo`AQJ $:test-i386-53-nativeo`Ak`e$L,4:test-i386-53-nativeo`Ap $:test-i386-53-nativeo`A|T(:test-i386-53-nativeo`A~T :test-i386-53-nativeo`A,:test-i386-53-nativeo`A:test-i386-53-nativeo`A=N\:test-i386-53-nativeo`A(:test-i386-53-nativeo`A:test-i386-53-nativeo`A`jtest-i386-53-native.core
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050128105930.V54223>