Bug 191237

Summary: yast crash in firewall dialog when clicking in an "white" area
Product: [openSUSE] SUSE Linux 10.1 Reporter: Olaf Hering <ohering>
Component: YaST2Assignee: Jiri Srain <jsrain>
Status: RESOLVED FIXED QA Contact: Stanislav Visnovsky <visnov>
Severity: Normal    
Priority: P5 - None CC: suse-beta
Version: Final   
Target Milestone: ---   
Hardware: PowerPC   
OS: Linux   
Whiteboard:
Found By: Development Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: bug191237.tar.bz2
/tmp/y2log-debug.bz2

Description Olaf Hering 2006-07-10 11:39:23 UTC
a fresh install of 10.1 via smb on cantaloupe.suse.de, gnome default

yast aborted itself in the second stage.

I did enable ssh access in the mainwindow, then clicked on "Firewall.." to disable the logging. There are a few selectable list entries on the left side. By accident I clicked below the last entry, in the inactive area. This leads to:

cantaloupe-giga:~ # tail /var/log/YaST2/y2log
2006-07-10 11:49:16 <2> cantaloupe-giga(3746) [Parser] firewall/dialogs.ycp:41 Warning: Format string is not constant, no parameter checking possible
2006-07-10 11:49:16 <2> cantaloupe-giga(3746) [Parser] firewall/dialogs.ycp:65 Warning: Format string is not constant, no parameter checking possible
2006-07-10 11:49:16 <1> cantaloupe-giga(3746) [wfm] Y2CCWFM.cc(createInLevel):153 Parsing finished
2006-07-10 11:49:16 <1> cantaloupe-giga(3746) [Interpreter] firewall/summary.ycp:43 Calling YaST client firewall (arguments: [])
2006-07-10 11:49:16 <1> cantaloupe-giga(3746) [YCP] clients/firewall.ycp:15 ----------------------------------------
2006-07-10 11:49:16 <1> cantaloupe-giga(3746) [YCP] clients/firewall.ycp:16 Firewall module started
2006-07-10 11:49:16 <1> cantaloupe-giga(3746) [YCP] SuSERelease.ycp:47 File with release information: /etc/SuSE-release
2006-07-10 11:49:16 <2> cantaloupe-giga(3746) [YCP] Sequencer.ycp:139 sequencer check: alias not used: summary
2006-07-10 11:49:18 <1> cantaloupe-giga(3746) [YCP] SuSEFirewall.ycp:1299 enable-firewall has been already set to true
2006-07-10 11:49:18 <3> cantaloupe-giga(3746) [Interpreter] DialogTree.ycp:43 Invalid cast of YCP value 'nil'! Should be but is not String!
cantaloupe-giga:~ # 

no idea if its reproduceable.
Comment 1 Olaf Hering 2006-07-10 11:41:20 UTC
Created attachment 93026 [details]
bug191237.tar.bz2
Comment 2 Michal Zugec 2006-07-10 12:02:22 UTC
Lukas, could you look at this problem?
Comment 3 Lukas Ocilka 2006-07-10 12:07:59 UTC
DialogTree is jsrain's but it might be also a bug in Qt...?
Comment 4 Lukas Ocilka 2006-07-10 12:08:29 UTC
BTW: I was unable to reproduce it on the running system...
Comment 5 Jiri Srain 2006-07-11 07:08:27 UTC
The error looks like either an interpreter error, or incorrectly called DialogTree::Run function.

Olaf, as Lukas failed to reproduce it, could you, please, try reproducing it with debug logs? From standard ones I can't find what causes the problem...
Comment 6 Olaf Hering 2006-07-12 12:27:10 UTC
I tried to reproduce it by touching /var/lib/YaST2/runme_at_boot, but that did not help. Will try a reinstall.
Comment 7 Olaf Hering 2006-07-12 15:08:26 UTC
its reproduceable.
If I enter that screen, nothing is selected on the left side. Will try to get some logs tomorrow.
Comment 8 Olaf Hering 2006-07-13 13:21:32 UTC
Created attachment 93423 [details]
/tmp/y2log-debug.bz2

10.2 alpha2 crashes as well.
Comment 9 Stanislav Visnovsky 2006-07-20 13:13:01 UTC

string initial_screen = settings["initial_screen"]:"";             
map<any, any> functions = settings["functions"]:$[];
if (initial_screen == "") {
    foreach (string k, map<string,any> v, screens, {
        if (initial_screen == "")                                                             
            initial_screen = k;
    });
}

selected_screen = initial_screen;



So, if the map for the widget describes the initial screen as nil, it will crash YaST.
Comment 10 Jiri Srain 2006-07-25 13:51:28 UTC
Checking for initial_screen == nil submitted to SVN.