gnome-panel freezes in pthread_cond_wait when activating calendar

Bug #225416 reported by soulearth
6
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Hello,
I have hardy 64 bits. When I click on the date in the taskbar in other to open calendar, the calendar don't open and taskbar freeze. I can't click on system, applications and shortcuts. After, I must reboot.

Workaround to relaunch the taskbar:
hit Alt+F2 and run "killall -9 gnome-panel && gnome-panel"

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote : Re: crash of the taskbar

Thanks for taking time of reporting bugs. We need more information to fix this. Could you look at the folder "/var/crash" and see if it contains a file about gnome-panel?

Revision history for this message
soulearth (dingue-du-web) wrote :

First of all thank you for your work.
Unfortunately, I have no file in /var/crash
I must install or configure software for have more informations on bugs?

Best regards.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Here's a debugging procedure you may want to follow:
- open a Terminal and type in 'sudo echo "deb http://ddebs.ubuntu.com hardy main universe" >> /etc/apt/sources.list && apt-get update' and then [Return]
- run 'apt-get install libc6-amd64-dbgsym libglib2.0-0-dbgsym libgtk2.0-0-dbgsym libgnome-desktop-2-dbgsym gnome-panel-dbgsym'
- run 'pidof gnome-panel' and remember the number returned
- run 'gdb &> trace.log' and type in 'attach XXX' with XXX this number and [Return]
- type in 'continue' and [Return] and try to reproduce the freeze with the calendar
- when the freeze has occurred, press Ctrl + C on the terminal
- enter successively these commands and [Return]:
    backtrace full
    info registers
    thread apply all backtrace
    quit
- attach here the file trace.log

Thanks for your help!

Changed in gnome-panel:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
soulearth (dingue-du-web) wrote :

Hello,
I added deb http://ddebs.ubuntu.com hardy main universe in /etc/apt/sources.list and execute apt-get update.
I installed paquets : libglib2.0-0-dbgsym libgtk2.0-0-dbgsym libgnome-desktop-2-dbgsym gnome-panel-dbgsym , but i can found libc6-amd64-dbgsym.

Where i can download libc6-amd64-dbgsym ?

thanks you.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Please just skip this one - it may not be required for this debugging. We cannot know where the bug is happenning and for now we can do without it. Sorry for the mistake.

Revision history for this message
soulearth (dingue-du-web) wrote :

I think I have the informations.

I do:
> gdb program PID
> backtrace full
> info registers
> thread apply all backtrace
> quit

And I have save responses in the file trace.log.
Two informations: When I run "gdb program PID", the taskbar bug. I don't the time to click on the calendar.
Moreover after service lsb_release is zombie.

Revision history for this message
Niels Hansen (nsh-dmi) wrote :

I have the same problem on the 32 bit version of 8.04 running on a Dell Latitude X300. If I click the calendar, the taskbars freezes and I can't unfreeze them - have to reboot... What can I do to supply info? I have no file in "/var/crash".

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Why did you skip the step:
- type in 'continue' and [Return] and try to reproduce the freeze with the calendar ?
That's why the panel is freezing: you must allow it to 'continue' its work... ;-)

So what we have now is the status of gnome-panel when it is normal - rather useless. Else the process was good, thanks anyway. Can you try another time?

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Niels: Please just follow the same procedure, at least your trace will allow us to see if the bug is really the same, and maybe add some information.

Revision history for this message
soulearth (dingue-du-web) wrote :

OK I will try another time.

Revision history for this message
soulearth (dingue-du-web) wrote :

A new report. If i continue many time, gdb bloc many time.

Revision history for this message
soulearth (dingue-du-web) wrote :

When i continue many time.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

I don't really understand what you mean by "if I continue many time". Is it "if I trigger the freeze many times"?

What do the lines correspond to?
(gdb) continue
Continuing.
[New Thread 0x421a7950 (LWP 8199)]
Cannot get thread event message: debugger service failed
(gdb)
Continuing.
[New Thread 0x429a8950 (LWP 8202)]
Cannot get thread event message: debugger service failed
(gdb)

Does the error message appear each time you click on the calendar? Are you just hotting [Return] after each (gdb) line? Does gdb interrupt the process by itself or do you need to hit Ctrl+C?

Thanks for your time - and right, 'sudo -s' was required

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

I did not mention a possible workaround for this bug:
When the panel freezes, hit Alt+F2 and run 'killall -9 gnome-panel'
If the panel doesn't restart you can use instead 'killall -9 gnome-panel && gnome-panel'

Revision history for this message
soulearth (dingue-du-web) wrote :

To answer your question, It is very special. I just hotting [Return] after each (gdb) line. Bug I think is a other bug because after the hotting [return] the calendar openned. But I have a capture where the calendar don't open. I think is better. It's trace4.

Sorry, I'm not very effective but I've never used gdb.

A soon

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

This one is much nicer! It may help the developer to find the problem.
May I ask you to install additional packages and try once again? This may be helpful. These are libecal1.2-7-dbgsym and libedataserver1.2-9-dbgsym; also, please run 'apt-cache search libc6*-dbg' and install one and only one of the returned packages. [Note after the debugging is completely done, you may search in Synaptic for "-dbgsym" an remove without trouble all the returned packages.]

Another point: you said that when running gnome-panel in gdb, sometimes the bug does not occur? Does it always occur when not with gdb ("normal" situation)?

Thanks again, after this everything will be good

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

There's already enough information to try working on this.

Changed in gnome-panel:
status: Incomplete → Confirmed
description: updated
Revision history for this message
soulearth (dingue-du-web) wrote :

ok, I will install the paquet tomorrow (i have tinker today, and i am tired).

Yes, sometimes I haven't the bug. The bug occurs 3 times out of 4. There are no reason for have the bug or don't have the bug. It's random.

A tomorrow

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

those hangs are usually due to evolution-data-server crashing, does bug #203527 correspond to your issue? do you use the upgrade mentioned there?

Revision history for this message
soulearth (dingue-du-web) wrote :

For me isn't the same bug because :
- I don't use evolution
- I have a location in my calendar
- I don't use upgrade ( I have a clean install. I have format my partition / and /home.)

Revision history for this message
soulearth (dingue-du-web) wrote :

Ok, I have install libecal1.2-7-dbgsym, libedataserver1.2-9-dbgsym, libc6-dbg.

I do the same procedure. The file is trace5.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Good, we should have what we need now. Thanks!

Evolution is the library that causes the crash: although you don't use it, it is responsible for the calendar (appointments) in GNOME.

Sebastien: I look like both bugs are different versions of the same freeze:
- Summary of the present trace:
#0 pthread_cond_wait@@GLIBC_2.3.2
#1 e_flag_wait
#2 e_cal_get_query
#3 calendar_client_start_query [...]

- Summary of that from bug #203527:
#0 __kernel_vsyscall
#1 pthread_cond_wait@@GLIBC_2.3.2
#2 e_flag_wait
#3 open_calendar

Just two ways of going to the same buggy code. They can share the same upstream report.

Revision history for this message
Milan Bouchet-Valat (nalimilan) wrote :

Another point: have you ever used a Google calendar? Is your system up-to-date.

For me, this is a duplicate of bug 204775 (same trace).

Revision history for this message
soulearth (dingue-du-web) wrote :

I have never used google calendar.
Yes, my ubuntu hardy is a up-to-date.

Thank you for your help and your work.

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

did you try the update mentionned on the other bug? the issue is triggered when no contact is configured in the addressbook which is your case if you don't use this software

Revision history for this message
soulearth (dingue-du-web) wrote :

My system is fully update only with the normal update. I will test the patch in the hardy-proposed.

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

the change is in hardy-updates now, can you try the update?

Changed in gnome-panel:
status: Confirmed → Incomplete
Revision history for this message
soulearth (dingue-du-web) wrote :

It's OK, with the last updage the bug is fix.
Sorry for waiting but I wanted the used long time to be sure .

Thank for all.

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

closing since the submitter confirmed it's working now

Changed in gnome-panel:
status: Incomplete → Fix Released
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.