Bug 357285

Summary: sax2: unable to create initial xorg.conf in Live system
Product: [openSUSE] openSUSE 11.0 Reporter: Stephan Kulow <coolo>
Component: SaX2Assignee: Marcus Schaefer <ms>
Status: RESOLVED DUPLICATE QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: sndirsch, snwint
Version: Alpha 2   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: var_log_SaX.log.png
qemu-11.0-alpha1.sh

Description Stephan Kulow 2008-01-30 15:42:04 UTC
I tried the latest factory live cd with qemu:
/work/users/coolo/live/kiwi-image-livecd-kde-openSUSE-11.0.i686-2.4.iso

And X tells me "please specify busids for all framebuffer devices" - no idea what to do ;(
Comment 1 Stefan Dirsch 2008-01-31 15:33:07 UTC
sax# sax2 -a
SaX: initializing pleast wait ...
SaX: no X-Xserver is running
SaX: will start own server if needed

SaX: something went wrong wile X was called with -probeonly
SaX: try to call 'sax2 -p' and select a singel device ?
abort

# sax -p
[...] cirrus

/var/log/Xorg.0.log
-------------------
[...]
(EE) Unable to locate/open config file
[...]
Fatal server error:
Cannot run in framebuffer mode. Please specify busIDs for all framebuffer devices.

So the issue is that SaX2 even cannot create the temporary xorg.conf for starting the first Xserver. 

I'll attach a screenshot of /var/log/SaX.log.


Comment 2 Stefan Dirsch 2008-01-31 15:35:31 UTC
Created attachment 192565 [details]
var_log_SaX.log.png
Comment 3 Stefan Dirsch 2008-01-31 15:37:35 UTC
SaX2 doesn't work with any driver. Not even with vesa or fbdev driver.
Comment 4 Stefan Dirsch 2008-01-31 15:50:26 UTC
Not sure how to proceed here. It looks like a plain SaX2 issue to me. Latest SaX2 changelog entry is:

* Tue Jan 29 2008 ms@suse.de
- fixed segfault, related to (bnc #354386)

There's even no vi installed on this live CD, which makes it completely unusable.

# vi
You do not have a valid vim binary package installed. Please installl either "vim", "vim-enhanced" or "gvim".
Comment 5 Stefan Dirsch 2008-01-31 16:02:46 UTC
Please provide a LiveCD ISO image with an editor, so I can look into this issue. BTW, setting up network doesn't work either with this LiveCD image.
Comment 6 Stephan Kulow 2008-01-31 20:43:21 UTC
Matthias, vim is installed - why does it not work?
Comment 7 Stefan Dirsch 2008-02-01 12:07:31 UTC
Only vim-base is installed. vim and vim-data is missing on this Live system.
Comment 8 Matthias Koenig 2008-02-01 12:20:45 UTC
You need to install the package vim, vim also requires vim-base.
If you want features like syntax highlighting you need additionally vim-data.
Comment 9 Stephan Kulow 2008-02-01 12:27:16 UTC
This seems to be a funny zypper bug:

+ chroot /usr/src/packages/BUILD/tmp zypper --non-interactive --no-gpg-checks install --auto-agree-with-licenses 3ddiag 915resolution DirectFB Mesa MozillaFirefox MozillaFirefox-translations NetworkManager NetworkManager-glib NetworkManager-gnome OpenOffice_org OpenOffice_org-calc OpenOffice_org-draw ....

Entering non-interactive mode.
Entering no-gpg-checks mode.
Problem downloading the specified RPM file.
File ./SDL not found on media: dir:///
Please check whether the file is accessible.
Problem with the RPM file specified as SDL, skipping.
Problem downloading the specified RPM file.
File ./acl not found on media: dir:///
Please check whether the file is accessible.
Problem with the RPM file specified as acl, skipping.
Problem downloading the specified RPM file.
File ./atk not found on media: dir:///
Please check whether the file is accessible.
...
File ./vim not found on media: dir:///
Please check whether the file is accessible.
Problem with the RPM file specified as vim, skipping.
Problem downloading the specified RPM file.

It does not affect all packages, but 3 letter names - like vim.

Comment 10 Jan Kupec 2008-02-01 12:40:23 UTC
the fix will be submitted to STABLE today

*** This bug has been marked as a duplicate of bug 355108 ***
Comment 11 Stefan Dirsch 2008-02-01 14:04:50 UTC
Thanks, but the initial problem with SaX2 is still open.
Comment 12 Stefan Dirsch 2008-02-01 14:07:13 UTC
Coolo, please provide an updated LiveCD ISO image with a working vi once the zyyper issue has been fixed.
Comment 13 Stephan Kulow 2008-02-03 10:32:14 UTC
the updated ISO has vim install in the log file, but I can't test myself if it fixes the original issue right now.
Comment 14 Stefan Dirsch 2008-02-03 11:18:26 UTC
Thanks. I'll give it a try.
Comment 15 Stefan Dirsch 2008-02-03 12:29:33 UTC
The initial issue remains. A cirrus based configuration created by xorgconfig works, so it's neither a Xserver nor a driver issue. For whatever reasons SaX2 is not able to create the xorg.conf for  the initial Xserver start. Reassigning to Marcus.
Comment 16 Stefan Dirsch 2008-02-03 12:32:28 UTC
Created attachment 192929 [details]
qemu-11.0-alpha1.sh

Marcus, in case you're not familiar with qemu (unlikely).
Comment 18 Stephan Kulow 2008-02-04 16:27:22 UTC
ok, this is not specific to the live system. I just installed a new monitor and have the same problem on sax2 -r - "something went wrong with X -probeonly", but that command works fine
Comment 19 Marcus Schaefer 2008-02-05 08:19:17 UTC
I guess we need a test machine to debug into the problem. Stefan I think this
looks like a general problem. Could you setup a test machine to reproduce this.
I think Stephan Kulow won't allow us to that on his machine :-)
Comment 20 Stefan Dirsch 2008-02-05 09:26:47 UTC
Coolo, on which kind of system would this be reproducable, e.g. on shannon (ca. 2000 packages) with STABLE from yesterday it doesn't happen.
Comment 21 Stephan Kulow 2008-02-05 09:32:26 UTC
that's the machine where NX simply works, right? :)

I had the problem on my workstation, when I tried to configure the second monitor.
Comment 22 Stefan Dirsch 2008-02-05 09:36:00 UTC
Yes, that's this machine.
Comment 23 Stefan Dirsch 2008-02-05 11:20:03 UTC
Marcus figured out, that libhd is segfaulting.
Comment 24 Stephan Kulow 2008-02-05 11:22:39 UTC
Valgrind blames someone else:

Index: sysp/sysp.h
===================================================================
--- sysp/sysp.h (Revision 1502)
+++ sysp/sysp.h (Arbeitskopie)
@@ -780,7 +780,7 @@
        int  size  = 0;

        size = s.length();
-       part = (char*)malloc(size);
+       part = (char*)malloc(size+1);

        for(int n=0;n<size;n++) {
        if (direction == 0) {
Comment 25 Stephan Kulow 2008-02-05 11:50:25 UTC
there is another problem when looking closer:

Index: lib/pci/lspci.c
===================================================================
--- lib/pci/lspci.c     (Revision 1502)
+++ lib/pci/lspci.c     (Arbeitskopie)
@@ -305,7 +305,10 @@
    first = p;
   last = p;
  }
+ /* we can't clean this up as we use the return data
  pci_cleanup(pacc);
+ */
+ pacc = 0;
  return(first);
 }

Is lspci code only used in sysp or also in the perl bindings loaded into yast2-x11?
Comment 27 Stephan Kulow 2008-02-05 14:36:38 UTC
ok, not helping the real problem. sysp does no longer crash, but sax2 -a still output the same
Comment 28 Stephan Kulow 2008-02-05 15:13:31 UTC
OK, new valgrind backtrace:

==32568== Invalid read of size 4
==32568==    at 0x406CEFD: hd_shm_clean (string3.h:52)
==32568==    by 0x406DFCC: hd_shm_init (hd.c:5473)
==32568==    by 0x40725EF: hd_scan (hd.c:1805)
==32568==    by 0x4074409: hd_list (hd.c:3236)
==32568==    by 0x8086C93: MonitorGetData() (monitor.c:65)
==32568==    by 0x807722F: ScanXStuff::Scan() (xstuff.c:176)
==32568==    by 0x804EDE2: ScanModule(char*) (sysp.c:297)
==32568==    by 0x804F2B5: main (sysp.c:211)
==32568==  Address 0x46249d8 is 0 bytes after a block of size 5,936 alloc'd
==32568==    at 0x4022E12: calloc (in /usr/lib/valgrind/x86-linux/vgpreload_memcheck.so)
==32568==    by 0x8086C73: MonitorGetData() (monitor.c:64)
==32568==    by 0x807722F: ScanXStuff::Scan() (xstuff.c:176)
==32568==    by 0x804EDE2: ScanModule(char*) (sysp.c:297)
==32568==    by 0x804F2B5: main (sysp.c:211)
Comment 29 Stephan Kulow 2008-02-05 15:15:56 UTC
ok, just seen on steffen's screen: there is a dup 
Comment 30 Steffen Winterfeldt 2008-02-05 15:17:54 UTC
bug 358800
Comment 31 Stephan Kulow 2008-02-05 15:38:20 UTC

*** This bug has been marked as a duplicate of bug 358800 ***
Comment 32 Stephan Kulow 2008-02-06 06:10:46 UTC
now I can boot the live CD!