Comments (7)
I can reproduce the segfault while running chuck in the terminal, however, in Xcode it doesn't crash (executes successfully AFAICT). I figured I'd try my hand at fixing this, but does anyone have a clue as to how I can debug the issue, i.e. get a stacktrace?
from chuck.
@aknuds1 you might make sure Xcode is compiling running a 64-bit executable (or the same architecture as your terminal-based exe), as with memory access bugs (as this likely is) that will make a difference. Also make sure the command line version and Xcode project are from the exact same revision of the code.
Is there a single-file test case that will also cause the crash?
from chuck.
@spencersalazar I only use the executable built by Xcode, and it's built as 64-bit. Given that ChucK does not crash under Xcode, is there some other way to produce a stacktrace?
from chuck.
Sorry, reproducing the original problem as described is a bit convoluted, I will look into producing a simpler test case.
What I would really like though are static arrays of object references. :)
from chuck.
I got a core dump, how can I use this to debug? I've only used gdb with coredumps on Linux, but that was ages ago.
According to the crash report in Console, the stacktrace looks like this:
Thread 6 Crashed:: com.apple.audio.IOThread.client
0 chuck 0x0000000100056a8d Chuck_Instr_Assign_Object::execute(Chuck_VM*, Chuck_VM_Shred*) + 45
1 chuck 0x000000010004c962 Chuck_VM::compute() + 338
2 chuck 0x000000010004c6f8 Chuck_VM::run(long) + 72
3 chuck 0x00000001000ba8df Digitalio::cb2(void*, void*, unsigned int, double, unsigned int, void*) + 399
4 chuck 0x00000001000cb06d RtApiCore::callbackEvent(unsigned int, AudioBufferList const*, AudioBufferList const*) + 317
5 chuck 0x00000001000ca2f7 callbackHandler(unsigned int, AudioTimeStamp const*, AudioBufferList const*, AudioTimeStamp const*, AudioBufferList*, AudioTimeStamp const*, void*) + 23
6 com.apple.audio.CoreAudio 0x00007fff8c724acb HALC_ProxyIOContext::IOWorkLoop() + 3667
7 com.apple.audio.CoreAudio 0x00007fff8c723bcd HALC_ProxyIOContext::IOThreadEntry(void*) + 97
8 com.apple.audio.CoreAudio 0x00007fff8c723a8d HALB_IOThread::Entry(void*) + 75
9 libsystem_pthread.dylib 0x00007fff87a12899 _pthread_body + 138
10 libsystem_pthread.dylib 0x00007fff87a1272a _pthread_start + 137
11 libsystem_pthread.dylib 0x00007fff87a16fc9 thread_start + 13
from chuck.
(slowly) cleaning house on time-honored tickets. FYI as of the latest 1.5.1.2, LiCK compiles and runs without error chuck import.ck
Is this still an issue?
from chuck.
I honestly don't remember if I found a workaround for this, will investigate
from chuck.
Related Issues (20)
- "Too many open files" via SndBuf
- chuck/miniAudicle error caret position error
- Bug - one grammatical mistake in README.md
- Global Gain UGen does not disconnect itself from a local UGen when a shred is removed.
- need runtime type check for casting HOT 1
- <<< (SinOsc s => Pan2 p) >>>; causes miniAudicle to crash HOT 2
- `popFront()` doesn't work with objects HOT 1
- UGen reference counting revamp HOT 1
- FFT IFFT and xsynth.ck example
- casting `Object` to `string` yields unexpected values?
- the time is now: fix class static variables HOT 3
- Array constructors for ugens only affects first element of array HOT 2
- "RtApiDs::getDeviceInfo: device ID is invalid!" on certain sample rates on windows with directsound
- constructors CKDoc issue for user-defined classes HOT 1
- means for adding CKDoc documentation for user-defined classes
- add wildcard support for OSC addresses HOT 4
- setGlobalFloatArray can lead to a crash HOT 3
- seg fault on some global objects upon cleanup HOT 1
- Array ugen to stereo ugen does not properly map. HOT 1
- ChucKing of UGen Arrays; large to small doesn't modulo. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chuck.