Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#13 qarecord Segmentation fault.

open
nobody
None
5
2011-11-19
2011-11-19
Paolo Patruno
No

On Fedora 16 working with qarecord:

(gdb) run
Starting program: /usr/bin/qarecord
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[New Thread 0x7fffefa0d700 (LWP 26668)]
Using periodsize 2048 frames.
Can't set sched_setscheduler - using normal priority
[New Thread 0x7fffed77d700 (LWP 26669)]
[New Thread 0x7fffecd79700 (LWP 26670)]
[New Thread 0x7fffdffff700 (LWP 26671)]
<<<<<<<<<<<<<<< Buffer Overrun >>>>>>>>>>>>>>>
[Thread 0x7fffecd79700 (LWP 26670) exited]
[New Thread 0x7fffecd79700 (LWP 26673)]
[Thread 0x7fffecd79700 (LWP 26673) exited]
[New Thread 0x7fffecd79700 (LWP 26681)]
[Thread 0x7fffed77d700 (LWP 26669) exited]
[New Thread 0x7fffed77d700 (LWP 26683)]
/home/pat1/tmp/New1.wav already exists, renaming old file to /home/pat1/tmp/New1.old6.wav
Writing to file /home/pat1/tmp/New1.wav
[Thread 0x7fffed77d700 (LWP 26683) exited]
[Thread 0x7fffecd79700 (LWP 26681) exited]
[New Thread 0x7fffecd79700 (LWP 26684)]
/home/pat1/tmp/New1.wav already exists, renaming old file to /home/pat1/tmp/New1.old7.wav
Writing to file /home/pat1/tmp/New1.wav
[Thread 0x7fffecd79700 (LWP 26684) exited]
[New Thread 0x7fffecd79700 (LWP 26685)]
/home/pat1/tmp/New1.wav already exists, renaming old file to /home/pat1/tmp/New1.old8.wav
Writing to file /home/pat1/tmp/New1.wav
[Thread 0x7fffecd79700 (LWP 26685) exited]
[New Thread 0x7fffecd79700 (LWP 26686)]
/home/pat1/tmp/New1.wav already exists, renaming old file to /home/pat1/tmp/New1.old9.wav
Writing to file /home/pat1/tmp/New1.wav
File write error
[Thread 0x7fffecd79700 (LWP 26686) exited]
[New Thread 0x7fffecd79700 (LWP 26687)]
/home/pat1/tmp/New1.wav already exists, renaming old file to /home/pat1/tmp/New1.old10.wav
Writing to file /home/pat1/tmp/New1.wav
[Thread 0x7fffecd79700 (LWP 26687) exited]
[New Thread 0x7fffecd79700 (LWP 26690)]
/home/pat1/tmp/New1.wav already exists, renaming old file to /home/pat1/tmp/New1.old11.wav
Writing to file /home/pat1/tmp/New1.wav
[Thread 0x7fffecd79700 (LWP 26690) exited]
<<<<<<<<<<<<<<< Buffer Overrun >>>>>>>>>>>>>>>
[New Thread 0x7fffecd79700 (LWP 26697)]
[New Thread 0x7fffed77d700 (LWP 26698)]
[New Thread 0x7fffde222700 (LWP 26699)]
[Thread 0x7fffed77d700 (LWP 26698) exited]
[Thread 0x7fffde222700 (LWP 26699) exited]
[New Thread 0x7fffde222700 (LWP 26700)]
[Thread 0x7fffde222700 (LWP 26700) exited]
[New Thread 0x7fffde222700 (LWP 26701)]
[Thread 0x7fffde222700 (LWP 26701) exited]
[New Thread 0x7fffde222700 (LWP 26708)]
/home/pat1/tmp/New1.wav already exists, renaming old file to /home/pat1/tmp/New1.old12.wav
Writing to file /home/pat1/tmp/New1.wav

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 0x7fffde222700 (LWP 26708)]
__mempcpy_sse2 () at ../sysdeps/x86_64/memcpy.S:273
273 rep
Missing separate debuginfos, use: debuginfo-install lcms-libs-1.19-4.fc16.x86_64
(gdb) where
#0 __mempcpy_sse2 () at ../sysdeps/x86_64/memcpy.S:273
#1 0x0000003ade4778f6 in _IO_new_file_xsputn (n=18446744073708257280, data=<optimized out>, f=0x7fffc40181b0) at fileops.c:1350
#2 _IO_new_file_xsputn (f=0x7fffc40181b0, data=<optimized out>, n=18446744073708257280) at fileops.c:1305
#3 0x0000003ade46d62d in _IO_fwrite (buf=<optimized out>, size=18446744073708257280, count=1, fp=0x7fffc40181b0) at iofwrite.c:45
#4 0x00000000004089dc in DiskWrite::readBlock (this=0x838fe0, waitIfEmpty=<optimized out>, writeToFile=<optimized out>) at diskwrite.cpp:132
#5 0x0000000000408c67 in DiskWrite::run (this=0x838fe0) at diskwrite.cpp:157
#6 0x0000003f94a7bb1b in QThreadPrivate::start (arg=0x838fe0) at thread/qthread_unix.cpp:298
#7 0x0000003adec07d90 in start_thread (arg=0x7fffde222700) at pthread_create.c:309
#8 0x0000003ade4eeddd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
(gdb)

Discussion

  • Paolo Patruno
    Paolo Patruno
    2011-11-19

    qarecord -v
    QARecord 0.5.0

    one more:

    gdb qarecord
    GNU gdb (GDB) Fedora (7.3.50.20110722-9.fc16)
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law. Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "x86_64-redhat-linux-gnu".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>...
    Reading symbols from /usr/bin/qarecord...Reading symbols from /usr/lib/debug/usr/bin/qarecord.debug...done.
    done.
    (gdb) run --jack
    Starting program: /usr/bin/qarecord --jack
    [Thread debugging using libthread_db enabled]
    Using host libthread_db library "/lib64/libthread_db.so.1".
    [New Thread 0x7fffefb13700 (LWP 892)]
    [New Thread 0x7fffefa92700 (LWP 893)]
    [New Thread 0x7fffee967700 (LWP 894)]

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 0x7fffee967700 (LWP 894)]
    RingBuffer::beginWrite (this=0x0, curPos=@0x7fffee966d80, size=@0x7fffee966d88)
    at ringbuffer.cpp:47
    47 size = ringBufSize;
    (gdb) where
    #0 RingBuffer::beginWrite (this=0x0, curPos=@0x7fffee966d80, size=
    @0x7fffee966d88) at ringbuffer.cpp:47
    #1 0x000000000040c8fe in JackCapture::jack_capture (this=0x80de70, nframes=64)
    at jackcapture.cpp:88
    #2 0x0000003aeac10402 in CallProcessCallback (this=0x822630)
    at ../common/JackClient.cpp:585
    #3 ExecuteThread (this=<optimized out>) at ../common/JackClient.cpp:552
    #4 Jack::JackClient::Execute (this=0x822630) at ../common/JackClient.cpp:537
    #5 0x0000003aeac23260 in Jack::JackPosixThread::ThreadHandler (arg=0x8227a0)
    at ../posix/JackPosixThread.cpp:59
    #6 0x0000003adec07d90 in start_thread (arg=0x7fffee967700)
    at pthread_create.c:309
    #7 0x0000003ade4eeddd in clone ()
    at ../sysdeps/unix/sysv/linux/x86_64/clone.S:115
    (gdb)