After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 329015 - hangs on startup if esd not running
hangs on startup if esd not running
Status: RESOLVED OBSOLETE
Product: esound
Classification: Deprecated
Component: general
unspecified
Other Linux
: Normal critical
: ---
Assigned To: Esound Maintainers
Esound Maintainers
: 346403 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2006-01-28 21:29 UTC by Luis Villa
Modified: 2009-05-10 21:36 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Esound suspend/resume. (567 bytes, text/plain)
2006-02-02 13:36 UTC, Snark
Details

Description Luis Villa 2006-01-28 21:29:35 UTC
I'm using the ubuntu snaps from http://snapshots.gnomemeeting.net/ (for breezy, but I'm using on dapper- maybe that is relevant). Anyway, esd does not run by default for me, and when I start ekiga it hangs, looking for esd:

  • #0 __kernel_vsyscall
  • #1 connect
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 esd_close
    from /usr/lib/libesd.so.0
  • #3 esd_open_sound
    from /usr/lib/libesd.so.0
  • #4 gnomemeeting_sound_daemons_suspend
  • #5 GnomeMeeting::DetectDevices
  • #6 main

if I start esd, ekiga runs apparently normally. (Though it does not detect my sound devices, but maybe that is a different problem?)
Comment 1 Luis Villa 2006-01-28 21:39:37 UTC
Having now been told that there are dapper snaps... I've upgraded, but still get the same problem and same trace.
Comment 2 Snark 2006-01-29 04:25:31 UTC
Hmmm... I'm using dapper, I never have esd running either but I never had that crash.

I don't see what bad can happen when I look at the relevant code in src/devices/audio.cpp:
void
gnomemeeting_sound_daemons_suspend (void)
{
#ifndef DISABLE_GNOME
  int esd_client = 0;

  /* Put ESD into standby mode */
  esd_client = esd_open_sound (NULL);

  if (esd_client >= 0) {

    esd_standby (esd_client);
    esd_close (esd_client);
  }
#endif
}
Comment 3 Luis Villa 2006-01-29 04:35:32 UTC
It isn't a crash, 'just' a hang on startup. The trace is from when I attach gdb to the hung process.
Comment 4 Snark 2006-01-29 05:20:50 UTC
Well, this is confusing : one could think the hang is due to the esd_open_sound function not finding the daemon. This is very tempting.

Unfortunately, since it doesn't hang here, that explanation has to be ruled out.

Could you try "thread apply all bt full", to see if the hang doesn't happen somewhere else ? (say, like for dbus...)
Comment 5 Damien Sandras 2006-01-29 11:20:55 UTC
The fact that it doesn't detect your sound devices indicates another problem, which, I think, is related to your configuration.

About ESD, I don't run ESD either, and the ESD code is 4 years old in Ekiga, so I have no explanation unfortunately. Perhaps thread apply all bt full will give another hint.
Comment 6 Luis Villa 2006-01-29 14:14:57 UTC
Full trace:
Program received signal SIGINT, Interrupt.
[Switching to Thread -1243403616 (LWP 23806)]
0xffffe410 in __kernel_vsyscall ()
(gdb) thread apply all bt full


Comment 7 Snark 2006-01-29 14:56:41 UTC
Eh... nothing is initialized yet ! It happens really early... strange and interesting.
Comment 8 Snark 2006-02-02 13:36:17 UTC
Created attachment 58583 [details]
Esound suspend/resume.

Let's see if/how that little test program works on your configuration... that should settle if we're chasing the right fox.
Comment 9 Luis Villa 2006-02-03 04:32:58 UTC
What should I be looking for from it? currently it just starts and exits. 
Comment 10 Snark 2006-02-03 06:33:52 UTC
I was trying to see if this program crashed, freezed of whatever... if it doesn't, then probably the problem is not where we thought.

Now where is it !?
Comment 11 Snark 2006-02-22 13:05:16 UTC
Does anybody else have the problem ? I'm really stuck here...
Comment 12 Snark 2006-04-26 08:45:11 UTC
Someone reported another crash where the evil happens in esound code:

https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=189940

The backtrace is not exactly the same though :-/
(and the user doesn't use ubuntu)
Comment 13 Snark 2006-08-25 17:28:06 UTC
*** Bug 346403 has been marked as a duplicate of this bug. ***
Comment 14 Snark 2006-08-31 19:12:00 UTC
Two people reporting esound issues and I have no idea what the problem can be :-/

100% pure joy
Comment 15 Damien Sandras 2006-11-21 11:50:42 UTC
Reassigning the bug to ESD. We correctly ask to suspend ESD, so the problem is outside of Ekiga.
Comment 16 André Klapper 2008-11-15 17:25:59 UTC
I guess this is rather OBSOLETE nowadays and can be closed?
Comment 17 Damien Sandras 2008-11-17 21:35:09 UTC
Probably yes.
Comment 18 Tobias Mueller 2009-05-10 21:36:30 UTC
Closing as per comment #16.