kpartsaver segfaults

Bug #35605 reported by Tomasz Brzezina
16
Affects Status Importance Assigned to Milestone
Mandriva
Invalid
Undecided
Unassigned
kdeartwork (Ubuntu)
Fix Released
Medium
Kubuntu Bugs

Bug Description

adding simple movie (.mpg) causes segfault.

Kenny Duffus (kduffus)
Changed in kdeartwork:
assignee: nobody → kubuntu-team
Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

Please provide more information about what application you are using and what you are trying to do, what version of ubuntu you are running, and a backtrace.

Changed in kdeartwork:
status: Unconfirmed → Needs Info
Revision history for this message
Tomasz Brzezina (tomasz-brzezina) wrote :

Fresh install of Breezy, fully updated (all deb in source.list uncommented).
xterm: kpartsaver.kss --setup opens window, where I click add and select mpg. movie. Pressed Ok.
xterm: kpartsaver.kss => Segmentation Fault

You can download this short movie here: http://www.kp.pl/reklama/zubr_zapasy.mpg (3.8MB)

Revision history for this message
Francois-Denis Gonthier (fdgonthier) wrote :

Cannot reproduce. I don't get a segfault, but I get a double-free corruption at when closing the window. Not sure if it's related.

kpartsaver: KMPlayerFactory::createPartObject KParts::ReadOnlyPart
kpartsaver: KMPlayerPart(0x65f7f0)::KMPlayerPart ()
kpartsaver: View 48234725
kpartsaver: KMPlayerPart::openURL file:///home/neumann/zubr_zapasy.mpg
kpartsaver: KMPlayerHRefSource::setURL
kpartsaver: PartBase::openURL file:///home/neumann/zubr_zapasy.mpgtrue
kpartsaver: processState Not Running -> Ready
kpartsaver: Source::currentMrl src:
kpartsaver: resolveURL file:///home/neumann/zubr_zapasy.mpg
kpartsaver: document Mrl::activate
kpartsaver: Source::currentMrl document src:file:///home/neumann/zubr_zapasy.mpg
kpartsaver: getPath /home/neumann/zubr_zapasy.mpg
mplayer -wid 48234725 -slave -vo xv -framedrop -contrast 0 -brightness 0 -hue 0 -saturation 0 '/home/neumann/zubr_zapasy.mpg' -identify
kpartsaver: processState Ready -> Buffering
kpartsaver: Reference mrl /home/neumann/zubr_zapasy.mpg
kpartsaver: processState Buffering -> Playing
kpartsaver: KMPlayerPart::processStartedPlaying
eval quit
kpartsaver: KMPlayerPart::~KMPlayerPart
kpartsaver: PartBase::~PartBase
kpartsaver: ~Document
kpartsaver: KMPlayerLiveConnectExtension::~KMPlayerLiveConnectExtension()
kpartsaver: ~Document
Double QObject deletion detected.
*** glibc detected *** double free or corruption (!prev): 0x0000000000664dc0 ***
Aborted

Revision history for this message
John Vivirito (gnomefreak) wrote :

Is this still a problem for you?

Revision history for this message
Tomasz Brzezina (tomasz-brzezina) wrote :

After installing Dapper Drake everything changes, but still segfault is a problem. Now the problem is in next movie (not first). It plays perfectly first movie, then when tries next movie:
28667 stat64("/home/uzytkownik/Desktop/debowe_luk.mpg", {st_mode=S_IFREG|0644, st_size=2670596, ...}) = 0
28667 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
28667 rt_sigaction(SIGABRT, {SIG_DFL}, {0xb7bcc214, [ABRT], SA_RESTART}, 8) = 0
28667 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
28667 tgkill(28667, 28667, SIGABRT) = 0
28667 --- SIGABRT (Aborted) @ 0 (0) ---
28667 +++ killed by SIGABRT +++

/home/user/.kde/share/config/kpartsaverrc:
[FileDialog Settings]

[Misc]
Delay=10
Files=file:///home/user/Desktop/debowe_luk.mpg,file:///home/user/Desktop/zubr_za_rogiem.mpg
Random=true
Single=false

Revision history for this message
Tomasz Brzezina (tomasz-brzezina) wrote :

after great war i found the problem. I don't understand why it's a problem, but when i workaround it - the problem disappears:

changes are commented:
1.
void KPartSaver::closeURL()
{
    if( m_part ) {
        m_part->closeURL();
        delete m_part;
        m_part = 0;
    }

// delete m_factory;
// m_factory = 0;
}
2.
bool KPartSaver::openURL( KURL url )
(...)
//added by TB
    if (!m_factory) {
// end by TB
            // load kpart library
            QString lib = offers.first()->library();
            m_factory = KLibLoader::self()->factory( lib.latin1() );
            if( !m_factory ) {
                    kdDebug() << "Library " << lib << " not found." << endl;
                    closeURL();
                    return false;
            }

// added by TB
    }
// end by TB

Revision history for this message
Guldberg (casper-guldberg) wrote :

Similiar symptoms in mandriva 2007. Complete newb to linux, but have been trying too make this work for a while now and finally found this site. If you need more info from me please be gentle ;) (or at least tell me EXACTLY what to do).

Need this for a project I'm working on. Will the fix (if any) be posted here? - if the above is a fix, help please!

Revision history for this message
Yuriy Kozlov (yuriy-kozlov) wrote :

I can't reproduce this on Feisty, kpartsaver works fine with some avi's and the provided mpg. Tomasz, can you try Edgy or Feisty?

Revision history for this message
Tomasz Brzezina (tomasz-brzezina) wrote : Re: [Bug 35605] Re: kpartsaver segfaults

Yuriy Kozlov napisał(a):
> I can't reproduce this on Feisty, kpartsaver works fine with some avi's
> and the provided mpg. Tomasz, can you try Edgy or Feisty?
Edgy works fine!

--
T.

Revision history for this message
Guldberg (casper-guldberg) wrote :

I changed to Edgy and still get the error. Here's my dump similar to Tomasz':

4609 futex(0xb7a53824, FUTEX_WAKE, 2147483647) = 0
4609 stat64("/home/casper/Desktop/PORSCHE4.MPG", {st_mode=S_IFREG|0644, st_size=3790444, ...}) = 0
4609 --- SIGSEGV (Segmentation fault) @ 0 (0) ---
4609 rt_sigaction(SIGABRT, {SIG_DFL}, {0xb7b5df90, [ABRT], SA_RESTART}, 8) = 0
4609 rt_sigprocmask(SIG_UNBLOCK, [ABRT], NULL, 8) = 0
4609 tgkill(4609, 4609, SIGABRT) = 0
4609 --- SIGABRT (Aborted) @ 0 (0) ---
4609 +++ killed by SIGABRT +++

kpartsaverrc:
[KFileDialog Settings]
Recent Files=$HOME/Desktop/PORSCHE4.MPG,$HOME/Desktop/PORSCHE2.MPG,$HOME/Desktop/caravan.mov,$HOME/Desktop/foralle_no.mpeg

[Misc]
Delay=10
Files=file:///home/casper/Desktop/PORSCHE2.MPG,file:///home/casper/Desktop/PORSCHE4.MPG,file:///home/casper/Desktop/foralle_no.mpeg
Random=false
Single=false

(get same result with other files, and with random=true btw)

Revision history for this message
Krzysztof Lichota (krzysiek-launchpad-ubuntu-com) wrote :

Might be related to http://bugs.kde.org/show_bug.cgi?id=114198
Closing Kaffeine part causes crashes.

Revision history for this message
Sarah Kowalik (hobbsee-deactivatedaccount) wrote :

Is this still an issue with feisty/gutsy with kde 3.5.7? With the new kaffeine in there too?

Revision history for this message
Tomasz Brzezina (tomasz-brzezina) wrote :

Sarah Hobbs pisze:
> Is this still an issue with feisty/gutsy with kde 3.5.7? With the new
> kaffeine in there too?
no, in feisty there are no more problems.

--
T.

Changed in kdeartwork:
status: Incomplete → Fix Released
Revision history for this message
Brian Murray (brian-murray) wrote :

I'm closing the Mandriva affects as Invalid as a bug watch was never added fro this affects.

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.