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 312275 - audio preview on n-c-b make nautilus crashes
audio preview on n-c-b make nautilus crashes
Status: RESOLVED FIXED
Product: nautilus-cd-burner
Classification: Deprecated
Component: cd-burner
2.11.x
Other Linux
: High critical
: ---
Assigned To: Nautilus CD Burner Maintainers
Nautilus CD Burner Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-08-01 20:02 UTC by Baptiste Mille-Mathias
Modified: 2005-10-20 14:37 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12


Attachments
workaround patch (1.46 KB, patch)
2005-08-25 15:21 UTC, William Jon McCann
none Details | Review

Description Baptiste Mille-Mathias 2005-08-01 20:02:11 UTC
Distribution/Version: ubuntu breezy

1/ Create a new data CD with n-c-b
2/ Put some mp3 or ogg in n-c-b
3/ put the cursor over an audio file

Result:
Nautilus crashes
100 % reproductible.

Note for the generation of future:
ATM, nautilus uses mpg123 to play (perhaps in a near future nautilus will use
gstreamer)

Find the backtrace herebelow, generated find debug libs and apps

(no debugging symbols found)
Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".
(no debugging symbols found)
`system-supplied DSO at 0xffffe000' has disappeared; keeping its symbols.
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
[Thread debugging using libthread_db enabled]
[New Thread -1225808192 (LWP 7690)]
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 749
  • #3 <signal handler called>
  • #4 IA__g_logv
    at gmessages.c line 503
  • #5 IA__g_log
    at gmessages.c line 517
  • #6 mapping_protocol_request_destroy
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #7 mapping_protocol_reply_decode
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #8 ??
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #9 ??
  • #10 ??
  • #11 ??
  • #12 ??
  • #13 ??
  • #14 ??
  • #15 ??
  • #16 ??
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #17 ??
  • #18 ??
  • #19 ??
  • #20 ??
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #21 ??
  • #22 ??
  • #23 ??
  • #24 ??
    from /usr/lib/gnome-vfs-2.0/modules/libmapping.so
  • #25 ??
  • #26 ??
  • #27 ??
  • #28 ??
  • #29 ??
  • #30 ??
  • #31 ??
  • #32 ??
  • #33 ??
  • #34 ??
  • #35 ??
  • #36 ??
  • #37 ??
  • #38 ??
  • #39 ??
  • #40 ??
    from /usr/lib/libgnomevfs-2.so.0
  • #41 ??
  • #42 ??
  • #43 ??
  • #44 gnome_vfs_open_uri_cancellable
    at gnome-vfs-cancellable-ops.c line 57

Comment 1 Brent Smith (smitten) 2005-08-01 22:46:57 UTC
Thanks for the bug report. Unfortunately, that stack trace is not very useful in
determining the cause of the crash. Can you get us one with debugging symbols?
Please see http://live.gnome.org/GettingTraces for more information on how to do so.
Comment 2 Baptiste Mille-Mathias 2005-08-02 21:30:33 UTC
Hello,

I can't get a more debug strace as I have all gtk/gnome debug versions of
packages installed.
I don't know why it produce a useless stacktrace.
Comment 3 Baptiste Mille-Mathias 2005-08-09 21:02:28 UTC
I've this output in .xsession-errors:
** ERROR **: Read R instead of E as handshake
aborting...

** ERROR **: Read  instead of R as handshake
aborting...
Comment 4 Olav Vitters 2005-08-09 21:38:36 UTC
To debug under jhbuild: Make sure you are in the audio group. Enable esd
('Enable sound server startup' in Sound Preferences) + verify esd really started
(didn't for me). If it didn't start, manually start esd + killall nautilis.

Backtrace was generated from '/opt/jhbuild/bin/nautilus'

Using host libthread_db library "/lib/tls/libthread_db.so.1".
`shared object read from target memory' has disappeared; keeping its symbols.
[Thread debugging using libthread_db enabled]
[New Thread -1227163968 (LWP 13842)]
[New Thread -1246995536 (LWP 13845)]
[New Thread -1245434960 (LWP 13844)]
[New Thread -1238955088 (LWP 13843)]
0xffffe410 in __kernel_vsyscall ()

Thread 1 (Thread -1227163968 (LWP 13842))

  • #0 __kernel_vsyscall
  • #1 __waitpid_nocancel
    from /lib/tls/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 749

Comment 5 William Jon McCann 2005-08-23 22:16:03 UTC
I can reproduce this.  It looks like this occurs because of a nasty interaction
between the fork in nautilus/src/file-manager/fm-icon-view.c and the threading
in gnome-vfs.

Normally, the IO watch function is turned off on the client before a request is
sent to the daemon and a reply is read back.  This prevents the io watch
callback from trying to read the reply.

In this case, the forked copy is not able to turn off the io watch callback and
the two functions both try to read the reply.
Comment 6 William Jon McCann 2005-08-24 22:27:07 UTC
http://www.gnu.org/software/libc/manual/html_node/Threads-and-Fork.html#Threads%20and%20Fork

However, there doesn't seem to be an equivalent to pthread_atfork in GThread.
Comment 7 William Jon McCann 2005-08-25 15:21:35 UTC
Created attachment 51323 [details] [review]
workaround patch

This is a workaround that disables audio preview in burn://.
Comment 8 William Jon McCann 2005-08-25 15:22:43 UTC
We can work on a real solution after the freeze.
Comment 9 Alexander Larsson 2005-08-29 09:19:47 UTC
Commited the workaround. Should we keep the bug around?
Comment 10 William Jon McCann 2005-08-29 14:52:33 UTC
Thanks Alex.  I'll keep this bug around until I can look at the fork issue in
more depth.
Comment 11 William Jon McCann 2005-10-20 14:37:14 UTC
Actually, I'll close it.