Bug 11870 - mcc Segmentation fault
Summary: mcc Segmentation fault
Status: RESOLVED DUPLICATE of bug 10289
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: Cauldron
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2013-12-04 15:35 CET by Pierre Fortin
Modified: 2013-12-27 15:29 CET (History)
1 user (show)

See Also:
Source RPM: rpmdrake-5.54-1.mga4
CVE:
Status comment:


Attachments

Description Pierre Fortin 2013-12-04 15:35:24 CET
Description of problem:  mcc used to auto-background itself (at least in mga2 -- I never could upgrade/install to mga3); but in mga4 it doesn't auto-background.. ^Z and "bg" gave me a "Segmentation fault" and locked rpm db.  In the steps below, I've included steps to get strace info.


Version-Release number of selected component (if applicable):


How reproducible: always


Steps to Reproduce:
1. konsole1# mcc  ## without "&"
2. click on one of the 4 Software Management choices.
   Note: if this step is skipped, mcc crashes are random.
   (using "Configure media sources..." here; but they all crash)
3. when sources panel comes up, hit ^Z on konsole1
4. konsole2# strace -p `ps h -o pid drakrpm-editmedia`
5. konsole1# ^Z
6. konsole1# bg 
     mcc segfaults with strace info on konsole2
7. konsole2# kill `ps h -o pid drakrpm-editmedia`  ## to unlock rpm db



Reproducible: 

Steps to Reproduce:
Pierre Fortin 2013-12-04 15:36:57 CET

Source RPM: (none) => rpmdrake-5.54-1.mga4

Comment 1 Manuel Hiebel 2013-12-05 17:18:28 CET
still valid with last update ?

Keywords: (none) => NEEDINFO

Comment 2 Pierre Fortin 2013-12-20 18:07:47 CET
Just started mcc, applied updates, hit Ctl-Z and "bg" segfaulted... so yes.
Comment 3 Thierry Vignaud 2013-12-21 04:32:37 CET
Try again with drakconf-12.46 once it's available on your favorite mirror

CC: (none) => thierry.vignaud

Comment 4 Pierre Fortin 2013-12-23 17:59:36 CET
drakconf-12.46 still segfaults...  doesn't seem to lock the DB though...
However, it leaves processes hanging around:
# ps aux | grep drak
root      5944  0.5  1.6 500184 137052 pts/9   Sl   11:16   0:02 /usr/bin/perl /usr/libexec/drakrpm-update --embedded 125829510
root      6328  0.6  1.6 500948 137784 pts/9   Sl   11:18   0:01 /usr/bin/perl /usr/libexec/drakrpm-update --embedded 130023812
root     17650  0.0  2.5 592980 207836 pts/9   Sl   Dec20   2:13 /usr/bin/perl /usr/libexec/drakrpm-update --embedded 171966832

I killed these 3 processes, then...
# mcc
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
"/usr/sbin/drakmenustyle" is not executable [Menus] at /usr/libexec/drakconf line 833.
"/usr/sbin/drakbackup" is not executable [Backups] at /usr/libexec/drakconf line 833.
"/usr/sbin/tomoyo-gui" is not executable [Tomoyo Policy] at /usr/libexec/drakconf line 833.
java version "1.7.0_45"
OpenJDK Runtime Environment (mageia-2.4.3.2.mga4-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
Segmentation fault

### This segfault occurred instantly (in case that info helps).

### Started mcc again, and this time it didn't segfault on startup.

# mcc
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
"/usr/sbin/drakmenustyle" is not executable [Menus] at /usr/libexec/drakconf line 833.
"/usr/sbin/drakbackup" is not executable [Backups] at /usr/libexec/drakconf line 833.
"/usr/sbin/tomoyo-gui" is not executable [Tomoyo Policy] at /usr/libexec/drakconf line 833.
java version "1.7.0_45"
OpenJDK Runtime Environment (mageia-2.4.3.2.mga4-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)
^Z
[2]+  Stopped                 mcc
# bg
[2]+ mcc &

### Backgrounding drakconf doesn't crash unless one of drakrpm-* is also running

# fg %2
mcc
Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.18.1/Gtk3.pm line 296.

(drakrpm-update:8072): Gtk-WARNING **: GtkImage 0x3326820 adjusted size vertical min 47 natural 47 must not decrease below min 48 natural 48

(drakrpm-update:8072): Gtk-WARNING **: GtkImage 0x3326820 attempted to adjust its size allocation from -12,1 1171x54 to 0,0 1159x55. adjust_size_allocation must keep allocation inside original bounds
getting lock on urpmi
comparing /distros/local/media/core/release/media_info/MD5SUM and /var/lib/urpmi/MD5SUM.Core Release
medium "Core Release" is up-to-date
comparing /distros/local/media/nonfree/release/media_info/MD5SUM and /var/lib/urpmi/MD5SUM.Nonfree Release
medium "Nonfree Release" is up-to-date
comparing /distros/local/media/tainted/release/media_info/MD5SUM and /var/lib/urpmi/MD5SUM.Tainted Release
medium "Tainted Release" is up-to-date
unlocking urpmi database
getting lock on urpmi
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Core Release.cz]
problem reading synthesis file of medium "Core Backports"
problem reading synthesis file of medium "Core Backports Testing"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Nonfree Release.cz]
problem reading synthesis file of medium "Nonfree Backports"
problem reading synthesis file of medium "Nonfree Backports Testing"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Tainted Release.cz]
problem reading synthesis file of medium "Tainted Backports"
problem reading synthesis file of medium "Tainted Backports Testing"
problem reading synthesis file of medium "Core 32bit Backports"
problem reading synthesis file of medium "Core 32bit Backports Testing"
problem reading synthesis file of medium "Nonfree 32bit Backports"
problem reading synthesis file of medium "Nonfree 32bit Backports Testing"
problem reading synthesis file of medium "Tainted 32bit Backports"
problem reading synthesis file of medium "Tainted 32bit Backports Testing"
unlocking urpmi database
^Z
[2]+  Stopped                 mcc
# bg
[2]+ mcc &
# 
[2]+  Segmentation fault      mcc
# ps aux | grep drak
root      8072  2.2  1.6 500952 137776 pts/9   Sl   11:27   0:01 /usr/bin/perl /usr/libexec/drakrpm-update --embedded 125830362

### cleaned up leftover processes and tried again

# mcc
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize at /usr/lib/libDrakX/mygtk2.pm line 589.
LOG **: NP_Initialize succeeded at /usr/lib/libDrakX/mygtk2.pm line 589.
"/usr/sbin/drakmenustyle" is not executable [Menus] at /usr/libexec/drakconf line 833.
"/usr/sbin/drakbackup" is not executable [Backups] at /usr/libexec/drakconf line 833.
"/usr/sbin/tomoyo-gui" is not executable [Tomoyo Policy] at /usr/libexec/drakconf line 833.
java version "1.7.0_45"
OpenJDK Runtime Environment (mageia-2.4.3.2.mga4-x86_64 u45-b15)
OpenJDK 64-Bit Server VM (build 24.45-b08, mixed mode)

Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.18.1/Gtk3.pm line 296.

(drakrpm-update:9218): Gtk-WARNING **: GtkImage 0x3330820 adjusted size vertical min 47 natural 47 must not decrease below min 48 natural 48

(drakrpm-update:9218): Gtk-WARNING **: GtkImage 0x3330820 attempted to adjust its size allocation from -12,1 1171x54 to 0,0 1159x55. adjust_size_allocation must keep allocation inside original bounds
getting lock on urpmi
comparing /distros/local/media/core/release/media_info/MD5SUM and /var/lib/urpmi/MD5SUM.Core Release
medium "Core Release" is up-to-date
comparing /distros/local/media/nonfree/release/media_info/MD5SUM and /var/lib/urpmi/MD5SUM.Nonfree Release
medium "Nonfree Release" is up-to-date
comparing /distros/local/media/tainted/release/media_info/MD5SUM and /var/lib/urpmi/MD5SUM.Tainted Release
medium "Tainted Release" is up-to-date
unlocking urpmi database
getting lock on urpmi
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Core Release.cz]
problem reading synthesis file of medium "Core Backports"
problem reading synthesis file of medium "Core Backports Testing"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Nonfree Release.cz]
problem reading synthesis file of medium "Nonfree Backports"
problem reading synthesis file of medium "Nonfree Backports Testing"
examining synthesis file [/var/lib/urpmi/synthesis.hdlist.Tainted Release.cz]
problem reading synthesis file of medium "Tainted Backports"
problem reading synthesis file of medium "Tainted Backports Testing"
problem reading synthesis file of medium "Core 32bit Backports"
problem reading synthesis file of medium "Core 32bit Backports Testing"
problem reading synthesis file of medium "Nonfree 32bit Backports"
problem reading synthesis file of medium "Nonfree 32bit Backports Testing"
problem reading synthesis file of medium "Tainted 32bit Backports"
problem reading synthesis file of medium "Tainted 32bit Backports Testing"
unlocking urpmi database

Subroutine Gtk3::main redefined at /usr/lib/perl5/vendor_perl/5.18.1/Gtk3.pm line 296.
getting exclusive lock on urpmi

(drakrpm-editmedia:9634): Gtk-CRITICAL **: gtk_tree_view_get_path_at_pos: assertion 'tree_view != NULL' failed
##############################################################################################################
### NOTE: This line appears 1616 times on the konsole that starts mcc.


### before backgrounding 
# ps aux | grep drak
root      9115  0.2  0.8 2381816 68272 pts/9   Sl+  11:33   0:02 /usr/bin/perl /usr/libexec/drakconf
root      9634  0.1  0.7 721708 60244 pts/9    Sl+  11:37   0:01 /usr/bin/perl /usr/libexec/drakrpm-editmedia --embedded 125830024
### after backgrounding segfault
# ps aux | grep drak
root      9634  0.1  0.7 721196 60276 pts/9    Sl   11:37   0:01 /usr/bin/perl /usr/libexec/drakrpm-editmedia --embedded 125830024
Comment 5 Thierry Vignaud 2013-12-27 15:29:36 CET
Dup

*** This bug has been marked as a duplicate of bug 10289 ***

Status: NEW => RESOLVED
Resolution: (none) => DUPLICATE


Note You need to log in before you can comment on or make changes to this bug.