[theora] oggz-chop gives segmentation fault
ondrej at certik.cz
Wed Jun 17 10:20:51 PDT 2009
On Wed, Jun 17, 2009 at 3:23 AM, Conrad Parker<conrad at metadecks.org> wrote:
> 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
Thanks for fixing it.
More information about the theora