All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jeremy Fitzhardinge <jeremy@goop.org>
To: "Sven Köhler" <sven.koehler@gmail.com>
Cc: xen-devel@lists.xensource.com, xen-users@lists.xensource.com
Subject: Re: Re: 2.6.28.7 domU: 32-bit emulation seems to be broken
Date: Sat, 14 Mar 2009 15:03:00 -0700	[thread overview]
Message-ID: <49BC2994.6040404@goop.org> (raw)
In-Reply-To: <49BB6F4A.90000@gmail.com>

Sven Köhler wrote:
> Jeremy Fitzhardinge schrieb:
>> Jeremy Fitzhardinge wrote:
>>> Sven Köhler wrote:
>>>> Also asking the devel-list for help:
>>>>
>>>> Sven Köhler schrieb:
>>>>> Hi,
>>>>>
>>>>> I cannot execute any 32-bit executables. Same problem with 
>>>>> 2.6.29-rc7.
>>>>>
>>>>> I compiled and linked them statically on another machine where 
>>>>> they work
>>>>> just fine! But inside the xen domU, they just segfault:
>>>>>
>>>>>
>>>>> a.out[32093] general protection ip:f7f7042f sp:ffc6f2d4 error:0
>>>>>
>>>>>
>>>>> Is this a knows problem? CONFIG_IA32_EMULATION is turned on!
>>>
>>> Hm, it works for me.  Can you give more detail about what you're 
>>> trying to run, the kernel .config and the distro?  dmesg output 
>>> would have some clues too. 
>>
>> Oh, and what's the CPU?  AMD?
>
> The host is running Xen version 3.3.0.
> The host CPU is:
>
> # cat /proc/cpuinfo
> processor    : 0
> vendor_id    : AuthenticAMD
> cpu family    : 15
> model        : 47
> model name    : AMD Athlon(tm) 64 Processor 3800+
> stepping    : 2
> cpu MHz        : 2399.822
> cache size    : 512 KB
> fpu        : yes
> fpu_exception    : yes
> cpuid level    : 1
> wp        : yes
> flags        : fpu de tsc msr pae cx8 apic mtrr cmov pat clflush mmx 
> fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow pni lahf_lm
> bogomips    : 4800.70
> TLB size    : 1024 4K pages
> clflush size    : 64
> cache_alignment    : 64
> address sizes    : 40 bits physical, 48 bits virtual
> power management: ts fid vid ttp tm stc
>
> The kernel is vanilla (except for the xen/blkfront: use blk_rq_map_sg 
> to generate ring entries patch). The config of my 2.6.28.7 is attached.
>
> The program I'm trying to run is:
> $ cat test.c
> #include <stdio.h>
>
> int main(void)
> {
>   printf("Hallo Welt!\n");
>   return 0;
> }
>
> I compiled it with "gcc --static test.c" on other box where the 
> program runs fine and copied the output to my domU. I checked with 
> ldd, that it really isn't a dynamic executable.
>
> The dmesg output on the domU is this mysterious:
> a.out[32093] general protection ip:f7f7042f sp:ffc6f2d4 error:0
>
> The line appears each time, that the program segfaults.

Has it ever worked?  If so, what kernel version did it stop working at?  
Does it fail with all 32-bit executables or just your "hello world"?

Can you get a coredump from the fault and see what the faulting 
instruction was?

    J

  reply	other threads:[~2009-03-14 22:03 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <gpe0vg$j67$1@ger.gmane.org>
2009-03-13 21:11 ` 2.6.28.7 domU: 32-bit emulation seems to be broken Sven Köhler
2009-03-14  0:38   ` Jeremy Fitzhardinge
2009-03-14  0:59     ` Jeremy Fitzhardinge
2009-03-14  8:48       ` Sven Köhler
2009-03-14 22:03         ` Jeremy Fitzhardinge [this message]
2009-03-15 11:39           ` Sven Köhler
2009-03-15 15:32             ` Jeremy Fitzhardinge
2009-03-15 17:43               ` Sven Köhler
2009-03-15 17:45                 ` Jeremy Fitzhardinge
2009-03-15 22:18                   ` [Xen-devel] " Sven Köhler
2009-03-15 22:21                     ` Sven Köhler
2009-03-15 17:48                 ` Jeremy Fitzhardinge
2009-03-15 12:24           ` Sven Köhler
2009-03-15 13:30             ` [Xen-users] " Boris Derzhavets
2009-03-15 15:32             ` Jeremy Fitzhardinge
2009-03-15 16:28             ` Jeremy Fitzhardinge
2009-03-15 17:27               ` [Xen-devel] " Sven Köhler
2009-03-16 20:20                 ` Jeremy Fitzhardinge
2009-03-16 20:23                   ` Jeremy Fitzhardinge
2009-03-16 22:29                     ` Sven Köhler
2009-03-16 22:36                       ` Jeremy Fitzhardinge
2009-03-17 14:08                         ` Sven Köhler
2009-03-17 16:52                           ` Jeremy Fitzhardinge
2009-03-17 20:31                             ` [Xen-devel] " Sven Köhler
2009-03-17 21:14                               ` Jeremy Fitzhardinge
2009-08-10 11:21                             ` Milan Holzäpfel
2009-08-10 12:59                               ` Christoph Egger
2009-08-11  7:36                                 ` Milan Holzäpfel
2009-08-14 20:55                                 ` Jeremy Fitzhardinge
2009-03-14  9:13     ` [Xen-devel] " Sven Köhler

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49BC2994.6040404@goop.org \
    --to=jeremy@goop.org \
    --cc=sven.koehler@gmail.com \
    --cc=xen-devel@lists.xensource.com \
    --cc=xen-users@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.