From nobody@FreeBSD.org  Fri Sep 24 20:05:11 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 237A51065673
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Sep 2010 20:05:11 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 12D4B8FC0A
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Sep 2010 20:05:11 +0000 (UTC)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o8OK5ALU075888
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 24 Sep 2010 20:05:10 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.3/8.14.3/Submit) id o8OK5AeZ075887;
	Fri, 24 Sep 2010 20:05:10 GMT
	(envelope-from nobody)
Message-Id: <201009242005.o8OK5AeZ075887@www.freebsd.org>
Date: Fri, 24 Sep 2010 20:05:10 GMT
From: Thomas Dean <tomdean@speakeasy.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Linux Emulation Segmentation fault (core dumped)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         150922
>Category:       kern
>Synopsis:       [linux] Linux Emulation Segmentation fault (core dumped)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-emulation
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Sep 24 20:10:08 UTC 2010
>Closed-Date:    Mon Sep 27 04:30:10 UTC 2010
>Last-Modified:  Mon Sep 27 04:30:10 UTC 2010
>Originator:     Thomas Dean
>Release:        FreeBSD asus.tddhome 8.1-STABLE FreeBSD 8.1-STABLE
>Organization:
Home
>Environment:
FreeBSD asus.tddhome 8.1-STABLE FreeBSD 8.1-STABLE #1: Fri Sep 17 19:09:23 PDT 2010     tomdean@asus.tddhome:/usr/src/sys/GENERIC  i386
>Description:
Any linux binary causes a seg fault.  It appears all the binaries in /compat/linux/bin cause a seg fault.

asus# /compat/linux/bin/echo "asdf on FreeBSD"
Segmentation fault (core dumped)

I think I am missing something, but, what?
What can I do to help resolve this?

asus# kldstat
Id Refs Address    Size     Name
 1   13 0xc0400000 bc324c   kernel
 2    1 0xc7505000 68000    radeon.ko
 3    1 0xc7572000 14000    drm.ko
 4    1 0xc7d83000 26000    linux.ko

asus# mount
/dev/ad8s1a on / (ufs, local)
devfs on /dev (devfs, local, multilabel)
/dev/ad8s1d on /usr (ufs, local, soft-updates)
/dev/ad8s1g on /usr/home (ufs, local, soft-updates)
/dev/ad8s1e on /usr/local (ufs, local, soft-updates)
/dev/ad8s1f on /var (ufs, local, soft-updates)
linprocfs on /usr/compat/linux/proc (linprocfs, local)

I expected this to be funny, but, I include it anyway
asus# gdb -c echo.core
GNU gdb 6.1.1 [FreeBSD]
<snip>
Core was generated by `echo'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000081c in ?? ()
(gdb) bt
#0  0x0000081c in ?? ()
#1  0x2817b9c1 in ?? ()
#2  0x280704c4 in ?? ()
#3  0x28070f20 in ?? ()
#4  0x281be0d0 in ?? ()
#5  0x00000001 in ?? ()
..
#220 0x0000000f in ?? ()
#221 <signal handler called>
Cannot access memory at address 0x6d6f637b





Booting linux on the same machine, mounting the FreeBSD filesystems
Ubuntu> /FreeBSD/compat/linux/bin/echo "asdf on Linux"
asdf on Linux


>How-To-Repeat:
asus# /compat/linux/bin/echo "asdf"
Segmentation fault (core dumped)

>Fix:


>Release-Note:
>Audit-Trail:

From: "Thomas D. Dean" <tomdean@speakeasy.org>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: i386/150922: Linux Emulation Segmentation fault (core dumped)
Date: Fri, 24 Sep 2010 21:35:51 -0700

 I booted Ubuntu 10.04 on the same machine, built 'hello, world'.
 
 I rebooted FreeBSD 8.1 and mounted the Ubuntu file systems.
 
 # /Ubuntu/home/tomdean/work/hello
 Hello, world.
 
 But,
 
 # /Ubuntu/bin/echo "asdf"
 Segmentation fault (core dumped)
 
 'Hello', built on Ubuntu 10.04, runs on FreeBSD 8.1 with linux.ko loaded
 and linux_base-f10 installed.
 
 tomdean
 
Responsible-Changed-From-To: freebsd-i386->freebsd-emulation 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Mon Sep 27 00:52:34 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer(s). 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150922 
State-Changed-From-To: open->closed 
State-Changed-By: bsam 
State-Changed-When: Mon Sep 27 04:29:48 UTC 2010 
State-Changed-Why:  
Closed per submitter's request: 
http://lists.freebsd.org/pipermail/freebsd-emulation/2010-September/008089.html 

http://www.freebsd.org/cgi/query-pr.cgi?pr=150922 
>Unformatted:
