Posted to tcl by emiliano at Wed Sep 21 15:37:37 GMT 2011view raw
- Trunk compiled with --enable-symbols=mem. Platform is netbsd amd-64
- crash.tcl
- ===============================================================
- set fdin [open sample.wav]
- set fdout [open /dev/audio w]
- chan configure $fdin -translation binary -encoding binary
- chan configure $fdout -translation binary -encoding binary
- # prepare the audio device
- exec audioctl -w play.encoding=slinear_le play.rate=44100 \
- play.precision=16 play.channels=2
- # listen only the last few seconds
- chan seek $fdin [expr {4 * 10000000}]
- chan copy $fdin $fdout
- vwait foo
- ===============================================================
- emiliano@beaujolais:~/src/fossil/sunaudio$ tclsh8.6 crash.tcl
- Fallo de segmentación (`core' generado)
- emiliano@beaujolais:~/src/fossil/sunaudio$ gdb tclsh8.6 -core tclsh8.6.core
- GNU gdb 6.5
- Copyright (C) 2006 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 "x86_64--netbsd"...
- Reading symbols from /usr/local/lib/libtcl8.6.so...done.
- Loaded symbols for /usr/local/lib/libtcl8.6.so
- Reading symbols from /usr/lib/libz.so.1...done.
- Loaded symbols for /usr/lib/libz.so.1
- Reading symbols from /usr/lib/libpthread.so.1...done.
- Loaded symbols for /usr/lib/libpthread.so.1
- Reading symbols from /usr/lib/libm.so.0...done.
- Loaded symbols for /usr/lib/libm.so.0
- Reading symbols from /usr/lib/libc.so.12...done.
- Loaded symbols for /usr/lib/libc.so.12
- Reading symbols from /usr/libexec/ld.elf_so...done.
- Loaded symbols for /usr/libexec/ld.elf_so
- Core was generated by `tclsh8.6'.
- Program terminated with signal 11, Segmentation fault.
- #0 0x00007f7ff78ede46 in CopyData (csPtr=0x7f7ff7311038, mask=2)
- at /home/emiliano/src/fossil/tcl/generic/tclIO.c:9120
- 9120 inStatePtr = csPtr->readPtr->state;
- (gdb) bt
- #0 0x00007f7ff78ede46 in CopyData (csPtr=0x7f7ff7311038, mask=2)
- at /home/emiliano/src/fossil/tcl/generic/tclIO.c:9120
- #1 0x00007f7ff78ef22c in CopyEventProc (clientData=0x7f7ff7311038, mask=2)
- at /home/emiliano/src/fossil/tcl/generic/tclIO.c:9977
- #2 0x00007f7ff78ed05b in Tcl_NotifyChannel (channel=0x7f7ff7306038, mask=2)
- at /home/emiliano/src/fossil/tcl/generic/tclIO.c:8290
- #3 0x00007f7ff7962c7f in FileHandlerEventProc (evPtr=0x7f7ff731d7d8, flags=-3)
- at /home/emiliano/src/fossil/tcl/unix/tclUnixNotfy.c:652
- #4 0x00007f7ff790f446 in Tcl_ServiceEvent (flags=-3)
- at /home/emiliano/src/fossil/tcl/generic/tclNotify.c:670
- #5 0x00007f7ff790f8ab in Tcl_DoOneEvent (flags=-3)
- at /home/emiliano/src/fossil/tcl/generic/tclNotify.c:971
- #6 0x00007f7ff78c174b in Tcl_VwaitObjCmd (clientData=0x0,
- interp=0x7f7ff7730838, objc=2, objv=0x7f7ff7740320)
- at /home/emiliano/src/fossil/tcl/generic/tclEvent.c:1413
- #7 0x00007f7ff783fd58 in TclNREvalObjv (interp=0x7f7ff7730838, objc=2,
- objv=0x7f7ff7740320, flags=2097152, cmdPtr=0x7f7ff7746db8)
- at /home/emiliano/src/fossil/tcl/generic/tclBasic.c:4273
- #8 0x00007f7ff783f7e5 in Tcl_EvalObjv (interp=0x7f7ff7730838, objc=2,
- objv=0x7f7ff7740320, flags=2097152)
- at /home/emiliano/src/fossil/tcl/generic/tclBasic.c:4106
- #9 0x00007f7ff7841b73 in TclEvalEx (interp=0x7f7ff7730838,
- script=0x7f7ff73091b8 "set fdin [open sample.wav]\nset fdout [open /dev/audio w]\n\nchan configure $fdin -translation binary -encoding binary\nchan configure $fdout -translation binary -encoding binary\n\nexec audioctl -w play.e"...,
- numBytes=346, flags=0, line=12, clNextOuter=0x0,
- outerScript=0x7f7ff73091b8 "set fdin [open sample.wav]\nset fdout [open /dev/audio w]\n\nchan configure $fdin -translation binary -encoding binary\nchan configure $fdout -translation binary -encoding binary\n\nexec audioctl -w play.e"...) at /home/emiliano/src/fossil/tcl/generic/tclBasic.c:5213
- #10 0x00007f7ff7840f65 in Tcl_EvalEx (interp=0x7f7ff7730838,
- script=0x7f7ff73091b8 "set fdin [open sample.wav]\nset fdout [open /dev/audio w]\n\nchan configure $fdin -translation binary -encoding binary\nchan configure $fdout -translation binary -encoding binary\n\nexec audioctl -w play.e"...,
- numBytes=346, flags=0)
- at /home/emiliano/src/fossil/tcl/generic/tclBasic.c:4871
- #11 0x00007f7ff78fe2dd in Tcl_FSEvalFileEx (interp=0x7f7ff7730838,
- pathPtr=0x7f7ff77c1938, encodingName=0x0)
- at /home/emiliano/src/fossil/tcl/generic/tclIOUtil.c:1751
- #12 0x00007f7ff7907c87 in Tcl_MainEx (argc=-1, argv=0x7f7fffffdb28,
- appInitProc=0x400b5e <Tcl_AppInit>, interp=0x7f7ff7730838)
- at /home/emiliano/src/fossil/tcl/generic/tclMain.c:407
- #13 0x0000000000400b52 in main (argc=2, argv=0x7f7fffffdb18)
- at /home/emiliano/src/fossil/tcl/unix/tclAppInit.c:84