(update-desktop-database:12124): core dump

Bug #106939 reported by zalandyman
14
Affects Status Importance Assigned to Milestone
desktop-file-utils (Ubuntu)
Invalid
Medium
Unassigned

Bug Description

After installing Ubuntu 7.04, the update manager downloaded 316 updates. When I try to install the updates it starts to apply changes but then stops with the following error:

E: python2.5: subprocess post-installation script returned error exit status 139
E: python: dependency problems - leaving unconfigured

The update manger then stops and no changes have been applied.

ProblemType: Bug
Architecture: i386
Date: Mon Apr 16 09:05:58 2007
DistroRelease: Ubuntu 7.04
Uname: Linux zalandyman-desktop 2.6.20-12-generic #2 SMP Wed Mar 21 20:55:46 UTC 2007 i686 GNU/Linux

From the comments:

root@zalandyman-desktop:/home/zalandyman# sudo update-desktop-database

(update-desktop-database:12124): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)

Revision history for this message
Scott Kitterman (kitterman) wrote :

If you try and update again, what happens?

Where there any informational messages before the error messages?

Revision history for this message
zalandyman (mboast) wrote : Re: [Bug 106939] Re: update crashes with python error

I have updated from the terminal window and the following happens:

Do you want to continue [Y/n]? y
Extracting templates from packages: 100%
Preconfiguring packages ...
Setting up python2.5 (2.5.1~rc1-0ubuntu3) ...

(update-desktop-database:10590): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
dpkg: error processing python2.5 (--configure):
 subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of python:
 python depends on python2.5 (>= 2.5.1~rc1); however:
  Package python2.5 is not configured yet.
dpkg: error processing python (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 python2.5
 python
E: Sub-process /usr/bin/dpkg returned an error code (1)

Any idea??

Marcel

On 4/16/07, Scott Kitterman <email address hidden> wrote:
>
> If you try and update again, what happens?
>
> Where there any informational messages before the error messages?
>
> --
> update crashes with python error
> https://bugs.launchpad.net/bugs/106939
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: update crashes with python error

I'll see if I can find someone to look at it.

description: updated
Revision history for this message
Scott Kitterman (kitterman) wrote : Re: Python update fails because it appears to require itself

Try executing:

sudo update-desktop-database

from a command line. This is likely to crash. Please add any output you get to this bug or if you get a chance to automatically report a new bug, do it and then mention the new bug in a comment on this one.

Revision history for this message
zalandyman (mboast) wrote : Re: [Bug 106939] Re: Python update fails because it appears to require itself

Executed and got the following:

root@zalandyman-desktop:/home/zalandyman# sudo update-desktop-database

(update-desktop-database:12124): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
root@zalandyman-desktop:/home/zalandyman#

On 4/16/07, Scott Kitterman <email address hidden> wrote:
>
> Try executing:
>
> sudo update-desktop-database
>
> from a command line. This is likely to crash. Please add any output
> you get to this bug or if you get a chance to automatically report a new
> bug, do it and then mention the new bug in a comment on this one.
>
> --
> Python update fails because it appears to require itself
> https://bugs.launchpad.net/bugs/106939
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: [Bug 106939] Re: Python update fails because it appears to require itself

>(update-desktop-database:12124): GLib-CRITICAL **:
>g_key_file_get_string_list: assertion `group_name != NULL' failed
>Segmentation fault (core dumped)

Was that all it said?

Revision history for this message
Scott Kitterman (kitterman) wrote : Re: Python update fails because it appears to require itself

I also notice that you are root and still using sudo. I doubt it will make a difference, but try again using sudo from a non-root account and from the root account without the sudo.

Revision history for this message
zalandyman (mboast) wrote : Re: [Bug 106939] Re: Python update fails because it appears to require itself

yes, to confirm, here is the section pasted from the terminal window:

root@zalandyman-desktop:/home/zalandyman# sudo update-desktop-database

(update-desktop-database:12124): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
root@zalandyman-desktop:/home/zalandyman#

Thanks

On 4/16/07, Scott Kitterman <email address hidden> wrote:
>
> >(update-desktop-database:12124): GLib-CRITICAL **:
> >g_key_file_get_string_list: assertion `group_name != NULL' failed
> >Segmentation fault (core dumped)
>
> Was that all it said?
>
> --
> Python update fails because it appears to require itself
> https://bugs.launchpad.net/bugs/106939
> You received this bug notification because you are a direct subscriber
> of the bug.
>

description: updated
Revision history for this message
zalandyman (mboast) wrote :

Did both and came up with the following results:

 zalandyman@zalandyman-desktop:~$ update-desktop-database

 (update-desktop-database:14173): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed

Segmentation fault (core dumped)

zalandyman@zalandyman-desktop:~$

 root@zalandyman-desktop:/home/zalandyman# update-desktop-database

 (update-desktop-database:13270): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed

Segmentation fault (core dumped)

root@zalandyman-desktop:/home/zalandyman#

Regards

Marcel

On 4/16/07, Scott Kitterman <email address hidden> wrote:
>
> I also notice that you are root and still using sudo. I doubt it will
> make a difference, but try again using sudo from a non-root account and
> from the root account without the sudo.
>
> ** Summary changed:
>
> - Python update fails because it appears to require itself
> + (update-desktop-database:12124): core dump
>
> ** Description changed:
>
> After installing Ubuntu 7.04, the update manager downloaded 316 updates.
> When I try to install the updates it starts to apply changes but then
> stops with the following error:
>
> E: python2.5: subprocess post-installation script returned error exit
> status 139
> E: python: dependency problems - leaving unconfigured
>
> The update manger then stops and no changes have been applied.
>
> ProblemType: Bug
> Architecture: i386
> Date: Mon Apr 16 09:05:58 2007
> DistroRelease: Ubuntu 7.04
> Uname: Linux zalandyman-desktop 2.6.20-12-generic #2 SMP Wed Mar 21
> 20:55:46 UTC 2007 i686 GNU/Linux
>
> From the comments:
>
> - dpkg: dependency problems prevent configuration of python:
> - python depends on python2.5 (>= 2.5.1~rc1); however:
> - Package python2.5 is not configured yet.
> + root@zalandyman-desktop:/home/zalandyman# sudo update-desktop-database
> +
> + (update-desktop-database:12124): GLib-CRITICAL **:
> + g_key_file_get_string_list: assertion `group_name != NULL' failed
> + Segmentation fault (core dumped)
>
> --
> (update-desktop-database:12124): core dump
> https://bugs.launchpad.net/bugs/106939
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Scott Kitterman (kitterman) wrote :

Thanks. I didn't think it would make a difference, but I wanted to make sure. I've triaged this one about as far as I can. I'll see if I can pass it on to someone else.

Revision history for this message
Scott Kitterman (kitterman) wrote :

What happens if you do:

apt-get install desktop-file-utils

or

sudo apt-get install desktop-file-utils

(depending on if you are root or not)?

Revision history for this message
zalandyman (mboast) wrote : Re: [Bug 106939] Re: (update-desktop-database:12124): core dump

Thanks Scott

Is it possible to save the updates that the update-manager downloaded,
re-install "FF" then update from a specific location, ie where you saved the
updates?

Regards
Marcel

On 4/16/07, Scott Kitterman <email address hidden> wrote:
>
> Thanks. I didn't think it would make a difference, but I wanted to make
> sure. I've triaged this one about as far as I can. I'll see if I can
> pass it on to someone else.
>
> --
> (update-desktop-database:12124): core dump
> https://bugs.launchpad.net/bugs/106939
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
zalandyman (mboast) wrote :

Terminal window:

zalandyman@zalandyman-desktop:~$ su
Password:
root@zalandyman-desktop:/home/zalandyman# sudo apt-get install
desktop-file-utils
Reading package lists... Done
Building dependency tree
Reading state information... Done
desktop-file-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 303 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up python2.5 (2.5.1~rc1-0ubuntu3) ...

(update-desktop-database:17475): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
dpkg: error processing python2.5 (--configure):
 subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of python:
 python depends on python2.5 (>= 2.5.1~rc1); however:
  Package python2.5 is not configured yet.
dpkg: error processing python (--configure):
 dependency problems - leaving unconfigured
Setting up python2.4 (2.4.4-2ubuntu7) ...

(update-desktop-database:17492): GLib-CRITICAL **:
g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
dpkg: error processing python2.4 (--configure):
 subprocess post-installation script returned error exit status 139
Errors were encountered while processing:
 python2.5
 python
 python2.4
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@zalandyman-desktop:/home/zalandyman#

?????

On 4/16/07, Scott Kitterman <email address hidden> wrote:
>
> What happens if you do:
>
> apt-get install desktop-file-utils
>
> or
>
> sudo apt-get install desktop-file-utils
>
> (depending on if you are root or not)?
>
> ** Changed in: desktop-file-utils (Ubuntu)
> Sourcepackagename: None => desktop-file-utils
>
> --
> (update-desktop-database:12124): core dump
> https://bugs.launchpad.net/bugs/106939
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Scott Kitterman (kitterman) wrote :

OK. That confirms that you are running the most current version.

No one else has reported a similar problem, so the next question would be what is unusual about your system....

I've noticed from your previous responses that you have enabled a root account. Are there any other customizations that you've done?

Revision history for this message
drgreen (drgreenth) wrote :

I have same problem.. I purged desktop-file-utils and got everything installed ok, but not desktop-file-utils itself.

It says:

root@rakkine:~# dpkg --configure -a
Setting up: desktop-file-utils (0.12-0ubuntu2) ...

(update-desktop-database:16095): GLib-CRITICAL **: g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
dpkg: error processing desktop-file-utils (--configure):
 aliprosessi post-installation script palautti virhetilakoodin 139
dpkg: riippuvuusongelmat estävät paketin openoffice.org-common konfiguroimisen:
 openoffice.org-common depends on desktop-file-utils; however:
  Package desktop-file-utils is not configured yet.
dpkg: error processing openoffice.org-common (--configure):
 riippuvuusongelmia - jätän konfiguroimatta
Errors were encountered while processing:
 desktop-file-utils
 openoffice.org-common
root@rakkine:~#

Revision history for this message
zalandyman (mboast) wrote :

I have not done any further customizations, I have just done a fresh install
of 7.04, 6.10 was working well before this installation.

On 4/16/07, Scott Kitterman <email address hidden> wrote:
>
> OK. That confirms that you are running the most current version.
>
> No one else has reported a similar problem, so the next question would
> be what is unusual about your system....
>
> I've noticed from your previous responses that you have enabled a root
> account. Are there any other customizations that you've done?
>
> --
> (update-desktop-database:12124): core dump
> https://bugs.launchpad.net/bugs/106939
> You received this bug notification because you are a direct subscriber
> of the bug.
>

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for your bug report. Please try to obtain a backtrace http://wiki.ubuntu.com/DebuggingProgramCrash and attach the file to the bug report. This will greatly help us in tracking down your problem.

Changed in desktop-file-utils:
status: Confirmed → Needs Info
Revision history for this message
drgreen (drgreenth) wrote :

Here is my gdb and strace with attachment. Its bit tricky to use that bug tracking system..

Changed in desktop-file-utils:
status: Needs Info → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

Could you get a backtrace with desktop-file-utils-dbgsym libglib2.0-0-dbgsym libgtk2.0-0-dbgsym installed?

Revision history for this message
drgreen (drgreenth) wrote :

What packages exactly? those libs?

Revision history for this message
Sebastien Bacher (seb128) wrote :

the dbgsym listed on the comment

Revision history for this message
drgreen (drgreenth) wrote :

Here it is. It was pretty hard to install these packages because that error.. :)

Revision history for this message
sp (me7afi1e) wrote :

Hello,
I`ve got the very similar problem, however, another packages are installed errorneously.
At first, my dpkg didn`t work at all because it couldn`t completely remove gparted app after initial installation.

Following advice I`ve found somewhere to insert "exit 0;" line into the "/var/lib/dpkg/info/APPNAME-postrm", I`ve managed to install some stuff I need.

However, now when I run "apt-get install -f", I`ve got the following output:

sp@c003:~$ sudo apt-get install -f
Password:
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
7 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up j2re1.4 (1.4.2.02-1ubuntu3) ...

(update-desktop-database:17913): GLib-CRITICAL **: g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
dpkg: error processing j2re1.4 (--configure):
 subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of j2sdk1.4:
 j2sdk1.4 depends on j2re1.4 (= 1.4.2.02-1ubuntu3); however:
  Package j2re1.4 is not configured yet.
dpkg: error processing j2sdk1.4 (--configure):
 dependency problems - leaving unconfigured
Setting up python2.4 (2.4.4-2ubuntu7) ...

(update-desktop-database:17928): GLib-CRITICAL **: g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
dpkg: error processing python2.4 (--configure):
 subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of blender:
 blender depends on python2.4 (>= 2.3.90); however:
  Package python2.4 is not configured yet.
dpkg: error processing blender (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of exaile:
 exaile depends on python2.4; however:
  Package python2.4 is not configured yet.
dpkg: error processing exaile (--configure):
 dependency problems - leaving unconfigured
Setting up gnome-panel-data (2.18.1-0ubuntu3.1) ...

(update-desktop-database:17948): GLib-CRITICAL **: g_key_file_get_string_list: assertion `group_name != NULL' failed
Segmentation fault (core dumped)
dpkg: error processing gnome-panel-data (--configure):
 subprocess post-installation script returned error exit status 139
dpkg: dependency problems prevent configuration of gnome-panel:
 gnome-panel depends on gnome-panel-data (= 1:2.18.1-0ubuntu3.1); however:
  Package gnome-panel-data is not configured yet.
dpkg: error processing gnome-panel (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 j2re1.4
 j2sdk1.4
 python2.4
 blender
 exaile
 gnome-panel-data
 gnome-panel
E: Sub-process /usr/bin/dpkg returned an error code (1)
sp@c003:~$

I`ve inserted "exit 0" to .postrm files of python2.4 and gnome-panel.
The strange thing is that all that modules listed above working fine and have the latest versions.

Revision history for this message
Daniel Holbach (dholbach) wrote :

drgreen: can you get a backtrace with 'thread apply bt full'?

Revision history for this message
Daniel Holbach (dholbach) wrote :

0x08049502 in process_desktop_files (desktop_dir=0x804d000 "/usr/share/applications", prefix=0x804a155 "", error=<value optimized out>) at update-desktop-database.c:203

That'd be in
 for (i = 0; mime_types[i] != NULL; i++)
then.

Changed in desktop-file-utils:
status: Confirmed → Needs Info
Revision history for this message
drgreen (drgreenth) wrote :

Ok, Ill do it during w-end.

Revision history for this message
Sebastien Bacher (seb128) wrote :

We are closing this bug report as it lacks the information, described in the previous comments, we need to investigate the problem further. However, please reopen it if you can give us the missing information and don't hesitate to submit bug reports in the future.

Changed in desktop-file-utils:
importance: High → Medium
status: Needs Info → Rejected
Revision history for this message
Andreas Hochsteger (andreas-hochsteger) wrote :

I had the same problem as described in this bug and was able to fix it.
The problem was caused by corrupt *.desktop files in /usr/share/applications/... which contained binary data or other invalid content.
You can use 'sudo update-desktop-database -v' which files were processed correctly and which caused warnings.
I corrected the problematic *.desktop files using 'sudo aptitude reinstall <package>' and the problem was gone.

HTH,
Andreas

Revision history for this message
Andreas Hochsteger (andreas-hochsteger) wrote :

... I forgot to meantion, that you first have to (re-)move the corrupt files so update-desktop-database runs through correctly.
Then aptitude works again as always.

Revision history for this message
Tom Gelinas (tomgelinas) wrote :

The above post seems to be right on the money, I deleted an improperly formatted .desktop file that I created myself and the issue has disappeared.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you attach the broken desktop or describe how to create one

Revision history for this message
Andreas Hochsteger (andreas-hochsteger) wrote :

I don't know how they got corrupted, but it may have been caused by hangs during major filesystem activity.
Since I deleted them I can't provide some sample files, but I remember that there was one without a section header (e.g. "[Desktop Entry]") and trunkated at a random point (or at the end of a sector).
The other one consisted of just unreadable binary content (obviously from another file).
A simple plausibility check or validation of the file content would prevent such problems in the future.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.