Skip to content

Instantly share code, notes, and snippets.

@marler8997
Created December 16, 2020 02:06
Show Gist options
  • Save marler8997/20dff0ac2de1cea77a48fe3862052b85 to your computer and use it in GitHub Desktop.
Save marler8997/20dff0ac2de1cea77a48fe3862052b85 to your computer and use it in GitHub Desktop.
Segmentation fault at address 0x7f584e9e1018
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:63:29: 0x234e1c in RunQueue.push (thread_pool)
tail.next = runnable;
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:209:32: 0x236978 in ThreadPool.schedule (thread_pool)
self.run_queue.push(runnable);
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:198:22: 0x2342ba in ThreadPool.spawn (thread_pool)
self.schedule(&wrapper.runnable);
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:39:37: 0x233ff2 in realMain (thread_pool)
try ThreadPool.get().?.spawn(Task.run, .{&wg, i});
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:106:31: 0x2344fd in Wrapper.callback (thread_pool)
self.result = @call(.{}, entryFn, self.fn_args);
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:167:36: 0x235a37 in ThreadPool.runWorker (thread_pool)
(runnable.callback)(runnable);
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:148:23: 0x2348a8 in ThreadPool.runWithThreads (thread_pool)
self.runWorker();
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:121:27: 0x233dec in ThreadPool.run (thread_pool)
try runWithThreads(allocator, extra_threads, &wrapper.runnable);
^
/home/marler8997/tmp/zig-scheduler/thread_pool.zig:4:28: 0x22ccd5 in main (thread_pool)
try (try ThreadPool.run(.{}, realMain, .{}));
^
/home/marler8997/zig/0.7.0+c91c4dc25/files/lib/zig/std/start.zig:344:37: 0x205074 in std.start.posixCallMainAndExit (thread_pool)
const result = root.main() catch |err| {
^
/home/marler8997/zig/0.7.0+c91c4dc25/files/lib/zig/std/start.zig:162:5: 0x204f12 in std.start._start (thread_pool)
@call(.{ .modifier = .never_inline }, posixCallMainAndExit, .{});
^
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment