Bug 682497

Summary: Yast2 segfaults when adding (mistyped) repo URL
Product: [openSUSE] openSUSE 11.4 Reporter: Forgotten User MvTigshnkV <forgotten_MvTigshnkV>
Component: YaST2Assignee: Ladislav Slezák <lslezak>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Critical    
Priority: P2 - High    
Version: Final   
Target Milestone: Factory   
Hardware: x86-64   
OS: openSUSE 11.4   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: y2logs

Description Forgotten User MvTigshnkV 2011-03-24 21:46:26 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:2.0.0) Gecko/20100101 Firefox/4.0

I was trying to add an OpenSUSE Build Service repo through YAST - I typed the URL by heart, and put "https" instead of "http".

The URL with "https" (https://download.opensuse.org/repositories/home:/klaussfreire/openSUSE_11.4/) does not work, so I didn't expect it to work when I realized about the mistake - I didn't expect YAST to crash the way it did either, though.

YAST became unresponsive, and after restarting it, a popup gave the following useful info:

YaST got signal 11 at YCP file packager/repositories_include.ycp:188
/sbin/yast2: line 423:  2780 Segmentation fault      $ybindir/y2base $module "$@" "$SELECTED_GUI" $Y2_GEOMETRY $Y2UI_ARGS

Restarting YAST and adding the repo with the proper URL worked just fine, but in my experience, segmentation faults are usually exploitable as security holes, so I guess it should be looked into, hence the "critical" severity.


Reproducible: Always

Steps to Reproduce:
1. Start YAST
2. Open the "Software Repositories" app
3. Click to add a repo by URL
4. Enter "klauss-repo" as name
5. Enter "https://download.opensuse.org/repositories/home:/klaussfreire/OpenSUSE_11.4/" as URL
6. Press OK
7. "Cannot open installation media" pops up
8. Press "Abort"

Actual Results:  
1. Will freeze - Kill with Ctrl+Alt+ESC + clicking on YAST window
2. Popup shows the error


Expected Results:  
Should abort and let me type the correct URL (without https)

The system is a clean install, I just installed it prior to the steps shown above from the x86_64 ISO DVD image.
Comment 1 Zhi Juan Jia 2011-03-28 07:00:38 UTC
Please attach y2logs. If you are in doubt follow:
http://en.opensuse.org/openSUSE:Bugreport_YaST
Thanks!
Comment 2 Forgotten User MvTigshnkV 2011-03-29 04:30:02 UTC
Created attachment 421814 [details]
y2logs

Attached y2logs
Comment 3 Forgotten User MvTigshnkV 2011-03-29 04:33:17 UTC
Notice though that I couldn't find any relevant stuff in those logs after grepping quite a bit.

Though I'm not an expert ;) by far
Comment 4 Ladislav Slezák 2011-03-29 08:52:16 UTC
I could reproduce the problem locally, I'll look at it later.
Comment 5 Ladislav Slezák 2011-06-24 11:40:40 UTC
I did some refresh and abort fixes in Yast recently, I could not reproduce it using the latest yast (Factory) anymore.

Therefore I'm closing it as FIXED, feel free to reopen if you can reproduce it in Factory/12.1-Milestone3 (and higher).