Univention Bugzilla – Full Text Bug Listing |
Summary: | Appcenter module died during app update | ||
---|---|---|---|
Product: | UCS | Reporter: | Sönke Schwardt-Krummrich <schwardt> |
Component: | UMC - App-Center | Assignee: | Dirk Wiesenthal <wiesenthal> |
Status: | CLOSED FIXED | QA Contact: | Felix Botner <botner> |
Severity: | normal | ||
Priority: | P3 | CC: | botner, gohmann, jmm, klaeser, wiesenthal |
Version: | UCS 3.1 | ||
Target Milestone: | UCS 3.1-1-errata | ||
Hardware: | Other | ||
OS: | Linux | ||
What kind of report is it?: | --- | What type of bug is this?: | --- |
Who will be affected by this bug?: | --- | How will those affected feel about the bug?: | --- |
User Pain: | Enterprise Customer affected?: | ||
School Customer affected?: | ISV affected?: | ||
Waiting Support: | Flags outvoted (downgraded) after PO Review: | ||
Ticket number: | Bug group (optional): | ||
Max CVSS v3 score: | |||
Attachments: |
gdb traceback appcenter module
core file of crashed appcenter module |
Description
Sönke Schwardt-Krummrich
2013-05-05 12:45:59 CEST
Created attachment 5211 [details]
gdb traceback appcenter module
Seems to be reproducible. Crash happens in python-apt. gdb traceback has been attached.
Would be interesting to know what happens with an updated python-apt package. We have 0.7.100, wheezy ships with 0.8.8.2: http://packages.debian.org/source/wheezy/python-apt (In reply to comment #1) > Created an attachment (id=5211) [details] > gdb traceback appcenter module > > Seems to be reproducible. Crash happens in python-apt. gdb traceback has been > attached. Could you append the core file? Created attachment 5214 [details]
core file of crashed appcenter module
(In reply to comment #2) > Would be interesting to know what happens with an updated python-apt package. > We have 0.7.100, wheezy ships with 0.8.8.2: > > http://packages.debian.org/source/wheezy/python-apt Yes, but I did not manage to get this working: root@master120:~# apt-get install python-apt univention-server-master [...] python-apt : Depends: python (>= 2.6.6-7~) but 2.6.6-3.22.201205211619 is to be installed This only happens when app.install_dry_run() adds the component and does not remove it afterwards and app.install() does not add the component (because install_dry_run already did that). This was done to save one ucr commit on the repository files as they may be time consuming. But also if app.install() does not add its own repository, it does remove the old ones. After this step, no package_manager.reopen_cache() is done. So the install routine is then working with an outdated cache and installs packages with it. A reopen_cache() afterwards causes the segfault. A reopen_cache() before installation prevents it: Index: umc/python/appcenter/app_center.py =================================================================== --- umc/python/appcenter/app_center.py (Revision 40242) +++ umc/python/appcenter/app_center.py (Arbeitskopie) @@ -869,6 +869,7 @@ # dont remove yourself (if already added) if iapp is not self: component_manager.remove_app(iapp) + package_manager.reopen_cache() # add the new repository component for the app if add_component: Fixed in 3.1-2: univention-management-console-module-appcenter 2.0.147-1.132.201305071153 and 3.1-1: univention-management-console-module-appcenter 2.0.139-9.131.201305071151 I still do not understand why this happens only with certain apps/repositories. YAML, changelog updated. reproducible when updating UCS 3.1-1 with OX 6.2 to OX 7.2 via appcenter. OK - errata3.1-1 OK - YAML OK - ucs3.1-2 OK - Changelog |