Bug 224742

Summary: yast tv crashes when searching kernel modules
Product: [openSUSE] openSUSE 10.2 Reporter: Heiko Schmidt <heiko.schmidt>
Component: YaST2Assignee: Martin Vidner <mvidner>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P5 - None CC: lslezak, mantel, paul, tschmidt
Version: RC 1   
Target Milestone: ---   
Hardware: x86-64   
OS: Other   
Whiteboard:
Found By: Beta-Customer Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast-log
y2logs

Description Heiko Schmidt 2006-11-29 22:46:10 UTC
while configuring the tv-card and using the expert-modus the application close itself by clicking on the "Load Kernel Modules" button
Comment 1 Matej Horvath 2006-11-30 10:25:12 UTC
Please attach your yast log files.
http://en.opensuse.org/Bugs/YaST

Thank you.
Comment 2 Heiko Schmidt 2006-12-06 22:53:57 UTC
Created attachment 108600 [details]
yast-log
Comment 3 Ladislav Slezák 2006-12-07 13:23:51 UTC
I cannot reproduce it in the final version (RC5), yast displays list of the kernel modules correctly.

Please, run 'Y2DEBUG=1 yast2 tv' command and attach yast logs again.
Comment 4 Heiko Schmidt 2006-12-07 23:21:12 UTC
Done, see attachment

Output was:
# Y2DEBUG=1 yast2 tv
Segmentation fault at Tv.ycp:546
/sbin/yast2: line 274:  4944 Speicherzugriffsfehler  $ybindir/y2base $module "$@" "$SELECTED_GUI" "$Y2_GEOMETRY" $Y2QT_ARGS
Comment 5 Heiko Schmidt 2006-12-07 23:23:33 UTC
Created attachment 108788 [details]
y2logs
Comment 6 Ladislav Slezák 2007-01-12 15:03:02 UTC
Do not forget to assign the bug back when the requested information is provided.
Comment 7 Ladislav Slezák 2007-01-12 15:03:21 UTC
*** Bug 231854 has been marked as a duplicate of this bug. ***
Comment 8 Paul Watts 2007-01-15 16:24:13 UTC
Note same error occurs during install when TV cards are autodetected, causing yast in install mode to crash out.  Error is exactly the same as Heiko above.

Upon restart yast steps back to the 'check for updates' stage.  Strange!
Comment 9 Paul Watts 2007-01-16 11:33:24 UTC
Further to previous comment - observing this behaviour in openSuSE 10.2 final release.  Not apparant in 10.1 released version either.
Comment 10 Ladislav Slezák 2007-01-16 13:55:55 UTC
It seems that 80211.ko kernel module makes problems in yast.

Yast crashes in regexp call:

  foreach(string regexp, regexps, {
    if (regexpmatch(m, regexp))

because m is 80211 (integer, although declared as string!) -- it seems that either YCP interpreter or modinfo agent is broken.
Comment 12 Martin Vidner 2007-01-19 16:29:57 UTC
Indeed, the modinfo agent has the classic bug of producing numbers out of strings that look like numbers.
Comment 13 Martin Vidner 2007-01-22 10:01:40 UTC
Fixed for 10.3 in yast2-core-2.15.3 and for SLE10 SP1 in yast2-core-2.13.35.

The fix is this:
--- /usr/lib/YaST2/servers_non_y2/ag_modinfo.orig       2006-08-22 10:27:46.000000000 +0200
+++ /usr/lib/YaST2/servers_non_y2/ag_modinfo    2007-01-22 10:47:20.000000000 +0100
@@ -43,7 +43,7 @@
                push @list, $file;
            }
        }
-       ycp::Return ( \@list );
+       ycp::Return ( \@list, 1 );
     }
     elsif ( ycpCommandIsRead )
     {
Comment 15 Thomas Schmidt 2007-06-23 21:09:24 UTC
*** Bug 287042 has been marked as a duplicate of this bug. ***