Setting file type to PNG in single-frame mode causes a crash

Bug #290803 reported by John Carlyle-Clarke
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Xvidcap
Unknown
Unknown
xvidcap (Ubuntu)
Triaged
Undecided
Unassigned

Bug Description

In the latest Ubuntu 8.10, setting the file type to PNG (either manually or automatically) in xvidcap causes a crash.

Versions: xvidcap 1.1.6-0.1ubuntu3, libavcodec-unstripped-51 3:0.svn20080206-12ubuntu3+unstripped5.

GDB and dump follows:-

johncc@gort:~$ gdb xvidcap
GNU gdb 6.8-debian
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
(no debugging symbols found)
(gdb) run
Starting program: /usr/bin/xvidcap
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(no debugging symbols found)
(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 0xb6817700 (LWP 19980)]

(xvidcap:19980): Gtk-WARNING **: Theme directory scalable/animations/small/16x16 of theme oxygen has no size field

(xvidcap:19980): Gtk-WARNING **: Theme directory scalable/animations/small/22x22 of theme oxygen has no size field

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated

(xvidcap:19980): Gtk-WARNING **: GtkSpinButton: setting an adjustment with non-zero page size is deprecated
[New Thread 0xb5868b90 (LWP 20011)]
*** glibc detected *** /usr/bin/xvidcap: double free or corruption (out): 0x09bd6810 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb6eb03f4]
/lib/tls/i686/cmov/libc.so.6(cfree+0x96)[0xb6eb2456]
/usr/lib/i686/cmov/libavformat.so.52(url_fclose+0x24)[0xb75fa584]
/usr/bin/xvidcap[0x8055149]
/usr/bin/xvidcap(do_record_thread+0x23)[0x805bf03]
/lib/tls/i686/cmov/libpthread.so.0[0xb703950f]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb6f227ee]
======= Memory map: ========
08048000-0807a000 r-xp 00000000 08:04 981124 /usr/bin/xvidcap
0807a000-0807b000 r--p 00031000 08:04 981124 /usr/bin/xvidcap
0807b000-0807c000 rw-p 00032000 08:04 981124 /usr/bin/xvidcap
0807c000-0809e000 rw-p 0807c000 00:00 0
09866000-09c64000 rw-p 09866000 00:00 0 [heap]
b4f00000-b4f21000 rw-p b4f00000 00:00 0
b4f21000-b5000000 ---p b4f21000 00:00 0
b502a000-b5037000 r-xp 00000000 08:04 572661 /lib/libgcc_s.so.1
b5037000-b5038000 r--p 0000c000 08:04 572661 /lib/libgcc_s.so.1
b5038000-b5039000 rw-p 0000d000 08:04 572661 /lib/libgcc_s.so.1
b504d000-b5068000 rw-s 00000000 00:09 4784154 /SYSV00000000 (deleted)
b5068000-b5069000 ---p b5068000 00:00 0
b5069000-b5869000 rwxp b5069000 00:00 0
b5869000-b596d000 rw-p b5869000 00:00 0
b596d000-b59f6000 r--p 00000000 08:04 361069 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Bold.ttf
b59f6000-b5a56000 rw-s 00000000 00:09 4751376 /SYSV00000000 (deleted)
b5a56000-b5a5a000 r-xp 00000000 08:04 196490 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5a5a000-b5a5b000 r--p 00003000 08:04 196490 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5a5b000-b5a5c000 rw-p 00004000 08:04 196490 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
b5a5d000-b613d000 r--p 00000000 08:04 459303 /usr/share/icons/gnome/icon-theme.cache
b613d000-b6444000 r--p 00000000 08:04 458017 /usr/share/icons/hicolor/icon-theme.cache
b6444000-b6548000 rw-p b6444000 00:00 0
b6548000-b65dd000 r--p 00000000 08:04 361068 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
b65dd000-b65df000 r-xp 00000000 08:04 262085 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b65df000-b65e0000 r--p 00001000 08:04 262085 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b65e0000-b65e1000 rw-p 00002000 08:04 262085 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
b65e1000-b65e7000 r--s 00000000 08:04 1311710 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-x86.cache-2
b65e7000-b65ea000 r--s 00000000 08:04 1311707 /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-x86.cache-2
b65ea000-b65eb000 r--s 00000000 08:04 1311704 /var/cache/fontconfig/e3fa16a14183b06aa45b3e009278fd14-x86.cache-2
b65eb000-b65ef000 r--s 00000000 08:04 1312272 /var/cache/fontconfig/921a30a17f0be15c70ac14043cb7a739-x86.cache-2
b65ef000-b65f1000 r--s 00000000 08:04 1311702 /var/cache/fontconfig/c69f04ab05004e31a6d5e715764f16d8-x86.cache-2
b65f1000-b65f4000 r--s 00000000 08:04 1311701 /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-x86.cache-2
b65f4000-b65f5000 r--s 00000000 08:04 1311700 /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-x86.cache-2
b65f5000-b65f8000 r--s 00000000 08:04 1311699 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-x86.cache-2
b65f8000-b65ff000 r--s 00000000 08:04 1311698 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-x86.cache-2
b65ff000-b6602000 r--s 00000000 08:04 1311696 /var/cache/fontconfig/de156ccd2eddbdc19d37a45b8b2aac9c-x86.cache-2
b6602000-b660a000 r--s 00000000 08:04 1311695 /var/cache/fontconfig/e3de0de479f42330eadf588a55fb5bf4-x86.cache-2
b660a000-b6615000 r--s 00000000 08:04 1312345 /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-x86.cache-2
b6615000-b6637000 r--s 00000000 08:04 1311690 /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-x86.cache-2
b6637000-b663a000 r--s 00000000 08:04 1311090 /var/cache/fontconfig/de9486f0b47a4d768a594cb4198cb1c6-x86.cache-2
b663a000-b6641000 r--s 00000000 08:04 1310073 /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-x86.cache-2
b6641000-b6647000 r--s 0000000
Program received signal SIGABRT, Aborted.
[Switching to Thread 0xb5868b90 (LWP 20011)]
0xb7f9e430 in __kernel_vsyscall ()
(gdb) backtrace
#0 0xb7f9e430 in __kernel_vsyscall ()
#1 0xb6e6c880 in raise () from /lib/tls/i686/cmov/libc.so.6
#2 0xb6e6e248 in abort () from /lib/tls/i686/cmov/libc.so.6
#3 0xb6eaa10d in ?? () from /lib/tls/i686/cmov/libc.so.6
#4 0xb6eb03f4 in ?? () from /lib/tls/i686/cmov/libc.so.6
#5 0xb6eb2456 in free () from /lib/tls/i686/cmov/libc.so.6
#6 0xb75fa584 in url_fclose (s=0x9bd6810) at /build/buildd/ffmpeg-debian-0.svn20080206/libavformat/aviobuf.c:606
#7 0x0806cc8d in xvc_ffmpeg_save_frame ()
#8 0x08055149 in ?? ()
#9 0x0805bf03 in do_record_thread ()
#10 0xb703950f in start_thread () from /lib/tls/i686/cmov/libpthread.so.0
#11 0xb6f227ee in clone () from /lib/tls/i686/cmov/libc.so.6

Revision history for this message
Alessio Treglia (quadrispro) wrote :

Can anyone confirm this on Karmic?

Changed in xvidcap (Ubuntu):
status: New → Incomplete
Revision history for this message
andres (michael-andres) wrote :
Download full text (6.6 KiB)

I also see this problem, for some reason after a while xvidcap did stop working.
The problem is hard reproducable, I simply start xvidcap press record and the GUI disapears. The command line shows the following output:
andres@schnecke:~$ xvidcap
[mpeg4 @ 0x8de85c0]removing common factors from framerate
[oss @ 0x8e44f30]/dev/dsp: Device or resource busy
*** glibc detected *** xvidcap: double free or corruption (!prev): 0x08e46f00 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0x791ff1]
/lib/tls/i686/cmov/libc.so.6[0x7936f2]
/lib/tls/i686/cmov/libc.so.6(cfree+0x6d)[0x7967cd]
/usr/lib/i686/cmov/libavformat.so.52(av_open_input_stream+0x15c)[0x8fc60c]
======= Memory map: ========
00110000-004c8000 r-xp 00000000 08:05 17729 /usr/lib/libgtk-x11-2.0.so.0.1800.3
004c8000-004c9000 ---p 003b8000 08:05 17729 /usr/lib/libgtk-x11-2.0.so.0.1800.3
004c9000-004cd000 r--p 003b8000 08:05 17729 /usr/lib/libgtk-x11-2.0.so.0.1800.3
004cd000-004cf000 rw-p 003bc000 08:05 17729 /usr/lib/libgtk-x11-2.0.so.0.1800.3
004cf000-004d1000 rw-p 00000000 00:00 0
004d1000-00563000 r-xp 00000000 08:05 17773 /usr/lib/libgdk-x11-2.0.so.0.1800.3
00563000-00565000 r--p 00092000 08:05 17773 /usr/lib/libgdk-x11-2.0.so.0.1800.3
00565000-00566000 rw-p 00094000 08:05 17773 /usr/lib/libgdk-x11-2.0.so.0.1800.3
00566000-005ac000 r-xp 00000000 08:05 18111 /usr/lib/libpango-1.0.so.0.2600.0
005ac000-005ad000 r--p 00045000 08:05 18111 /usr/lib/libpango-1.0.so.0.2600.0
005ad000-005ae000 rw-p 00046000 08:05 18111 /usr/lib/libpango-1.0.so.0.2600.0
005ae000-005ea000 r-xp 00000000 08:05 17216 /usr/lib/libgobject-2.0.so.0.2200.3
005ea000-005eb000 r--p 0003b000 08:05 17216 /usr/lib/libgobject-2.0.so.0.2200.3
005eb000-005ec000 rw-p 0003c000 08:05 17216 /usr/lib/libgobject-2.0.so.0.2200.3
005ec000-005f0000 r-xp 00000000 08:05 17885 /usr/lib/libgthread-2.0.so.0.2200.3
005f0000-005f1000 r--p 00003000 08:05 17885 /usr/lib/libgthread-2.0.so.0.2200.3
005f1000-005f2000 rw-p 00004000 08:05 17885 /usr/lib/libgthread-2.0.so.0.2200.3
005f2000-006a7000 r-xp 00000000 08:05 1730920 /lib/libglib-2.0.so.0.2200.3
006a7000-006a8000 r--p 000b4000 08:05 1730920 /lib/libglib-2.0.so.0.2200.3
006a8000-006a9000 rw-p 000b5000 08:05 1730920 /lib/libglib-2.0.so.0.2200.3
006a9000-006be000 r-xp 00000000 08:05 1746313 /lib/tls/i686/cmov/libpthread-2.10.1.so
006be000-006bf000 r--p 00014000 08:05 1746313 /lib/tls/i686/cmov/libpthread-2.10.1.so
006bf000-006c0000 rw-p 00015000 08:05 1746313 /lib/tls/i686/cmov/libpthread-2.10.1.so
006c0000-006c2000 rw-p 00000000 00:00 0
006c2000-006cb000 r-xp 00000000 08:05 417881 /usr/lib/i686/cmov/libavdevice.so.52.1.0
006cb000-006cc000 r--p 00008000 08:05 417881 /usr/lib/i686/cmov/libavdevice.so.52.1.0
006cc000-006cd000 rw-p 00009000 08:05 417881 /usr/lib/i686/cmov/libavdevice.so.52.1.0
006cd000-006f8000 r-xp 00000000 08:05 417891 /usr/lib/i686/cmov/libswscale.so.0.7.1
006f8000-006f9000 r--p 0002a000 08:05 417891 /usr/lib/i686/cmov/libswscale.so.0.7.1
006f9000-006fa000 rw-p 0002b000 08:05 417891 /usr/lib/i686/cmov/libswscale.so.0.7.1
006fa000-00706000 r-xp 0000000...

Read more...

Revision history for this message
Alessio Treglia (quadrispro) wrote :

Forwarded, thanks.

Changed in xvidcap (Ubuntu):
status: Incomplete → Triaged
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.