[vorbis-dev] vorbis-tools: vorbiscomment problem

Kenneth Arnold ken at arnoldnet.net
Tue Oct 24 18:03:53 PDT 2000



On Tue, Oct 24, 2000 at 05:02:26PM -0700, rob at emusic.com wrote:
> I'm playing around with the vorbiscomment stuff, and with the current
> CVS I get the following crash when trying to write comments to an
> existing .ogg file:
> 
> cranky:~/FreeAmp/vorbis-tools/vorbiscomment->gdb vorbiscomment

FreeAmp? That better be the latest CVS...

> GNU gdb 19991004
> Copyright 1998 Free Software Foundation, Inc.
> GDB is free software, covered by the GNU General Public License, and you are
> welcome to change it and/or distribute copies of it under certain conditions.
> Type "show copying" to see the conditions.
> There is absolutely no warranty for GDB.  Type "show warranty" for details.
> This GDB was configured as "i386-redhat-linux"...
> (gdb) run fuss.ogg out.ogg
> Starting program: /home/robert/FreeAmp/vorbis-tools/vorbiscomment/vorbiscomment fuss.ogg out.ogg
> comment1
> comment1
> comment2
> comment2
> 
> Program received signal SIGSEGV, Segmentation fault.
> 0x40093fe5 in memmove (dest=0x804cbf8, src=0x8050d2c, len=4294958950)
>     at ../sysdeps/generic/memmove.c:98
> 98	../sysdeps/generic/memmove.c: No such file or directory.
> (gdb) where
> #0  0x40093fe5 in memmove (dest=0x804cbf8, src=0x8050d2c, len=4294958950)
>     at ../sysdeps/generic/memmove.c:98
> #1  0x4001cb46 in ogg_stream_pagein (os=0xbfffe71c, og=0xbfffe5a4)
>     at framing.c:642
> #2  0x8049453 in main ()
> #3  0x4004c9cb in __libc_start_main (main=0x8048d60 <main>, argc=3, 
>     argv=0xbffff824, init=0x8048a1c <_init>, fini=0x804972c <_fini>, 
>     rtld_fini=0x4000ae60 <_dl_fini>, stack_end=0xbffff81c)
>     at ../sysdeps/generic/libc-start.c:92
> (gdb) quit
> 
> Does anyone have an idea what needs to be done to vorbiscomment to fix
> it? Is there a another piece of code that does the same thing that I can
> look at?

It would help to recompile it in debug mode (make debug if that's set up,
or add -g to the gcc command line and remove any -O's). vorbiscomment is
intended to be the lowest common denominator in comment handling, so there
are no other programs at the moment that do that (everything so far is a
wrapper to its simple interface). Its internals are a mess because it is
vorbis in and vorbis out and a direct stream copy. Perhaps this is an
indication that it just needs some cleanup.


-- 
Kenneth Arnold <ken at arnoldnet.net> / kcarnold / Linux user #180115
http://arnoldnet.net/~kcarnold/

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.




More information about the Vorbis-dev mailing list