electro-music.org   Dedicated to experimental electro-acoustic
and electronic music
 
 Front Page  |  Radio  |  Forum  |  Media  |  Playlists  |  Wiki
Forum with support of Syndicator RSS
 FAQFAQ   CalendarCalendar   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   LinksLinks
 RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in  Chat RoomChat Room 
 Forum index » DIY Hardware and Software » ChucK programming language
Chuck Segfaults with any example and any audio driver
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
Author Message
worldgnat



Joined: Mar 07, 2009
Posts: 2
Location: Montreal, QC

PostPosted: Sat Mar 07, 2009 4:35 pm    Post subject: Chuck Segfaults with any example and any audio driver Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message
Kassen
Janitor
Janitor


Joined: Jul 06, 2004
Posts: 7678
Location: The Hague, NL
G2 patch files: 3

PostPosted: Sun Mar 08, 2009 2:33 am    Post subject: Reply with quote  Mark this post and the followings unread

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
View user's profile Send private message Send e-mail Visit poster's website
worldgnat



Joined: Mar 07, 2009
Posts: 2
Location: Montreal, QC

PostPosted: Sun Mar 08, 2009 4:46 pm    Post subject: Reply with quote  Mark this post and the followings unread

Very well. Is it any use trying to cross-compile it for 32 bit?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Moderators: Kassen
Page 1 of 1 [3 Posts]
View unread posts
View new posts in the last week
Mark the topic unread :: View previous topic :: View next topic
 Forum index » DIY Hardware and Software » ChucK programming language
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum
Log in
Username:     Password:      Log me on automatically each visit    


Forum with support of Syndicator RSS
Powered by phpBB © 2001, 2005 phpBB Group
Copyright © 2003 through 2026 by electro-music.org