Giter VIP home page Giter VIP logo

Comments (7)

aknuds1 avatar aknuds1 commented on June 20, 2024

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.

spencersalazar avatar spencersalazar commented on June 20, 2024

@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.

aknuds1 avatar aknuds1 commented on June 20, 2024

@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.

heuermh avatar heuermh commented on June 20, 2024

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.

aknuds1 avatar aknuds1 commented on June 20, 2024

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.

gewang avatar gewang commented on June 20, 2024

(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.

heuermh avatar heuermh commented on June 20, 2024

I honestly don't remember if I found a workaround for this, will investigate

from chuck.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.