>   $ sox -n one.sox synth 4.145 sin 440 gain -6                      
>   $ sox -n two.sox synth 5.325 sin 540 gain -6                      
>   $ sox -V "|sox one.sox -p trim 0 -`soxi -D two.sox`" two.sox out.sox
>   sox:      SoX v14.4.1
>   sox INFO formats: detected file format type `sox'
>   sox FAIL trim: Position 2 is before start of audio.
>   sox INFO formats: detected file format type `sox'
>   Segmentation fault (core dumped) 

> > > > > Can you fire up gdb on the core dump and show us the backtrace?
> > > > > (hopefully your sox build has debugging symbols).  Thanks.
> > 
> > Once inside gdb, just run: bt
> > That will show the backtrace.  Often, that's all that's necessary.
> 
> I suppose I am missing some debugging symbols.
> I will recompile and post again.

$ sox -V "|sox one.sox -p trim 0 -`soxi -D two.sox`" two.sox out.sox
sox:      SoX v14.4.1
sox INFO formats: detected file format type `sox'
sox FAIL trim: Position 2 is before start of audio.
sox INFO formats: detected file format type `sox'
Segmentation fault (core dumped)
hans@lenovo:~$ gdb `which sox` sox.core
GNU gdb 6.3
Copyright 2004 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-unknown-openbsd5.4"...
Core was generated by `sox'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /home/hans/lib/libsox.so.2.1...done.
Loaded symbols for /home/hans/lib/libsox.so.2.1
Reading symbols from /usr/lib/libsndio.so.5.0...done.
Loaded symbols for /usr/lib/libsndio.so.5.0
Reading symbols from /usr/local/lib/libsndfile.so.3.3...done.
Loaded symbols for /usr/local/lib/libsndfile.so.3.3
Reading symbols from /usr/local/lib/libFLAC.so.10.0...done.
Loaded symbols for /usr/local/lib/libFLAC.so.10.0
Reading symbols from /usr/local/lib/libvorbisenc.so.3.1...done.
Loaded symbols for /usr/local/lib/libvorbisenc.so.3.1
Reading symbols from /usr/local/lib/libvorbis.so.8.0...done.
Loaded symbols for /usr/local/lib/libvorbis.so.8.0
Reading symbols from /usr/local/lib/libogg.so.6.2...done.
Loaded symbols for /usr/local/lib/libogg.so.6.2
Reading symbols from /usr/lib/libm.so.9.0...done.
Loaded symbols for /usr/lib/libm.so.9.0
Reading symbols from /usr/lib/libc.so.70.0...done.
Loaded symbols for /usr/lib/libc.so.70.0
Reading symbols from /usr/libexec/ld.so...done.
Loaded symbols for /usr/libexec/ld.so
#0  memcpy () at /usr/src/lib/libc/arch/i386/string/bcopy.S:88
88              rep
(gdb) bt
#0  memcpy () at /usr/src/lib/libc/arch/i386/string/bcopy.S:88
#1  0x08eb094b in fread (buf=0xcfbe5a8c, size=1, count=4, fp=0x28e45f98)
    at /usr/src/lib/libc/stdio/fread.c:69
#2  0x01919fe4 in lsx_readbuf (ft=0x7ff90400, buf=0xcfbe5a8c, len=4)
    at formats_i.c:98
#3  0x0191ac2c in lsx_read_dw_buf (ft=0x7ff90400, buf=0xcfbe5a8c, len=1)
    at formats_i.c:378
#4  0x0191afbb in lsx_readdw (ft=0x7ff90400, datum=0xcfbe5a8c)
    at formats_i.c:397
#5  0x0191dcfd in startread (ft=0x7ff90400) at sox-fmt.c:31
#6  0x01917585 in open_read (
    path=0x89b8f280 "|sox one.sox -p trim 0 -5.325000", buffer=0x0,
    buffer_size=0, signal=0x81b04c08, encoding=0x81b04c24,
    filetype=0x21909a38 "sox") at formats.c:540
#7  0x019177f1 in sox_open_read (
    path=0x89b8f280 "|sox one.sox -p trim 0 -5.325000", signal=0x81b04c08,
    encoding=0x81b04c24, filetype=0x0) at formats.c:580
#8  0x1c00baec in main (argc=5, argv=0xcfbe5bec) at sox.c:2949
Current language:  auto; currently asm
(gdb) quit


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
SoX-devel mailing list
SoX-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-devel

Reply via email to