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 594360 - gstreamer hanging,,
gstreamer hanging,,
Status: RESOLVED INCOMPLETE
Product: GStreamer
Classification: Platform
Component: gst-rtsp-server
git master
Other Linux
: Normal blocker
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-09-07 10:22 UTC by sreerenj
Modified: 2009-10-28 16:55 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description sreerenj 2009-09-07 10:22:55 UTC
When i tried to run my application to record a video from a panasonic ip camera,it run in sometimes and not always.In some cases the program is hanging on th line where i setting up the camera link to gnomevfssrc.


g_object_set(G_OBJECT(tdst_Vpipeline->source),"location",path,NULL);


where the path is the cameralink.

when i tried it with gdb i got, "Detaching after fork from child process 27945." after this line.


And the follwing is what i get,when i run it my machine,


path setting of panasonic cam
*** glibc detected *** ./a.out: double free or corruption (!prev): 0x090f3f68 ***
======= Backtrace: =========
/lib/libc.so.6[0x9bb874]
/lib/libc.so.6(cfree+0x96)[0x9bd8d6]
/lib/libglib-2.0.so.0(g_free+0x36)[0x2a26356]
/usr/lib/libORBit-2.so.0(giop_recv_buffer_unuse+0x49)[0xb64f19]
/usr/lib/libORBit-2.so.0(giop_connection_handle_input+0xe0)[0xb65440]
/usr/lib/libORBit-2.so.0[0xb84ca3]
/usr/lib/libORBit-2.so.0[0xb87416]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1e8)[0x2a1e098]
/lib/libglib-2.0.so.0[0x2a21743]
/lib/libglib-2.0.so.0(g_main_loop_run+0x1d2)[0x2a21c62]
./a.out[0x804baff]
/lib/libpthread.so.0[0xaf132f]
/lib/libc.so.6(clone+0x5e)[0xa2c20e]
======= Memory map: ========
00110000-00111000 r-xp 00110000 00:00 0          [vdso]
00111000-001cd000 r-xp 00000000 fd:00 4126982    /usr/local/lib/libgstreamer-0.10.so.0.21.0
001cd000-001d1000 rw-p 000bb000 fd:00 4126982    /usr/local/lib/libgstreamer-0.10.so.0.21.0
001d1000-001d2000 rw-p 001d1000 00:00 0
001d2000-001dc000 r-xp 00000000 fd:00 5980280    /lib/libnss_files-2.8.so
001dc000-001dd000 r--p 0000a000 fd:00 5980280    /lib/libnss_files-2.8.so
001dd000-001de000 rw-p 0000b000 fd:00 5980280    /lib/libnss_files-2.8.so
001de000-001e6000 r-xp 00000000 fd:00 4491235    /usr/local/lib/gstreamer-0.10/libgstgnomevfs.so
001e6000-001e7000 rw-p 00007000 fd:00 4491235    /usr/local/lib/gstreamer-0.10/libgstgnomevfs.so
001e7000-001f5000 r-xp 00000000 fd:00 2965526    /usr/local/lib/libgsttag-0.10.so.0.17.0
001f5000-001f6000 rw-p 0000e000 fd:00 2965526    /usr/local/lib/libgsttag-0.10.so.0.17.0
001f6000-00230000 r-xp 00000000 fd:00 4123122    /usr/local/lib/libgstbase-0.10.so.0.21.0
00230000-00231000 rw-p 00039000 fd:00 4123122    /usr/local/lib/libgstbase-0.10.so.0.21.0
00231000-00237000 r-xp 00000000 fd:00 4491301    /usr/local/lib/gstreamer-0.10/libgstmultipart.so
00237000-00238000 rw-p 00005000 fd:00 4491301    /usr/local/lib/gstreamer-0.10/libgstmultipart.so
00238000-00263000 r-xp 00000000 fd:00 4491185    /usr/local/lib/gstreamer-0.10/libgstcoreelements.so
00263000-00264000 rw-p 0002b000 fd:00 4491185    /usr/local/lib/gstreamer-0.10/libgstcoreelements.so
00264000-00271000 r-xp 00000000 fd:00 4491347    /usr/local/lib/gstreamer-0.10/libgstjpeg.so
00271000-00272000 rw-p 0000d000 fd:00 4491347    /usr/local/lib/gstreamer-0.10/libgstjpeg.so
00272000-00278000 r-xp 00000000 fd:00 4491221    /usr/local/lib/gstreamer-0.10/libgstvideorate.so
00278000-00279000 rw-p 00005000 fd:00 4491221    /usr/local/lib/gstreamer-0.10/libgstvideorate.so
00279000-00299000 r-xp 00000000 fd:00 2965531    /usr/local/lib/libgstaudio-0.10.so.0.17.0
00299000-0029a000 rw-p 00020000 fd:00 2965531    /usr/local/lib/libgstaudio-0.10.so.0.17.0
0029a000-002a6000 r-xp 00000000 fd:00 4127098    /usr/local/lib/libgstinterfaces-0.10.so.0.17.0
002a6000-002a7000 rw-p 0000c000 fd:00 4127098    /usr/local/lib/libgstinterfaces-0.10.so.0.17.0
002a7000-002b5000 r-xp 00000000 fd:00 4491193    /usr/local/lib/gstreamer-0.10/libgstaudioconvert.so
002b5000-002b6000 rw-p 0000d000 fd:00 4491193    /usr/local/lib/gstreamer-0.10/libgstaudioconvert.so
002b6000-002c3000 r-xp 00000000 fd:00 4491211    /usr/local/lib/gstreamer-0.10/libgstaudioresample.so
002c3000-002c5000 rw-p 0000d000 fd:00 4491211    /usr/local/lib/gstreamer-0.10/libgstaudioresample.so
002c5000-002c9000 r-xp 00000000 fd:00 4491195    /usr/local/lib/gstreamer-0.10/libgstaudiorate.so
002c9000-002ca000 rw-p 00003000 fd:00 4491195    /usr/local/lib/gstreamer-0.10/libgstaudiorate.so
002ca000-002cf000 r-xp 00000000 fd:00 4491460    /usr/local/lib/gstreamer-0.10/libgstfaac.so
002cf000-002d0000 rw-p 00004000 fd:00 4491460    /usr/local/lib/gstreamer-0.10/libgstfaac.so
002d0000-002de000 r-xp 00000000 fd:00 2867611    /usr/lib/libfaac.so.0.0.0
002de000-002e1000 rw-p 0000e000 fd:00 2867611    /usr/lib/libfaac.so.0.0.0
002e1000-00300000 r-xp 00000000 fd:00 4491261    /usr/local/lib/gstreamer-0.10/libgstavi.so
00300000-00301000 rw-p 0001e000 fd:00 4491261    /usr/local/lib/gstreamer-0.10/libgstavi.so
00301000-0030c000 r-xp 00000000 fd:00 2965559    /usr/local/lib/libgstriff-0.10.so.0.17.0
0030c000-0030d000 rw-p 0000b000 fd:00 2965559    /usr/local/lib/libgstriff-0.10.so.0.17.0
0030d000-0032c000 r-xp 00000000 fd:00 4514087    /usr/lib/gnome-vfs-2.0/modules/libhttp.so
0032c000-0032d000 rw-p 0001e000 fd:00 4514087    /usr/lib/gnome-vfs-2.0/modules/libhttp.so
0034d000-0035d000 r-xp 00000000 fd:00 5980395    /lib/libbz2.so.1.0.4
0035d000-0035e000 rw-p 00010000 fd:00 5980395    /lib/libbz2.so.1.0.4
00376000-004bf000 r-xp 00000000 fd:00 4125824    /usr/lib/libxml2.so.2.6.32
004bf000-004c4000 rw-p 00149000 fd:00 4125824    /usr/lib/libxml2.so.2.6.32
004c4000-004c5000 rw-p 004c4000 00:00 0
004e5000-004f2000 r-xp 00000000 fd:00 5980296    /lib/libgcc_s-4.3.0-20080428.so.1
004f2000-004f3000 rw-p 0000c000 fd:00 5980296    /lib/libgcc_s-4.3.0-20080428.so.1
004f5000-004f8000 r-xp 00000000 fd:00 4127094    /usr/lib/libavahi-glib.so.1.0.1
004f8000-004f9000 rw-p 00002000 fd:00 4127094    /usr/lib/libavahi-glib.so.1.0.1
0053b000-00568000 r-xp 00000000 fd:00 2867676    /usr/lib/libgssapi_krb5.so.2.2
00568000-0056a000 rw-p 0002d000 fd:00 2867676    /usr/lib/libgssapi_krb5.so.2.2
0056c000-00586000 r-xp 00000000 fd:00 5980338    /lib/libselinux.so.1
00586000-00587000 r--p 00019000 fd:00 5980338    /lib/libselinux.so.1
00587000-00588000 rw-p 0001a000 fd:00 5980338    /lib/libselinux.so.1
0058a000-005ea000 r-xp 00000000 fd:00 4128303    /usr/lib/liboil-0.3.so.0.2.0
005ea000-00601000 rw-p 00060000 fd:00 4128303    /usr/lib/liboil-0.3.so.0.2.0
00601000-00603000 rw-p 00601000 00:00 0
006d4000-006df000 r-xp 00000000 fd:00 4127589    /usr/lib/libavahi-common.so.3.5.0
006df000-006e0000 rw-p 0000a000 fd:00 4127589    /usr/lib/libavahi-common.so.3.5.0
006e2000-006f1000 r-xp 00000000 fd:00 4127591    /usr/lib/libavahi-client.so.3.2.4
006f1000-006f2000 rw-p 0000f000 fd:00 4127591    /usr/lib/libavahi-client.so.3.2.4
006fa000-006fc000 r-xp 00000000 fd:00 5980556    /lib/libutil-2.8.so
006fc000-006fd000 r--p 00001000 fd:00 5980556    /lib/libutil-2.8.so
006fd000-006fe000 rw-p 00002000 fd:00 5980556    /lib/libutil-2.8.so
00713000-00737000 r-xp 00000000 fd:00 2867674    /usr/lib/libk5crypto.so.3.1
00737000-00738000 rw-p 00024000 fd:00 2867674    /usr/lib/libk5crypto.so.3.1
0073a000-0073e000 r-xp 00000000 fd:00 5980327    /lib/libgthread-2.0.so.0.1600.3
0073e000-0073f000 rw-p 00003000 fd:00 5980327    /lib/libgthread-2.0.so.0.1600.3
00742000-00758000 r-xp 00000000 fd:00 5980487    /lib/libnsl-2.8.so
00758000-00759000 r--p 00015000 fd:00 5980487    /lib/libnsl-2.8.so
00759000-0075a000 rw-p 00016000 fd:00 5980487    /lib/libnsl-2.8.so
0075a000-0075c000 rw-p 0075a000 00:00 0
007a2000-007bf000 r-xp 00000000 fd:00 4127091    /usr/lib/libdbus-glib-1.so.2.1.0
007bf000-007c0000 rw-p 0001d000 fd:00 4127091    /usr/lib/libdbus-glib-1.so.2.1.0
0085c000-0087e000 r-xp 00000000 fd:00 4125044    /usr/lib/libjpeg.so.62.0.0
0087e000-0087f000 rw-p 00021000 fd:00 4125044    /usr/lib/libjpeg.so.62.0.0
008bc000-008c4000 r-xp 00000000 fd:00 5980313    /lib/librt-2.8.so
008c4000-008c5000 r--p 00007000 fd:00 5980313    /lib/librt-2.8.so
008c5000-008c6000 rw-p 00008000 fd:00 5980313    /lib/librt-2.8.so
008c8000-008cb000 r-xp 00000000 fd:00 5980378    /lib/libgmodule-2.0.so.0.1600.3
008cb000-008cc000 rw-p 00002000 fd:00 5980378    /lib/libgmodule-2.0.so.0.1600.3
00906000-00908000 r-xp 00000000 fd:00 5980257    /lib/libcom_err.so.2.1
00908000-00909000 rw-p 00001000 fd:00 5980257    /lib/libcom_err.so.2.1
0090b000-0090d000 r-xp 00000000 fd:00 5980330    /lib/libkeyutils-1.2.so
0090d000-0090e000 rw-p 00001000 fd:00 5980330    /lib/libkeyutils-1.2.so
0092e000-0094a000 r-xp 00000000 fd:00 5980315    /lib/ld-2.8.so
0094a000-0094b000 r--p 0001c000 fd:00 5980315    /lib/ld-2.8.so
0094b000-0094c000 rw-p 0001d000 fd:00 5980315    /lib/ld-2.8.so
0094e000-00ab1000 r-xp 00000000 fd:00 5980317    /lib/libc-2.8.so
00ab1000-00ab3000 r--p 00163000 fd:00 5980317    /lib/libc-2.8.so
00ab3000-00ab4000 rw-p 00165000 fd:00 5980317    /lib/libc-2.8.so
00ab4000-00ab7000 rw-p 00ab4000 00:00 0
00ab9000-00ae0000 r-xp 00000000 fd:00 5980366    /lib/libm-2.8.so
00ae0000-00ae1000 r--p 00026000 fd:00 5980366    /lib/libm-2.8.so
00ae1000-00ae2000 rw-p 00027000 fd:00 5980366    /lib/libm-2.8.so
00ae4000-00ae7000 r-xp 00000000 fd:00 5980321    /lib/libdl-2.8.so
00ae7000-00ae8000 r--p 00002000 fd:00 5980321    /lib/libdl-2.8.so
00ae8000-00ae9000 rw-p 00003000 fd:00 5980321    /lib/libdl-2.8.so
00aeb000-00b00000 r-xp 00000000 fd:00 5980360    /lib/libpthread-2.8.so
00b00000-00b01000 r--p 00014000 fd:00 5980360    /lib/libpthread-2.8.so
00b01000-00b02000 rw-p 00015000 fd:00 5980360    /lib/libpthread-2.8.so
00b02000-00b04000 rw-p 00b02000 00:00 0
00b48000-00b98000 r-xp 00000000 fd:00 4125104    /usr/lib/libORBit-2.so.0.1.0
00b98000-00ba2000 rw-p 0004f000 fd:00 4125104    /usr/lib/libORBit-2.so.0.1.0
00ba4000-00bd8000 r-xp 00000000 fd:00 4127064    /usr/lib/libgconf-2.so.4.1.5
00bd8000-00bdb000 rw-p 00033000 fd:00 4127064    /usr/lib/libgconf-2.so.4.1.5
00c22000-00c35000 r-xp 00000000 fd:00 5980292    /lib/libz.so.1.2.3
00c35000-00c36000 rw-p 00012000 fd:00 5980292    /lib/libz.so.1.2.3
00cde000-00d3e000 r-xp 00000000 fd:00 4127099    /usr/lib/libgnomevfs-2.so.0.2200.0
00d3e000-00d41000 rw-p 00060000 fd:00 4127099    /usr/lib/libgnomevfs-2.so.0.2200.0
00d43000-00d4b000 r-xp 00000000 fd:00 2867501    /usr/lib/libkrb5support.so.0.1
00d4b000-00d4c000 rw-p 00007000 fd:00 2867501    /usr/lib/libkrb5support.so.0.1
00d5c000-00d6d000 r-xp 00000000 fd:00 5980332    /lib/libresolv-2.8.so
00d6d000-00d6e000 r--p 00010000 fd:00 5980332    /lib/libresolv-2.8.so
00d6e000-00d6f000 rw-p 00011000 fd:00 5980332    /lib/libresolv-2.8.so
00d6f000-00d71000 rw-p 00d6f000 00:00 0
00dae000-00db1000 r-xp 00000000 fd:00 5980564    /lib/libcap.so.2.06
00db1000-00db2000 rw-p 00003000 fd:00 5980564    /lib/libcap.so.2.06
00db4000-00df3000 r-xp 00000000 fd:00 5980571    /lib/libdbus-1.so.3.4.0
00df3000-00df4000 r--p 0003e000 fd:00 5980571    /lib/libdbus-1.so.3.4.0
00df4000-00df5000 rw-p 0003f000 fd:00 5980571    /lib/libdbus-1.so.3.4.0
00df5000-0132e000 r-xp 00000000 fd:00 4491478    /usr/local/lib/gstreamer-0.10/libgstffmpeg.so
0132e000-0133c000 rw-p 00539000 fd:00 4491478    /usr/local/lib/gstreamer-0.10/libgstffmpeg.so
0133c000-0169a000 rw-p 0133c000 00:00 0
0297a000-029b9000 r-xp 00000000 fd:00 5980382    /lib/libgobject-2.0.so.0.1600.3
029b9000-029ba000 rw-p 0003f000 fd:00 5980382    /lib/libgobject-2.0.so.0.1600.3
029e7000-02ac7000 r-xp 00000000 fd:00 5980352    /lib/libglib-2.0.so.0.1600.3
02ac7000-02ac8000 rw-p 000e0000 fd:00 5980352    /lib/libglib-2.0.so.0.1600.3
078ee000-07a25000 r-xp 00000000 fd:00 5980383    /lib/libcrypto.so.0.9.8g
07a25000-07a39000 rw-p 00136000 fd:00 5980383    /lib/libcrypto.so.0.9.8g
07a39000-07a3c000 rw-p 07a39000 00:00 0
07a3e000-07a85000 r-xp 00000000 fd:00 5980384    /lib/libssl.so.0.9.8g
07a85000-07a89000 rw-p 00046000 fd:00 5980384    /lib/libssl.so.0.9.8g
07b7e000-07c1b000 r-xp 00000000 fd:00 2867675    /usr/lib/libkrb5.so.3.3
07c1b000-07c1e000 rw-p 0009c000 fd:00 2867675    /usr/lib/libkrb5.so.3.3
08048000-08050000 r-xp 00000000 fd:00 9199893    /root/Workspacenew/a.out
08050000-08051000 rw-p 00007000 fd:00 9199893    /root/Workspacenew/a.out
08051000-08072000 rw-p 08051000 00:00 0
08f64000-0910d000 rw-p 08f64000 00:00 0          [heap]
b7200000-b7221000 rw-p b7200000 00:00 0
b7221000-b7300000 ---p b7221000 00:00 0
b7313000-b7315000 rw-p b7313000 00:00 0
b7315000-b7316000 ---p b7315000 00:00 0
b7316000-b7d16000 rw-p b7316000 00:00 0
b7d16000-b7f16000 r--p 00000000 fd:00 4123800    /usr/lib/locale/locale-archive
b7f16000-b7f1a000 rw-p b7f16000 00:00 0
b7f37000-b7f38000 rw-p b7f37000 00:00 0
bf822000-bf837000 rw-p bffeb000 00:00 0          [stack]
Aborted
[root@evidentiatest Workspacenew]#
Comment 1 sreerenj 2009-09-07 10:28:30 UTC
gdb out-put is,


gcc -lpthread -Wall $(pkg-config --cflags --libs gstreamer-0.10) testing.c
[root@evidentiatest Workspacenew]# gdb ./a.out
GNU gdb Fedora (6.8-1.fc9)
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 "i386-redhat-linux-gnu"...
(no debugging symbols found)
(gdb) break main
Breakpoint 1 at 0x804dcff
(gdb) run
Starting program: /root/Workspacenew/a.out
[Thread debugging using libthread_db enabled]
[New Thread 0xb807d710 (LWP 27964)]
[Switching to Thread 0xb807d710 (LWP 27964)]

Breakpoint 1, 0x0804dcff in main ()
(gdb) n
Single stepping until exit from function main,
which has no line number information.
Detaching after fork from child process 27967.
0:00:00.050451665 27967  0x80d1458 ERROR               pyplugin gstpythonplugin.c:267:pygst_require: the pygst module is not available!
ImportError: No module named pygst
[New Thread 0xb7e7cb90 (LWP 27968)]
1:start panasonic,Dynamically start and stop
2:start vivotek,Dynamically start and stop
3:start axis,Dynamically start and stop
1
1:start StartHttpRecording_Mjpeg_Video_Audio  : To stop the recording click 5
2:start StartHttpRecording_Mjpeg_Video : To stop the recording click 6
3:start StartRtspRecording_Mpeg4_Video_Audio : To stop the recording click 7
4:start StartRtspRecording_Mpeg4_Video : To stop the recording click 8
1
Starting to record video and audio,http
inside StartHttpRecording_Mjpeg_Video_Audio
Inside panasonic.c
pipeline created
bus watch fun
gnomevfssrc creation
source creation and path setting
http init successful
successfully returned from videobin
videobin successful
Successfully returned form audiobin..
audiob bin  successful
path setting of panasonic cam
Detaching after fork from child process 27969.
^C
Program received signal SIGINT, Interrupt.
0x00110416 in __kernel_vsyscall ()
Missing separate debuginfos, use: debuginfo-install GConf2.i386 ORBit2.i386 avahi.i386 bzip2.i386 dbus-glib.i386 dbus.i386 e2fsprogs.i386 gnome-vfs2.i386 keyutils.i386 krb5.i386 libcap.i386 libjpeg.i386 liboil.i386 openssl.i686
(gdb) thread apply all bt


Comment 2 Sebastian Dröge (slomo) 2009-09-08 13:45:02 UTC
For the crash, please run your application in valgrind with G_SLICE=always-malloc and attach the output here. There seems to be some memory corruption somewhere.

For the hanging, please get a backtrace for all threads by using "thread apply all bt" instead of just "bt".
Comment 3 André Klapper 2009-10-28 16:55:34 UTC
==> No feedback ==> Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!