0-pointer crash in mlt_properties_find mlt_properties.c:487
Brought to you by:
ddennedy,
lilo_booter
I checked out git master, compiled it on an openSuse 12.3 64bit.
When I now start kdenlive it crashes with the following bt.
I've probably done something wrong but the code should check a pointer before dereferencing it (self == 0 here):
Program received signal SIGSEGV, Segmentation fault. mlt_properties_find (name=0x7b08d7 "id", self=0x0) at mlt_properties.c:487 487 property_list *list = self->local; (gdb) bt #0 mlt_properties_find (name=0x7b08d7 "id", self=0x0) at mlt_properties.c:487 #1 mlt_properties_fetch (self=self@entry=0x0, name=name@entry=0x7b08d7 "id") at mlt_properties.c:563 #2 0x00007ffff46d5fe3 in mlt_properties_set (self=0x0, name=0x7b08d7 "id", value=0x77522d "black") at mlt_properties.c:653 #3 0x00007ffff44bafb0 in Mlt::Properties::set(char const*, char const*) () from /usr/lib/libmlt++.so.3 #4 0x00000000006c1887 in Render::buildConsumer (this=this@entry=0xcf16a0, profileName=...) at /usr/src/debug/kdenlive-0.9.4/src/renderer.cpp:226 #5 0x00000000006c22e8 in Render::Render (this=0xcf16a0, rendererName=<optimized out>, winid=119537716, profile=..., parent=<optimized out>) at /usr/src/debug/kdenlive-0.9.4/src/renderer.cpp:135 #6 0x000000000066a08d in Monitor::Monitor (this=0xcba3d0, id=Kdenlive::clipMonitor, manager=<optimized out>, profile=..., parent=<optimized out>) at /usr/src/debug/kdenlive-0.9.4/src/monitor.cpp:163 #7 0x000000000050595d in MainWindow::MainWindow (this=0xac1ec0, MltPath=..., Url=..., clipsToLoad=..., parent=<optimized out>, __in_chrg=<optimized out>, __vtt_parm=<optimized out>) at /usr/src/debug/kdenlive-0.9.4/src/mainwindow.cpp:237 #8 0x000000000045a814 in main (argc=1, argv=0x7fffffffe3a8) at /usr/src/debug/kdenlive-0.9.4/src/main.cpp:84 (gdb) list 482 */ 483 484 static inline mlt_property mlt_properties_find( mlt_properties self, const char *name ) 485 { 486 if ( !name ) return NULL; 487 property_list *list = self->local; 488 mlt_property value = NULL; 489 int key = generate_hash( name );
Fixed in git commit 6f45d7e. I will close this on the next release.