________@______ ~/libs/juce/demo/build/linux/build $ gdb jucedemo
GNU gdb 6.4
Copyright 2005 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-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/______/libs/juce/demo/build/linux/build/jucedemo
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 14363)]
JUCE v1.34
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 14363)]
0x000000000051cb99 in noCpuId () at juce_linux_SystemStats.cpp:110
110 *familyModel = family;
(gdb)
uce_CharacterFunctions.cpp
../../src/juce_core/text/juce_CharacterFunctions.cpp: In static member function `static int juce::CharacterFunctions::vprintf(char*, int, const char*, const __va_list_tag (&)[1])':
../../src/juce_core/text/juce_CharacterFunctions.cpp:583: error: invalid conversion from `const __va_list_tag*' to `__va_list_tag*'
../../src/juce_core/text/juce_CharacterFunctions.cpp:583: error: initializing argument 4 of `int vsnprintf(char*, size_t, const char*, __va_list_tag*)'
../../src/juce_core/text/juce_CharacterFunctions.cpp: In static member function `static int juce::CharacterFunctions::vprintf(juce::juce_wchar*, int, const juce::juce_wchar*, const __va_list_tag (&)[1])':
../../src/juce_core/text/juce_CharacterFunctions.cpp:599: error: invalid conversion from `const __va_list_tag*' to `__va_list_tag*'
../../src/juce_core/text/juce_CharacterFunctions.cpp:599: error: initializing argument 4 of `int vswprintf(wchar_t*, size_t, const wchar_t*, __va_list_tag*)'
make[1]: *** [../../bin/intermediate_linux/Debug/juce_CharacterFunctions.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [JUCE] Error 2
int vsnprintf(char *str, size_t size, const char *format, va_list ap);
int vswprintf(wchar_t *wcs, size_t maxlen,
const wchar_t *format, va_list args);
~ $ uname -a
Linux tulkas 2.6.15-gentoo-r5 #1 SMP PREEMPT Tue Jul 18 11:57:24 AKDT 2006 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4200+ GNU/Linux
static juce_noinline unsigned int getCPUIDWord (int* familyModel, int* extFeatures)
{
unsigned int cpu = 0;
unsigned int ext = 0;
unsigned int family = 0;
unsigned int dummy = 0;
__asm__ ("cpuid" : "=a" (family), "=b" (ext), "=c" (dummy),"=d" (cpu) : "a" (1));
if (familyModel != 0)
*familyModel = family;
if (extFeatures != 0)
*extFeatures = ext;
return cpu;
}
JUCE v1.34
testing ALSA device: hw:CK804,0 outs=2-6 ins=2-2 rates=2
testing ALSA device: hw:CK804,1 outs=0-0 ins=2-2 rates=1
testing ALSA device: hw:CK804,2 outs=2-2 ins=0-0 rates=1
testing ALSA device: hw:CK804,0 outs=2-6 ins=2-2 rates=2
testing ALSA device: hw:CK804,1 outs=0-0 ins=2-2 rates=1
testing ALSA device: hw:CK804,2 outs=2-2 ins=0-0 rates=1
ALSA error: Invalid argument
GNU gdb 6.4
Copyright 2005 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-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/patrick/juce/demo/build/linux/build/jucedemo
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 7689)]
JUCE v1.37
[New Thread 32769 (LWP 7692)]
[New Thread 16386 (LWP 7693)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 7689)]
0x000000000042feee in juce::atomicIncrement (variable=@0x2aaaad0ba010)
at juce_Atomic.h:62
62 : "c" (&variable));
(gdb) quit
GNU gdb 6.4
Copyright 2005 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-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/----------/juce/demo/build/linux/build/jucedemo
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 11201)]
JUCE v1.37
[New Thread 32769 (LWP 11204)]
[New Thread 16386 (LWP 11205)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 11201)]
0x000000000042feee in juce::atomicIncrement (variable=@0x2aaaad601a60) at juce_Atomic.h:62
62 : "c" (&variable));
(gdb) bt 100
#0 0x000000000042feee in juce::atomicIncrement (variable=@0x2aaaad601a60) at juce_Atomic.h:62
#1 0x000000000042ad1c in String (this=0x2aaaad601aa0, other=@0x7fffffa17cb0) at juce_String.cpp:156
#2 0x00000000004baa25 in Component (this=0x2aaaad601a90, name=@0x7fffffa17cb0) at juce_Component.cpp:153
#3 0x00000000004c708a in Button (this=0x2aaaad601a90, name=@0x7fffffa17cb0) at juce_Button.cpp:65
#4 0x00000000004c9f00 in DrawableButton (this=0x2aaaad601a90, name=@0x7fffffa17cb0, buttonStyle=juce::DrawableButton::ImageFitted) at juce_DrawableButton.cpp:54
#5 0x0000000000510ea1 in juce::LookAndFeel::createTabBarExtrasButton (this=0x7903c8) at juce_LookAndFeel.cpp:1754
#6 0x0000000000511810 in juce::LookAndFeel::createToolbarMissingItemsButton (this=0x7903c8) at juce_LookAndFeel.cpp:1832
#7 0x00000000004ea773 in Toolbar (this=0x2aaaad600bd0) at juce_Toolbar.cpp:279
#8 0x000000000041b610 in ToolbarDemoComp (this=0x2aaaad600ac0, commandManager=0x7aa590) at WidgetsDemo.cpp:625
#9 0x000000000041a161 in DemoTabbedComponent (this=0x7afdc0, commandManager=0x7aa590) at WidgetsDemo.cpp:916
#10 0x0000000000419dc7 in WidgetsDemo (this=0x7af1e0, commandManager=0x7aa590) at WidgetsDemo.cpp:1029
#11 0x0000000000419890 in createWidgetsDemo (commandManager=0x7aa590) at WidgetsDemo.cpp:1319
#12 0x00000000004086f8 in ContentComp::perform (this=0x790310, info=@0x79bfe0) at MainDemoWindow.cpp:393
#13 0x000000000043ca35 in juce::ApplicationCommandTarget::tryToInvoke (this=0x7903b0, info=@0x79bfe0, async=false) at juce_ApplicationCommandTarget.cpp:66
#14 0x000000000043d090 in juce::ApplicationCommandTarget::CommandTargetMessageInvoker::handleMessage (this=0x7acb70, message=@0x79d6b0)
at juce_ApplicationCommandTarget.cpp:203
#15 0x0000000000454fbf in juce::MessageManager::deliverMessage (this=0x77de00, message=0x79d6b0) at juce_MessageManager.cpp:111
#16 0x0000000000540daa in juce::juce_dispatchNextMessageOnSystemQueue (returnIfNoPendingMessages=false) at juce_linux_Messaging.cpp:362
#17 0x000000000045513a in juce::MessageManager::dispatchNextMessage (this=0x77de00, returnImmediatelyIfNoMessages=false, wasAMessageDispatched=0x0)
at juce_MessageManager.cpp:150
#18 0x00000000004553cd in juce::MessageManager::runDispatchLoop (this=0x77de00) at juce_MessageManager.cpp:194
#19 0x0000000000439a77 in juce::JUCEApplication::main (commandLine=@0x7fffffa183b0, app=0x77db80) at juce_Application.cpp:216
#20 0x0000000000439ef2 in juce::JUCEApplication::main (argc=1, argv=0x7fffffa18498, newApp=0x77db80) at juce_Application.cpp:296
#21 0x0000000000407b5f in main (argc=1, argv=0x7fffffa18498) at ApplicationStartup.cpp:118
(gdb)
GNU gdb 6.4
Copyright 2005 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-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/----------/ousia/src/gui/tests/test_ousia/test_ousia
[Thread debugging using libthread_db enabled]
[New Thread 16384 (LWP 7696)]
Qt: gdb: -nograb added to command-line options.
Use the -dograb option to enforce grabbing.
[New Thread 32769 (LWP 7699)]
[New Thread 16386 (LWP 7700)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 16384 (LWP 7696)]
0x0000000000417de1 in juce::String::operator= ()
(gdb) bt 100
#0 0x0000000000417de1 in juce::String::operator= ()
#1 0x0000000000476c86 in juce::FreeTypeInterface::enumerateFaces ()
#2 0x00000000004770fd in juce::FreeTypeInterface::FreeTypeInterface ()
#3 0x0000000000475a50 in juce::Font::getDefaultFontNames ()
#4 0x0000000000421868 in juce::initialiseJuce_GUI ()
#5 0x000000000040bfea in OusiaApplication (this=0x7fffffd2a1a0, argc=@0x7fffffd2a1dc, argv=0x7fffffd2a258) at ApplicationStartup.cpp:84
#6 0x000000000040c4df in main (argc=1, argv=0x7fffffd2a258) at ApplicationStartup.cpp:134
(gdb)
//==============================================================================
/** Increments an integer in a thread-safe way. */
forcedinline void atomicIncrement (int& variable) throw()
{
__asm__ __volatile__ (
"lock incl %0"
: "=m" (variable)
: "m" (variable));
}
/** Increments an integer in a thread-safe way and returns the incremented value. */
forcedinline int atomicIncrementAndReturn (int& variable) throw()
{
int result;
__asm__ __volatile__ (
"lock xaddl %%eax, (%%ebx) \n\
incl %%eax"
: "=a" (result)
: "b" (&variable), "a" (1)
: "cc", "memory");
return result;
}
/** Decrememts an integer in a thread-safe way. */
forcedinline void atomicDecrement (int& variable) throw()
{
__asm__ __volatile__ (
"lock decl %0"
: "=m" (variable)
: "m" (variable));
}
/** Decrememts an integer in a thread-safe way and returns the incremented value. */
forcedinline int atomicDecrementAndReturn (int& variable) throw()
{
int result;
__asm__ __volatile__ (
"lock xaddl %%eax, (%%ebx) \n\
decl %%eax"
: "=a" (result)
: "b" (&variable), "a" (-1)
: "cc", "memory");
return result;
}JUCE v1.34
testing ALSA device: hw:CK804,0 outs=2-6 ins=2-2 rates=2
testing ALSA device: hw:CK804,1 outs=0-0 ins=2-2 rates=1
testing ALSA device: hw:CK804,2 outs=2-2 ins=0-0 rates=1
testing ALSA device: hw:CK804,0 outs=2-6 ins=2-2 rates=2
testing ALSA device: hw:CK804,1 outs=0-0 ins=2-2 rates=1
testing ALSA device: hw:CK804,2 outs=2-2 ins=0-0 rates=1
ALSA error: Invalid argument
GNU gdb 6.4
Copyright 2005 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-pc-linux-gnu"...Using host libthread_db library "/lib/libthread_db.so.1".
(gdb) run
Starting program: /home/patrick/juce/demo/build/linux/build/jucedemo
[Thread debugging using libthread_db enabled]
[New Thread 47562329083024 (LWP 12292)]
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 47562329083024 (LWP 12292)]
0x000000000055aa46 in juce::atomicIncrementAndReturn (variable=@0x7fffb50002dc)
at juce_Atomic.h:83
83 : "cc", "memory");
(gdb) bt 100
#0 0x000000000055aa46 in juce::atomicIncrementAndReturn (
variable=@0x7fffb50002dc) at juce_Atomic.h:83
#1 0x000000000055a91a in juce::initialiseJuce_NonGUI ()
at juce_SystemStats.cpp:64
#2 0x000000000043d31e in juce::initialiseJuce_GUI ()
at juce_Application.cpp:310
#3 0x000000000043d656 in juce::JUCEApplication::main (
commandLine=@0x7fffb5000470, app=0x7739f0) at juce_Application.cpp:178
#4 0x000000000043dc64 in juce::JUCEApplication::main (argc=1,
argv=0x7fffb50005c8, newApp=0x7739f0) at juce_Application.cpp:296
#5 0x0000000000407b5f in main (argc=1, argv=0x7fffb50005c8)
at ApplicationStartup.cpp:166
(gdb)
if(failed (snd_pcm_sw_params_current (handle, swParams)))
return false;
if(failed (snd_pcm_sw_params_set_silence_threshold (handle, swParams, 0)))
return false;
if(failed (snd_pcm_sw_params_set_silence_size (handle, swParams, INT_MAX)))
return false;
if(failed (snd_pcm_sw_params_set_start_threshold (handle, swParams, samplesPerPeriod)))
return false;
if(failed (snd_pcm_sw_params_set_stop_threshold (handle, swParams, INT_MAX)))
return false;
if(failed (snd_pcm_sw_params (handle, swParams)))
return false;
if(failed (snd_pcm_sw_params_set_silence_size (handle, swParams, 0)))
return false;
JUCE v1.34
testing ALSA device: hw:CK804,0 outs=2-6 ins=2-2 rates=2
testing ALSA device: hw:CK804,1 outs=0-0 ins=2-2 rates=1
testing ALSA device: hw:CK804,2 outs=2-2 ins=0-0 rates=1
testing ALSA device: hw:CK804,0 outs=2-6 ins=2-2 rates=2
testing ALSA device: hw:CK804,1 outs=0-0 ins=2-2 rates=1
testing ALSA device: hw:CK804,2 outs=2-2 ins=0-0 rates=1
ALSA error: Broken pipe
Set silence size inside a software configuration container.
Parameters:
pcm PCM handle
params Software configuration container
val Silence size in frames (0 for disabled)
Returns:
0 otherwise a negative error code
A portion of playback buffer is overwritten with silence when playback underrun is nearer than silence threshold (see snd_pcm_sw_params_set_silence_threshold)
The special case is when silence size value is equal or greater than boundary. The unused portion of the ring buffer (initial written samples are untouched) is filled with silence at start. Later, only just processed sample area is filled with silence. Note: silence_threshold must be set to zero.
if(failed (snd_pcm_sw_params_current (handle, swParams)))
return false;
if(failed (snd_pcm_sw_params_set_silence_threshold (handle, swParams, 0)))
return false;
snd_pcm_sw_params_set_silence_size (handle, swParams, INT_MAX));
if(failed (snd_pcm_sw_params_set_start_threshold (handle, swParams, samplesPerPeriod)))
return false;
if(failed (snd_pcm_sw_params_set_stop_threshold (handle, swParams, INT_MAX)))
return false;
if(failed (snd_pcm_sw_params (handle, swParams)))
return false;Users browsing this forum: No registered users and 3 guests