Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2006 19:45:00 +0400
From:      Boris Samorodov <bsam@ipt.ru>
To:        Divacky Roman <xdivac02@stud.fit.vutbr.cz>
Cc:        Yuri <yuri.pankov@gmail.com>, Alexander Leidinger <Alexander@Leidinger.net>, freebsd-emulation@freebsd.org
Subject:   Re: panic when running acroread on recent -CURRENT/amd64
Message-ID:  <80719011@bsam.ru>
In-Reply-To: <94953619@bsam.ru> (Boris Samorodov's message of "Sun, 20 Aug 2006 17:28:44 %2B0400")
References:  <b02aa3c10608181629kdaeb542i8fda838fbe3ada1@mail.gmail.com> <20060819104117.GA99504@stud.fit.vutbr.cz> <20060819134825.17a98fb1@Magellan.Leidinger.net> <16412869@bsam.ru> <20060819123837.GA3211@stud.fit.vutbr.cz> <71766606@bsam.ru> <20060820081421.GA52836@stud.fit.vutbr.cz> <94953619@bsam.ru>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 20 Aug 2006 17:28:44 +0400 Boris Samorodov wrote:
> On Sun, 20 Aug 2006 10:14:21 +0200 Divacky Roman wrote:
> > On Sun, Aug 20, 2006 at 04:53:37AM +0400, Boris Samorodov wrote:
> > > On Sat, 19 Aug 2006 14:38:37 +0200 Divacky Roman wrote:

> > > > www.stud.fit.vutbr.cz/~xdivac02/amd64.patch
> > > 
> > > > pls tell me if this works (it WONT work with 2.6 kernel because we lack the MD parts)
> > > 
> > > OK, I managed to test the patch on -current amd64. So far I tried
> > > acroread, linux-firefox and linux-opera. All of them are core dumping
> > > when start. It's a little bit better than without the patch when the
> > > system just reboots.
> >  
> > with 2.4 emulation all programs coredump? can you please compile -DDEBUG linuxolator
> > and send me (I'd prefer you put it on some web or somethign...) the debug output?
> >  
> > > BTW, after applying the patch I did only make kernel. Seems that it's
> > > enough. How can I do it faster? Maybe compile/install a linux kernel
> > > module?

> > for kernel module you need some patches which are not in -current, just apply
> > http://perforce.freebsd.org/fileDiffView.cgi?FSPC=//depot/projects/soc2006/rdivacky%5flinuxolator/kern/link%5felf%5fobj.c&REV=2&ACT=edit

> > and "cd /sys/modules/linux && make -DDEBUG && make install" then plain kldload linux should work
> > but pls dont forget to -DDEBUG

> Here are the results:
> ftp://ftp.ipt.ru/pub/amd64

> BTW, bash.core -- it's a result of running acroread.

Well, I just notice that -DDEBUG is not respected by make command. I
added this option to Makefile  [1]:
-----
# $FreeBSD: src/sys/modules/linux/Makefile,v 1.68 2006/08/15 13:01:36 netchild Exp $

.if ${MACHINE_ARCH} == "amd64"
SFX= 32
CFLAGS+=-DCOMPAT_IA32 -DCOMPAT_LINUX32 -DDEBUG  [1]
.endif
-----

Then I've got:
-----
# make
...
Warning: Object directory not changed from original /usr/src/sys/modules/linux
cc -O2 -fno-strict-aliasing -pipe -DCOMPAT_IA32 -DCOMPAT_LINUX32 -DDEBUG -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -I-   -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common  -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone  -mfpmath=387 -mno-sse -mno-sse2 -mno-mmx -mno-3dnow  -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -Wundef -fformat-extensions -c /usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c
/usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c: In function `linux_clone':
/usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:504: warning: cast from pointer to integer of different size
/usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size
/usr/src/sys/modules/linux/../../amd64/linux32/linux32_machdep.c:505: warning: cast from pointer to integer of different size
*** Error code 1

Stop in /usr/src/sys/modules/linux.
-----


WBR
-- 
Boris Samorodov (bsam)
Research Engineer, http://www.ipt.ru Telephone & Internet SP
FreeBSD committer, http://www.FreeBSD.org The Power To Serve



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