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 350118 - crash on Movie Player
crash on Movie Player
Status: RESOLVED DUPLICATE of bug 348993
Product: totem
Classification: Core
Component: general
1.5.x
Other All
: High critical
: ---
Assigned To: General Totem maintainer(s)
General Totem maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2006-08-06 04:27 UTC by Brent Smith (smitten)
Modified: 2006-08-15 01:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16



Description Brent Smith (smitten) 2006-08-06 04:27:33 UTC
What were you doing when the application crashed?
I clicked on "Play CDROM 1" from the File menu.

After totem crashed, I've been unable to restart it from the terminal.  The process starts, but then seems to
finish almost immediately.  The following is the end of the output from an strace on the process:

access("/home/testuser/.gnome2", F_OK)  = 0
stat64("/home/testuser/.gnome2", {st_mode=S_IFDIR|0700, st_size=4096, ...}) = 0
open("/tmp", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY) = 14
fstat64(14, {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
fcntl64(14, F_SETFD, FD_CLOEXEC)        = 0
getdents64(14, /* 26 entries */, 4096)  = 1016
stat64("/tmp/totem.testuser.3969373181", {st_mode=S_IFSOCK|0755, st_size=0, ...}) = 0
geteuid32()                             = 1001
close(14)                               = 0
stat64("/tmp/totem.testuser.3969373181", {st_mode=S_IFSOCK|0755, st_size=0, ...}) = 0
socket(PF_FILE, SOCK_STREAM, 0)         = 14
connect(14, {sa_family=AF_FILE, path="/tmp/totem.testuser.3969373181"}, 110) = 0
fstat64(14, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
fcntl64(14, F_GETFL)                    = 0x2 (flags O_RDWR)
write(14, "014 \n", 5)                  = 5
close(14)                               = 0
close(14)                               = -1 EBADF (Bad file descriptor)
writev(13, [{"GIOP\1\2\1\5\0\0\0\0", 12}], 1) = 12
close(13)                               = 0
writev(11, [{"GIOP\1\2\1\5\0\0\0\0", 12}], 1) = 12
close(11)                               = 0
close(9)                                = 0
close(8)                                = 0
unlink("/tmp/orbit-testuser/linc-139d-0-35f78d2873735") = 0
close(12)                               = 0
exit_group(0)                           = ?
testuser@home:~$ 



Distribution: Ubuntu 6.06 (dapper)
Gnome Release: 2.15.90 2006-08-05 (JHBuild)
BugBuddy Version: 2.15.91

Memory status: size: 53796864 vsize: 0 resident: 53796864 share: 0 rss: 25010176 rss_rlim: 0
CPU usage: start_time: 1154838221 rtime: 0 utime: 358 stime: 0 cutime:334 cstime: 0 timeout: 24 it_real_value: 0 frequency: 2

Backtrace was generated from '/opt/gnome2/bin/totem'

Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
[Thread debugging using libthread_db enabled]
[New Thread -1228519744 (LWP 4975)]
[New Thread -1242907728 (LWP 4978)]
[New Thread -1234433104 (LWP 4977)]
0xffffe410 in __kernel_vsyscall ()
  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/i686/cmov/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 867
  • #3 <signal handler called>
  • #4 __kernel_vsyscall
  • #5 raise
    from /lib/tls/i686/cmov/libc.so.6
  • #6 abort
    from /lib/tls/i686/cmov/libc.so.6
  • #7 _dbus_abort
    at dbus-sysdeps.c line 89
  • #8 _dbus_real_assert
  • #9 send_no_return_values
    at dbus-bus.c line 1020
  • #10 dbus_bus_remove_match
    at dbus-bus.c line 1154
  • #11 libhal_ctx_shutdown
    at libhal.c line 3050
  • #12 cd_cache_new_hal_ctx
    at totem-disc.c line 281
  • #13 cd_cache_new
    at totem-disc.c line 338
  • #14 totem_cd_detect_type_with_url
    at totem-disc.c line 751
  • #15 totem_action_load_media_device
    at totem.c line 428
  • #16 totem_action_play_media_device
    at totem.c line 472
  • #17 on_play_disc_activate
    at totem-menu.c line 544
  • #18 g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #19 g_closure_invoke
    at gclosure.c line 490
  • #20 signal_emit_unlocked_R
    at gsignal.c line 2438
  • #21 g_signal_emit_valist
    at gsignal.c line 2197
  • #22 g_signal_emit
    at gsignal.c line 2241
  • #23 IA__gtk_widget_activate
    at gtkwidget.c line 3932
  • #24 IA__gtk_menu_shell_activate_item
    at gtkmenushell.c line 1024
  • #25 gtk_menu_shell_button_release
    at gtkmenushell.c line 630
  • #26 gtk_menu_button_release
    at gtkmenu.c line 2619
  • #27 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #28 g_type_class_meta_marshal
    at gclosure.c line 567
  • #29 g_closure_invoke
    at gclosure.c line 490
  • #30 signal_emit_unlocked_R
    at gsignal.c line 2476
  • #31 g_signal_emit_valist
    at gsignal.c line 2207
  • #32 g_signal_emit
    at gsignal.c line 2241
  • #33 gtk_widget_event_internal
    at gtkwidget.c line 3901
  • #34 IA__gtk_widget_event
    at gtkwidget.c line 3707
  • #35 IA__gtk_propagate_event
    at gtkmain.c line 2187
  • #36 IA__gtk_main_do_event
    at gtkmain.c line 1421
  • #37 gdk_event_dispatch
    at gdkevents-x11.c line 2320
  • #38 g_main_dispatch
    at gmain.c line 2043
  • #39 g_main_context_dispatch
    at gmain.c line 2594
  • #40 g_main_context_iterate
    at gmain.c line 2675
  • #41 g_main_loop_run
    at gmain.c line 2879
  • #42 IA__gtk_main
    at gtkmain.c line 1000
  • #43 main
    at totem.c line 3664

Comment 1 Bastien Nocera 2006-08-06 10:22:50 UTC
Which version of D-Bus are you using?
Do you get any errors on the command-line when reproducing this bug?
Comment 2 Brent Smith (smitten) 2006-08-06 16:27:01 UTC
DBus from main branch as defined in JHBuild as of yesterday.

I saw a similar problem with being unable to restart the application after it had crashed with gedit yesterday, see bug 350122.  Removing the file in /tmp seemed to fix the problem.

Will post the error from the console shortly.
Comment 3 Brent Smith (smitten) 2006-08-06 16:27:44 UTC
** (totem:6474): WARNING **: Couldn't get the system D-Bus: Failed to connect to socket /opt/gnome2/var/run/dbus/system_bus_socket: No such file or directory
6474: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 2781.
This is normally a bug in some application using the D-Bus library.
6474: assertion failed "(error) == NULL || dbus_error_is_set ((error))" file "dbus-bus.c" line 1020 function send_no_return_values

** (bug-buddy:6481): WARNING **: Couldn't load icon for Bonobo Component Browser

** (bug-buddy:6481): WARNING **: Couldn't load icon for Open Folder
glibtop: This machine has 1 CPUs, 1 are being monitored.
Error while running hook_stop:
Invalid type combination in ordering comparison.
Comment 4 Bastien Nocera 2006-08-07 12:03:06 UTC
That's the error that triggers it all:
** (totem:6474): WARNING **: Couldn't get the system D-Bus: Failed to connect
to socket /opt/gnome2/var/run/dbus/system_bus_socket: No such file or directory

Could you step inside cd_cache_new_hal_ctx() and tell me which step it's taking?
It's supposed to print the second error somewhere between those lines:
  libhal_ctx_shutdown (ctx, NULL);
  libhal_ctx_free (ctx);
  if (conn != NULL)
    dbus_connection_unref (conn);
Comment 5 Brent Smith (smitten) 2006-08-08 04:52:44 UTC
I think the problem is that you are trying to call libhal_ctx_shutdown with an uninitialized ctx.  The ctx pointer is non-null, but all the variables inside the struct are 0/NULL.  Just a guess though...

testuser@home:~$ gdb /opt/gnome2/bin/totem
GNU gdb 6.4-debian
Copyright 2005 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

gdb> run
[Thread debugging using libthread_db enabled]
[New Thread -1228421440 (LWP 6736)]
[New Thread -1234293840 (LWP 6740)]
[New Thread -1242768464 (LWP 6741)]

Program received signal SIGINT, Interrupt.
[Switching to Thread -1228421440 (LWP 6736)]
Error while running hook_stop:
Invalid type combination in ordering comparison.
0xffffe410 in __kernel_vsyscall ()
gdb> break cd_cache_new_hal_ctx
Breakpoint 1 at 0xb7f9853d: file totem-disc.c, line 257.
gdb> continue
Error while running hook_stop:
Invalid type combination in ordering comparison.

Breakpoint 1, cd_cache_new_hal_ctx () at totem-disc.c:257
257       ctx = libhal_ctx_new ();
gdb> until
Error while running hook_stop:
Invalid type combination in ordering comparison.
258       if (ctx == NULL)
gdb> n
Error while running hook_stop:
Invalid type combination in ordering comparison.
0xb7f98549      258       if (ctx == NULL)
gdb> until
Error while running hook_stop:
Invalid type combination in ordering comparison.
261       dbus_error_init (&error);
gdb> 
Error while running hook_stop:
Invalid type combination in ordering comparison.
266       conn = dbus_bus_get_private (DBUS_BUS_SYSTEM, &error);
gdb> 
Error while running hook_stop:
Invalid type combination in ordering comparison.
268       if (conn != NULL && !dbus_error_is_set (&error)) {
gdb> 
Error while running hook_stop:
Invalid type combination in ordering comparison.
276       if (dbus_error_is_set (&error)) {
gdb> 
Error while running hook_stop:
Invalid type combination in ordering comparison.
277         g_warning ("Couldn't get the system D-Bus: %s", error.message);
gdb> 

** (totem:6736): WARNING **: Couldn't get the system D-Bus: Failed to connect to socket /opt/gnome2/var/run/dbus/system_bus_socket: No such file or directory
Error while running hook_stop:
Invalid type combination in ordering comparison.
278         dbus_error_free (&error);
gdb> 
Error while running hook_stop:
Invalid type combination in ordering comparison.
281       libhal_ctx_shutdown (ctx, NULL);
gdb> 
6736: arguments to dbus_connection_send_with_reply_and_block() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 2781.
This is normally a bug in some application using the D-Bus library.
6736: assertion failed "(error) == NULL || dbus_error_is_set ((error))" file "dbus-bus.c" line 1020 function send_no_return_values

Program received signal SIGABRT, Aborted.
Error while running hook_stop:
Invalid type combination in ordering comparison.
0xffffe410 in __kernel_vsyscall ()
gdb> 
Comment 6 Bastien Nocera 2006-08-14 06:51:47 UTC
I believe this bug is fixed with the patch from bug 348993. Could you please test?
Comment 7 Brent Smith (smitten) 2006-08-15 00:06:38 UTC
All good, I get the dialog box "Could not connect to the HAL daemon"

Feel free to close and thanks for fixing the bug!
Comment 8 Bastien Nocera 2006-08-15 01:03:47 UTC
Thank Jonathan, who caught we weren't using hal_ctx_init().

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