[gst-devel] C++ string assign SIGSEGV

vineeth nvineeth at gmail.com
Wed Mar 17 16:46:39 CET 2010


Check with valgrind.
probably hhivvrenderersink is a invalid memory.


On Wed, Mar 17, 2010 at 1:55 PM, Mattias Barthel <barthel at tid.es> wrote:

>  Hi,
>
> I am using a string object in an element written in C++ code.
>
> This is gstreamer 0.10.21
> libstdc++ (gcc 4.2.3)
>
> This line SIGSEGVs:
>
> hhivvrenderersink->p.sWindowName = "Virtual view renderer";
>
>
> Backtrace:
>
>
> (gdb) bt
> #0  0x00007fdc340f7ee0 in std::string::assign () from
> /usr/lib/libstdc++.so.6
> #1  0x00007fdc35576849 in init_params (hhivvrenderersink=0xb46120) at
> /usr/include/c++/4.3/bits/basic_string.h:931
> #2  0x00007fdc37a6d01a in g_type_create_instance () from
> /usr/lib/libgobject-2.0.so.0
> #3  0x00007fdc37a515cb in ?? () from /usr/lib/libgobject-2.0.so.0
> #4  0x00007fdc37a51c13 in g_object_newv () from
> /usr/lib/libgobject-2.0.so.0
> #5  0x00007fdc37a52767 in g_object_new_valist () from
> /usr/lib/libgobject-2.0.so.0
> #6  0x00007fdc37a528ac in g_object_new () from /usr/lib/libgobject-2.0.so.0
> #7  0x00007fdc37ccab94 in gst_element_factory_create (factory=<value
> optimized out>, name=0x0) at gstelementfactory.c:405
> #8  0x0000000000404d10 in print_element_info (factory=0xb314f0,
> print_names=0) at gst-inspect.c:1148
> #9  0x000000000040651b in main (argc=2, argv=0x7fff4016c3d8) at
> gst-inspect.c:1374
>
>
> Any suggestions why this could be happening?
> Workarounds?
>
> Best,
>
> Mattias
>
> --
>  Mattias Frank Barthel
>  Vía Augusta 177 08021 Barcelona (Spain)  T. 0034-93-365-3309
>  TELEFÓNICA R&D
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100317/7854b2ee/attachment.htm>


More information about the gstreamer-devel mailing list