GNOME Bugzilla – Bug 427681
Freezes on close action if lircd is running
Last modified: 2007-04-09 23:37:29 UTC
This bug was forwarded from the Debian BTS. http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418020 "Totem freezes every time i close it. After some investigation i could see it doesn't crash if lircd isn't running. On a terminal I get this after i tried to close totem: acidman@acidmachine:~$ totem *** glibc detected *** double free or corruption (fasttop): 0x084341d8 ***" Version 2.18.1 with Xine backend. acidman@acidmachine:~$ LD_LIBRARY_PATH=/usr/lib/debug gdb totem GNU gdb 6.6-debian Copyright (C) 2006 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 "/usr/lib/debug/libthread_db.so.1". (gdb) run Starting program: /usr/bin/totem Failed to read a valid object file image from memory. [Thread debugging using libthread_db enabled] [New Thread 16384 (LWP 25707)] [New Thread 32769 (LWP 25710)] [New Thread 16386 (LWP 25711)] [New Thread 32771 (LWP 25712)] [New Thread 49156 (LWP 25713)] [Thread 49156 (LWP 25713) exited] [New Thread 65540 (LWP 25714)] [Thread 65540 (LWP 25714) exited] [New Thread 81925 (LWP 25715)] [Thread 81925 (LWP 25715) exited] [New Thread 98308 (LWP 25716)] [New Thread 114693 (LWP 25717)] [New Thread 131078 (LWP 25718)] [New Thread 147463 (LWP 25719)] [New Thread 163848 (LWP 25720)] [New Thread 180233 (LWP 25721)] *** glibc detected *** double free or corruption (fasttop): 0x0841b868 *** Program received signal SIGABRT, Aborted.
+ Trace 126118
Thread 16384 (LWP 25707)
(gdb)
Created attachment 86055 [details] [review] Remove g_free Looking at the LIRC documentation (http://www.lirc.org/html/technical.html#library), no extra free calls are needed after lirc_freeconfig. Attached is a patch to remove our call to g_free.
Please don't reassign bugs to yourself, thanks.
Thanks for the patch, committed to gnome-2-18 and trunk. 2007-04-09 Bastien Nocera <hadess@hadess.net> * src/totem-remote.c: (totem_remote_finalize): Patch from Philip Withnall <bugzilla@tecnocode.co.uk> to avoid crashing on exit when LIRC is being used (Closes: #427681)