Bug 1156 - [stage1] Installer crashes in kvm x86-64 on PCMCIA probing on AMD hosts
Summary: [stage1] Installer crashes in kvm x86-64 on PCMCIA probing on AMD hosts
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Installer (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal major
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2011-05-05 14:11 CEST by Christiaan Welvaart
Modified: 2011-05-11 11:41 CEST (History)
2 users (show)

See Also:
Source RPM: drakx-installer-binaries
CVE:
Status comment:


Attachments

Description Christiaan Welvaart 2011-05-05 14:11:52 CEST
When trying to install mageia x86_64 (or mandrivalinux or caixa magica) in a KVM virtual machine, stage1 segfaults on:

PCMCIA: probing for Intel PCIC (ISA)

Maybe the function i365_probe() in pcmcia/probe.c should not be called on x86-64? Other installers do not have this problem.
Comment 1 Thierry Vignaud 2011-05-06 14:30:35 CEST
Does the i586 installer works better?

CC: (none) => thierry.vignaud
Source RPM: (none) => dr

Thierry Vignaud 2011-05-06 14:30:48 CEST

Keywords: (none) => NEEDINFO
Source RPM: dr => drakx-installer-stage1

Thierry Vignaud 2011-05-06 14:32:17 CEST

Summary: Installer crashes in kvm x86-64 on PCMCIA probing => [stage1] Installer crashes in kvm x86-64 on PCMCIA probing
Source RPM: drakx-installer-stage1 => drakx-installer-binaries

Comment 2 Thierry Vignaud 2011-05-06 14:32:48 CEST
Also could you provides more logs?
Thierry Vignaud 2011-05-06 14:33:02 CEST

CC: (none) => mageia

Comment 3 Thierry Vignaud 2011-05-06 14:53:17 CEST
Works nicely for me with KVM from FC14 & FC15.
Comment 4 Christiaan Welvaart 2011-05-06 15:52:43 CEST
The i586 installer works, with the same qemu options. This is on an AMD CPU (so kvm-amd module), using virt-manager (but I think I tried running qemu-kvm directly with various options, without luck).

What logs would you like to see? Before that line it says it probes PCI PCMCIA and doesn't find anything.
Comment 5 Thierry Vignaud 2011-05-06 17:09:31 CEST
I'm using kvm_intel, so it may be AMD specific.
I would recompile stage1 w/o the stuff that breaks running stage1 in a normal OS and run it in an installed VM.
Blino, any hint on debugging stage1?

Summary: [stage1] Installer crashes in kvm x86-64 on PCMCIA probing => [stage1] Installer crashes in kvm x86-64 on PCMCIA probing on AMD hosts

Comment 6 Christiaan Welvaart 2011-05-06 20:52:46 CEST
OK I debugged it, not sure if that's going to help however (=

In my cauldron VM (different host but also AMD CPU), this function i365_probe() segfaults on
  val = i365_get(sock, I365_IDENT);   // sock==0
on 
  val = inb(i365_base+1);

On the *host* where I ran the installer in VMs, my test program doesn't crash and outputs "not found".

Summary: host system: no error;   KVM guest: crash

Both hosts are running mageia, so qemu package from cauldron.
Comment 7 Thierry Vignaud 2011-05-07 11:06:46 CEST
For the record, what is your qemu version?

I'm thinking the best thing might be to not attempt at all to perform ISA detection on x86_64 anyway since I doubth there's been any x86_64 machine with such a controller. Blino, WDYT?
Comment 8 Thierry Vignaud 2011-05-08 18:15:46 CEST
Can you try latest Cauldron?
Comment 9 Christiaan Welvaart 2011-05-08 18:52:13 CEST
It gets 1 step further, now it segfaults at:
PCMCIA: probing for Databook TCIC-2 (ISA)..

kernel log shows:
stage1[30] general protection ip:42d029 sp:7fffff7d7490 error:0 in stage1[400000+58000]
Comment 10 Thierry Vignaud 2011-05-09 09:44:53 CEST
I guess I'll have to disable support for all ISA PCMCIA controllers on x86_64 then...
Comment 11 Thierry Vignaud 2011-05-09 21:01:27 CEST
OK, I've disabled probing the other ISA PCMCIA controller too.
Please test once drakx-installer-binaries-1.49-2 lands on your favorite mirror
(do no test using boot.iso as it hasn't been regenerated)
Comment 12 Christiaan Welvaart 2011-05-10 23:25:52 CEST
Maybe there were mirroring problems yesterday but today I could test with all.rdz and this time it worked: stage1 runs, and after selecting network install stage2 starts up.

I can't find changes in svn (svnweb), so not closing this bug yet.
Comment 14 Thierry Vignaud 2011-05-11 11:41:41 CEST
(In reply to comment #12)
> Maybe there were mirroring problems yesterday but today I could test with
> all.rdz and this time it worked: stage1 runs, and after selecting network
> install stage2 starts up.

Of course it works now since I told you that I've disabled other ISA PMCICA probes on x86_64 in prior comment

> I can't find changes in svn (svnweb), so not closing this bug yet.

Try harder:
http://svnweb.mageia.org/packages/cauldron/drakx-installer-binaries/current/

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.