#110 X11-common (testing) crashes basic debian without message

v0.7.x (release)
closed-fixed
Henry N.
None
5
2007-05-26
2007-01-24
Anonymous
No

in short form, without update commands and sources.list changes:

colinux 0.7.1, 1.1.2007, slirp, tap, 128 mb max. ram, 128 mb swap, several different basic debian disk images tried:

apt-get dist-upgrade stable
apt-get dist-upgrade testing
apt-get install x11-common
crash

colinux version 0.6.4 works fine.

Discussion

  • Logged In: NO

    colinux 0.6.4 does NOT work fine: exactly same procedures used.

    colinux 0.6.3 DOES work fine.

     
  • Henry N.
    Henry N.
    2007-01-30

    Logged In: YES
    user_id=579204
    Originator: NO

    What is crashing? Complete Windows, one of colinux-*.exe daemons, or the colinux-daemon.exe self?

    If windows does continue running, then try to run debugging, before you start "apt-get install x11-common" on a separate windows prompt:
    colinux-debug-daemon.exe -d -p -s prints=31,misc=31 -f debug.xml
    After your crash, stop the debugging with CTRL-C and view in the debug.xml near the end. Is there a Kernel oops? Or any more informations?

    Can you separate the programs in x11-common, what does the crash? (I'm no debian user) Perhaps you can unpack the packet into /tmp and run any of the programs from command line?

    Generaly: Be shure, that you you don't install a X11 server or a program with direct hardware access, for sample a hardware detection program, that tries to detect your video card.

     
  • Logged In: YES
    user_id=771536
    Originator: NO

    I have replicated this issue with 0.7.1 with Debian unstable (128Mb RAM, 256Mb swap on cobd1, pcap-bridge on eth0, tap on eth1). My experience is that after the line "Preconfiguring packages", the colinux-daemon exits without any apparent error (nothing notable picked up by the colinux-debug-daemon either) . I believe the problem to lie in the preinst script for this package (due to the fact that it doesn't do anything after Preconfiguring) and taken the liberty of examining it - there's a call to "laptop-detect" which, when run manually, also causes colinux to exit in the same manner. To this end, I have removed the file /usr/sbin/laptop-detect (the preconfigure script checks it's presence before executing it, so there shouldn't be a dependency error for this particular script) and tried installing the package again - success.

     
  • Henry N.
    Henry N.
    2007-03-08

    Logged In: YES
    user_id=579204
    Originator: NO

    Very good.

    Please send me the Script /usr/sbin/laptop-detect (or a link where I can get it) and the complete parmeter list from preinstaller call.
    I would fix it, after see, what this script does. Think, it's an illegal access to bios memory or pci device...

    Henry

     
  • Logged In: YES
    user_id=771536
    Originator: NO

    "laptop-detect" appears to be a shell script in http://ftp.debian.org/debian/pool/main/l/laptop-detect/laptop-detect_0.12.1_i386.deb, and, as far as I can tell, identical in content to "laptop-detect.sh" in the tar file. The script just checks a couple of nodes inside /proc (which do not exist, so can't be the issue) and calls the binary "dmidecode" which my money is on as the cause of the failure. Here's the kicker though; now I've upgraded to 0.8 snapshot, I can't get the script, or any component inside it, to cause the crash.

     
  • Ryan Underwood
    Ryan Underwood
    2007-03-21

    Logged In: YES
    user_id=324742
    Originator: NO

    Upgrading libx11-6 causes the same crash.

     
  • Henry N.
    Henry N.
    2007-05-10

    • assigned_to: nobody --> henryn
    • status: open --> open-accepted
     
  • Henry N.
    Henry N.
    2007-05-10

    Logged In: YES
    user_id=579204
    Originator: NO

    Yes, 'dmidecode' tryed to mmap the /dev/mem and reading from there, and this is the bad idea under coLinux.

    /dev/mem should blocked (mmap_kmem in drivers/char/mem.c)

     
  • Henry N.
    Henry N.
    2007-05-11

    • status: open-accepted --> pending-fixed
     
  • Henry N.
    Henry N.
    2007-05-11

    Logged In: YES
    user_id=579204
    Originator: NO

    In source of dmidecode seen, that it maps memory and reads BIOS informations.
    All accesses direct to memory are not usable and would crash the host.

    This snapshot was fixed to disallow mapping /dev/mem. The application would get a bus error now:
    http://www.henrynestler.com/colinux/testing/stable-0.7.1/20070511-dmidecode/

    I'm never got this BSOD. It would be interesting, are this fixed for you? I mean for coLinux 0.7.1 with kernel 2.6.12 there.

     
    • status: pending-fixed --> closed-fixed
     
  • Logged In: YES
    user_id=1312539
    Originator: NO

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).