Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 244278 - media-video/kdenlive-0.7_beta1 is segfaulting at startup
Summary: media-video/kdenlive-0.7_beta1 is segfaulting at startup
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High major (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-25 13:28 UTC by Erwan Lerale
Modified: 2008-11-26 10:56 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
full gdb backtrace (full-gdb-bt.txt,6.99 KB, text/plain)
2008-10-28 19:33 UTC, Erwan Lerale
Details
try it (filtersize.patch,598 bytes, patch)
2008-10-28 20:32 UTC, Alexis Ballier
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Erwan Lerale 2008-10-25 13:28:46 UTC
Kdenlive is segfaulting after the configuration menus.

* on the console
QLayout: Attempting to add QLayout "" to QFrame "frame", which already has a layout
QLayout: Attempting to add QLayout "" to QFrame "frame", which already has a layout
QLayout: Attempting to add QLayout "" to QFrame "frame", which already has a layout
QLayout: Attempting to add QLayout "" to QFrame "frame", which already has a layout
QStatusBar::insertPermanentWidget: Index out of range (5), appending widget
QStatusBar::insertPermanentWidget: Index out of range (7), appending widget
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotDeleteTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotInsertTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotDeleteTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotInsertTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotDeleteTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotInsertTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotDeleteTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotInsertTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such signal QAction::triggered(QAction*)
Object::connect:  (receiver name: 'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotDeleteTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
Object::connect: No such slot CustomTrackView::slotInsertTrack(int)
Object::connect:  (sender name:   'TrackHeader_UI')
KCrash: Application 'kdenlive' crashing...

* In the debug window :

#4  0x00007fb54fcdcca9 in ?? () from /usr/lib/libswscale.so.0
#5  0x0000000000000004 in ?? ()
#6  0x0000000000e57601 in ?? ()
#7  0x00007fb54fcde606 in ?? () from /usr/lib/libswscale.so.0
#8  0x00007fb54fcdba48 in sws_scale () from /usr/lib/libswscale.so.0
#9  0x00007fb5500fdbfd in ?? () from /usr/lib64/mlt/libmltavformat.so
#10 0x00007fb5641e3bd1 in mlt_frame_get_image () from /usr/lib64/libmlt.so.1
#11 0x00007fb554622343 in ?? () from /usr/lib64/mlt/libmltsdl.so
#12 0x00007fb563213047 in start_thread () from /lib64/libpthread.so.0
#13 0x00007fb55e3eb28d in clone () from /lib64/libc.so.6
#14 0x0000000000000000 in ?? ()

Thread 2 (Thread 0x42965950 (LWP 8853)):
#0  0x00007fb56321457d in pthread_join () from /lib64/libpthread.so.0
#1  0x00007fb554621cd8 in ?? () from /usr/lib64/mlt/libmltsdl.so
#2  0x00007fb5641ef3da in mlt_consumer_stop () from /usr/lib64/libmlt.so.1
#3  0x00007fb554621628 in ?? () from /usr/lib64/mlt/libmltsdl.so
#4  0x00007fb563213047 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fb55e3eb28d in clone () from /lib64/libc.so.6
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fb5644aa700 (LWP 6707)):
#0  0x00007fb56321457d in pthread_join () from /lib64/libpthread.so.0
#1  0x00007fb55462109d in ?? () from /usr/lib64/mlt/libmltsdl.so
#2  0x00007fb5641ef3da in mlt_consumer_stop () from /usr/lib64/libmlt.so.1
#3  0x00000000004971b9 in Render::resetProfile ()
#4  0x00000000004c922d in MonitorManager::slotResetProfiles ()
#5  0x0000000000463541 in MainWindow::connectDocument ()
#6  0x0000000000468bb8 in MainWindow::qt_metacall ()
#7  0x00007fb56357690c in QMetaObject::activate ()
   from /usr/lib64/qt4/libQtCore.so.4
#8  0x00007fb561abbdfe in QTabWidget::currentChanged ()
   from /usr/lib64/qt4/libQtGui.so.4
#9  0x00007fb561abd58d in ?? () from /usr/lib64/qt4/libQtGui.so.4
#10 0x00007fb561abd794 in QTabWidget::qt_metacall ()
   from /usr/lib64/qt4/libQtGui.so.4
#11 0x00007fb560a24fd5 in KTabWidget::qt_metacall ()
   from /usr/lib64/libkdeui.so.5
#12 0x00007fb56357690c in QMetaObject::activate ()
   from /usr/lib64/qt4/libQtCore.so.4
#13 0x00007fb561ab649e in QTabBar::currentChanged ()
   from /usr/lib64/qt4/libQtGui.so.4
#14 0x00007fb561abb201 in QTabBar::insertTab ()
   from /usr/lib64/qt4/libQtGui.so.4
#15 0x00007fb561abd0e8 in QTabWidget::insertTab ()
   from /usr/lib64/qt4/libQtGui.so.4
#16 0x0000000000463f3b in MainWindow::newFile ()
#17 0x0000000000472423 in MainWindow::MainWindow ()
#18 0x000000000045ed2f in main ()
#0  0x00007fb56321457d in pthread_join () from /lib64/libpthread.so.0


Reproducible: Always

Steps to Reproduce:
1.emerge =media-video/kdenlive-0.7_beta1
2.launch it
3.configuration menus -> finish -> crash




Portage 2.2_rc12 (default/linux/amd64/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.26.3-rt3 x86_64)
=================================================================
System uname: Linux-2.6.26.3-rt3-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_6000+-with-glibc2.2.5
Timestamp of tree: Sat, 25 Oct 2008 13:05:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r15, 2.5.2-r8
dev-python/pycrypto: 2.0.1-r6
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.3.0-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch preserve-libs protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en fr es zh_CN de zh zh_TW"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/layman/proaudio /usr/local/portage /usr/local/portage/layman/gentoo-china /usr/local/portage/layman/pd-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac accessibility acpi additions agg allegro alsa amd amd64 amr apache2 arts audiofile avahi avi bash-completion berkdb bitmap-fonts bluetooth bonjour bzip2 cairo caps cdb cddb cdparanoia cdr cegui cjk clucene crypt ctype cups curl cxx dba dbus deprecated dga dirac directfb divx4linux dri dssi dv dvd dvdnav dvdr dvdread emerald encode enwriter espeak exif ffmpeg fftw flac fluidsynth foomaticdb fortran freesound ftp gd gdbm gif gimp gimpprint glib glitz gnome gnutls gps gstreamer gtk gtk2 gtkhtml hal hddtemp iconv ieee1394 iemlib imagemagick imlib immqt-bc ipv6 irda jack java joystick jpeg jpeg2k kqemu ladcca ladspa lame lash lcms ldap libcaca libnotify libsamplerate libvisual libwww lirc live lm_sensors lv2 mad mapnik matroska maxlib mdnsresponder-compat midi mikmod ming mjpeg mmx mod_php mono mp3 mpeg mplayer multilib musepack mysql ncurses netjack network networkmanager nls nozaptel nptl nptlonly nslive nsplugin ntp nvidia ogg oggvorbis openexr opengl oss pam pcre pdf php pinyin png portaudio ppds pulseaudio python qq qt qt3 qt3support qt4 quicktime readline regex rtsp ruby sasl scanner sdl seamonkey semantic-desktop session smp sndfile snmp softmmu sopcast soup sox speechd speex spell sqlite sqlite3 srt sse sse2 ssl stream subtitles svg swig tcltk tetex theora threads threadsafe tiff tk truetype truetype-fonts type1-fonts unicode usb v4l v4l2 vcd vhook vhosts vlm vorbis vst webdav-neon webdav-serf wxwindows x264 xine xinerama xingma xml xml1 xml2 xmlrpc xmp xorg xpm xprint xsl xulrunner xv xvid zexy zip zlib" ALSA_CARDS="ice1724 usb-audio" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en fr es zh_CN de zh zh_TW" USERLAND="GNU" VIDEO_CARDS="vesa nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Alexis Ballier gentoo-dev 2008-10-26 15:58:59 UTC
seems to work for me :/

please give me the output of :
emerge -pv mlt mlt++ ffmpeg
Comment 2 Erwan Lerale 2008-10-26 16:01:56 UTC
(In reply to comment #1)
> seems to work for me :/
> 
> please give me the output of :
> emerge -pv mlt mlt++ ffmpeg
> 

[ebuild   R   ] media-video/ffmpeg-0.4.9_p20081014  USE="X aac amr dirac encode ieee1394 ipv6 mmx mp3 network sdl theora threads v4l v4l2 vhook vorbis x264 xvid zlib (-altivec) -bindist -debug -doc -gsm -hardcoded-tables -mmxext -schroedinger -ssse3 -test" 0 kB
[ebuild   R   ] media-libs/mlt-0.3.0  USE="dv ffmpeg gtk jack lame libsamplerate ogg quicktime sdl sox theora vorbis xine xml (-mmx) -qt3" 0 kB

Cheers
r1
Comment 3 Alexis Ballier gentoo-dev 2008-10-26 16:16:39 UTC
still working with the same useflags as yours :/

could you please try to get a more meaningful backtrace by following:
http://www.gentoo.org/proj/en/qa/backtraces.xml
Comment 4 Erwan Lerale 2008-10-27 21:27:17 UTC
(In reply to comment #3)
> still working with the same useflags as yours :/
> 
> could you please try to get a more meaningful backtrace by following:
> http://www.gentoo.org/proj/en/qa/backtraces.xml

I have followed your advice :)

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x425f2950 (LWP 16460)]
0x00007f69b40c2ca9 in hcscale_MMX (c=0xed63c0, dst=0x0, dstWidth=720, 
    src1=0x0, 
    src2=0xfffffffffffffa60 <Address 0xfffffffffffffa60 out of bounds>, 
    srcW=<value optimized out>, xInc=15557377, flags=-1274264058, 
    canMMX2BeUsed=65516, hChrFilter=0xedfad0, hChrFilterPos=0x0, 
    hChrFilterSize=15596240, funnyUVCode=0xedf520, srcFormat=4, 
    formatConvBuffer=0x1 <Address 0x1 out of bounds>, mmx2Filter=0x1, 
    mmx2FilterPos=0xed6c90, pal=0x0) at libswscale/swscale_template.c:2187
2187    libswscale/swscale_template.c: No such file or directory.
        in libswscale/swscale_template.c

If I compile media-video/ffmpeg-0.4.9_p20081014 without the mmx flag, kdenlive is starting correctly :) Weird...
Comment 5 Alexis Ballier gentoo-dev 2008-10-28 07:42:19 UTC
> Program received signal SIGSEGV, Segmentation fault.
> [Switching to Thread 0x425f2950 (LWP 16460)]
> 0x00007f69b40c2ca9 in hcscale_MMX (c=0xed63c0, dst=0x0, dstWidth=720, 
>     src1=0x0, 
>     src2=0xfffffffffffffa60 <Address 0xfffffffffffffa60 out of bounds>, 
>     srcW=<value optimized out>, xInc=15557377, flags=-1274264058, 
>     canMMX2BeUsed=65516, hChrFilter=0xedfad0, hChrFilterPos=0x0, 
>     hChrFilterSize=15596240, funnyUVCode=0xedf520, srcFormat=4, 
>     formatConvBuffer=0x1 <Address 0x1 out of bounds>, mmx2Filter=0x1, 
>     mmx2FilterPos=0xed6c90, pal=0x0) at libswscale/swscale_template.c:2187
> 2187    libswscale/swscale_template.c: No such file or directory.
>         in libswscale/swscale_template.c
> 
> If I compile media-video/ffmpeg-0.4.9_p20081014 without the mmx flag, kdenlive
> is starting correctly :) Weird...
> 

might be a bug in libswscale mmx converter... will be hard to fix :(

i'll need a more complete backtrace:
bt full -> copy here all what gdb gives
x/8i $pc -> same :)
Comment 6 Erwan Lerale 2008-10-28 19:33:10 UTC
Created attachment 170146 [details]
full gdb backtrace
Comment 7 Erwan Lerale 2008-10-28 19:34:08 UTC
(In reply to comment #6)
> Created an attachment (id=170146) [edit]
> full gdb backtrace
> 

Here it is !

and :

(gdb) x/8i $pc 
0x7fc112aaeca9 <hcscale_MMX+1897>:	movd   %mm0,(%rdi,%rbp,1)
0x7fc112aaecad <hcscale_MMX+1901>:	add    $0x4,%rbp
0x7fc112aaecb1 <hcscale_MMX+1905>:	
    jae    0x7fc112aaec70 <hcscale_MMX+1840>
0x7fc112aaecb3 <hcscale_MMX+1907>:	pop    %rbp
0x7fc112aaecb4 <hcscale_MMX+1908>:	pop    %rbx
0x7fc112aaecb5 <hcscale_MMX+1909>:	mov    -0x38(%rsp),%rdi
0x7fc112aaecba <hcscale_MMX+1914>:	mov    %rbp,-0x20(%rsp)
0x7fc112aaecbf <hcscale_MMX+1919>:	mov    %r8,%rax
Comment 8 Alexis Ballier gentoo-dev 2008-10-28 20:32:11 UTC
Created attachment 170157 [details, diff]
try it

could you please try to rebuild ffmpeg with that patch and give me the output when running kdenlive ?

you should have things like:
filtersize=8
filtersize=8
filtersize=9
filtersize=5
Comment 9 Alexis Ballier gentoo-dev 2008-11-26 10:56:48 UTC
(In reply to comment #8)
> Created an attachment (id=170157) [edit]
> try it
> 
> could you please try to rebuild ffmpeg with that patch and give me the output
> when running kdenlive ?
> 
> you should have things like:
> filtersize=8
> filtersize=8
> filtersize=9
> filtersize=5

ping? please reopen with the needed info