| Author |
Message |
worldgnat

Joined: Mar 07, 2009 Posts: 2 Location: Montreal, QC
|
Posted: Sat Mar 07, 2009 4:35 pm Post subject:
Chuck Segfaults with any example and any audio driver |
 |
|
I'm running Ubuntu 8.10 64, and whenever I compile and run ChucK I get a segfault. I assume that this is because I'm running 64-bit, but I googled around and didn't hear of anyone else having similar issues. Being on Ubuntu I use pulseaudio, but I've tried compiling for oss, alsa, and jack (all three should work), but I get the same result each time (except for Jack, but I've had problems with jack before). This is the code I'm executing:
| Code: |
SinOsc s => dac;
2::second => now;
|
Here's the output of chuck test.ck --verbose:
| Code: |
[chuck]:(2:SYSTEM): setting log level to: 5 (INFORM)...
[chuck]:(2:SYSTEM): initializing virtual machine...
[chuck]:(2:SYSTEM): | behavior: HALT
[chuck]:(2:SYSTEM): | locking down special objects...
[chuck]:(2:SYSTEM): | allocating shreduler...
[chuck]:(2:SYSTEM): | allocating messaging buffers...
[chuck]:(2:SYSTEM): | real-time audio: YES
[chuck]:(2:SYSTEM): | mode: CALLBACK
[chuck]:(2:SYSTEM): | sample rate: 48000
[chuck]:(2:SYSTEM): | buffer size: 512
[chuck]:(2:SYSTEM): | num buffers: 8
[chuck]:(2:SYSTEM): | devices adc: 0 dac: 0 (default 0)
[chuck]:(2:SYSTEM): | channels in: 2 out: 2
[chuck]:(2:SYSTEM): initializing compiler...
[chuck]:(3:SEVERE): | initializing type checker...
[chuck]:(3:SEVERE): | | adding base classes...
[chuck]:(3:SEVERE): | | | class 'object'
[chuck]:(3:SEVERE): | | | class 'array'
[chuck]:(3:SEVERE): | | | class 'string'
[chuck]:(3:SEVERE): | | | class 'ugen'
[chuck]:(3:SEVERE): | | | class 'uanablob'
[chuck]:(3:SEVERE): | | | class 'uana'
[chuck]:(3:SEVERE): | | | class 'shred'
[chuck]:(3:SEVERE): | | | class 'event'
[chuck]:(3:SEVERE): | | | class 'io'
[chuck]:(3:SEVERE): | | | class 'class'
[chuck]:(3:SEVERE): | initializing emitter...
[chuck]:(3:SEVERE): | loading built-in modules...
[chuck]:(3:SEVERE): | | module osc...
[chuck]:(3:SEVERE): | | module xxx...
[chuck]:(3:SEVERE): | | module filter...
[chuck]:(3:SEVERE): | | module STK...
[chuck]:(3:SEVERE): | | module xform...
[chuck]:(3:SEVERE): | | module extract...
[chuck]:(3:SEVERE): | | class 'machine'...
[chuck]:(3:SEVERE): | | class 'std'...
[chuck]:(5:INFORM): | | initializing KBHitManager...
[chuck]:(5:INFORM): | | starting kb loop...
[chuck]:(3:SEVERE): | | class 'math'...
[chuck]:(3:SEVERE): | | class 'opsc'...
[chuck]:(2:SYSTEM): type dependency resolution: MANUAL
[chuck]:(2:SYSTEM): initializing synthesis engine...
[chuck]:(3:SEVERE): | initializing 'dac'...
[chuck]:(3:SEVERE): | initializing 'adc'...
[chuck]:(3:SEVERE): | initializing 'blackhole'...
[chuck]:(2:SYSTEM): | initializing 'real-time' audio...
[chuck]:(5:INFORM): | | initializing callback...
[chuck]:(3:SEVERE): | allocating buffers for 512 x 2 samples...
[chuck]:(3:SEVERE): starting compilation...
[chuck]:(2:SYSTEM): starting listener on port: 8888...
[chuck]:(2:SYSTEM): running virtual machine...
[chuck]:(3:SEVERE): | initializing audio buffers...
[chuck]:(3:SEVERE): | virtual machine running...
Segmentation fault
|
and finally, the output of dmesg:
| Code: |
[43919.567954] chuck[23661]: segfault at 40 ip 00000000004e393e sp 00007fff167657f0 error 4 in chuck[400000+168000]
[44371.652519] chuck[23762]: segfault at 40 ip 00000000004e393e sp 00007fffa80ec170 error 4 in chuck[400000+168000]
[44399.681430] chuck[23778]: segfault at 40 ip 00000000004e393e sp 00007fff03cefd70 error 4 in chuck[400000+168000]
[44401.025759] chuck[23782]: segfault at 40 ip 00000000004e393e sp 00007fff36b6cbf0 error 4 in chuck[400000+168000]
[45301.565725] chuck[24220]: segfault at 40 ip 00000000004e8ace sp 00007fffe40690f0 error 4 in chuck[400000+16e000]
[45665.566619] chuck[24660]: segfault at 40 ip 00000000004e6b4e sp 00007fff25aa7b00 error 4 in chuck[400000+16c000]
[45871.993655] chuck[24904]: segfault at 40 ip 00000000004e8ace sp 00007fff8f97c9e0 error 4 in chuck[400000+16e000]
[45884.947380] chuck[24909]: segfault at 40 ip 00000000004e8ace sp 00007fff77037090 error 4 in chuck[400000+16e000]
[45948.974519] chuck[24930]: segfault at 40 ip 0000000000485d6b sp 00007fffaf7517a0 error 4 in chuck[400000+16e000]
[45955.082682] chuck[24934]: segfault at 40 ip 0000000000485d6b sp 00007fff4e2602a0 error 4 in chuck[400000+16e000]
|
Suggestions?
-Peter
[/code] |
|
|
Back to top
|
|
 |
Kassen
Janitor


Joined: Jul 06, 2004 Posts: 7678 Location: The Hague, NL
G2 patch files: 3
|
Posted: Sun Mar 08, 2009 2:33 am Post subject:
|
 |
|
Yes, it's the 64 bit, sorry.
64 bit support is being worked on but it's not there yet. This really should be noted on the download page to save people like you the effort. _________________ Kassen |
|
|
Back to top
|
|
 |
worldgnat

Joined: Mar 07, 2009 Posts: 2 Location: Montreal, QC
|
Posted: Sun Mar 08, 2009 4:46 pm Post subject:
|
 |
|
| Very well. Is it any use trying to cross-compile it for 32 bit? |
|
|
Back to top
|
|
 |
|