[theora] oggz-chop gives segmentation fault

Conrad Parker conrad at metadecks.org
Wed Jun 17 02:23:54 PDT 2009

2009/6/17 Ondrej Certik <ondrej at certik.cz>:
> On Tue, Jun 16, 2009 at 10:05 PM, Ondrej Certik<ondrej at certik.cz> wrote:
>> On Tue, Jun 16, 2009 at 8:21 PM, Conrad Parker<conrad at metadecks.org> wrote:
> [...]
>> So it's clear that it ends because oggz is NULL. I am not good at
>> debugging C (I mostly work with Python) ---- what is the best way to
>> figure out why it is NULL? Should I continue using print statements,
>> or some debugger? Do you use plain gdb, or some gui for it (like ddd)?
> I used DDD, it works reasonably well. I figured it out where the
> problem is, and I have to apologize, it was because it couldn't read
> the ondrej.ogv, because I had it in a different directory and I didn't
> notice, sorry for that!
> Nevertheless I think it could give a more useful error message,
> something like "cannot read ondrej.ogv" or something.

ok, thanks for the suggestion. Done now, in:

commit 4cd81f99842511435846f942d422a79a3851d4f0
Author: Conrad Parker <conrad at metadecks.org>
Date:   Wed Jun 17 18:16:08 2009 +0900

    oggz-chop: report error if oggz_open() fails
    Reported by Ondrej Certik


$ chmod -r ondrej.ogv
$ oggz-chop -o yt1.ogv -s0 -e500 ondrej.ogv
ondrej.ogv: Permission denied

> Anyway, it works now as expected. Anyway, the version in ubuntu still
> segfaults even if the file is there, so there was some bug, but the
> version 0.9.9 works fine.

thanks for debugging this.


More information about the theora mailing list