C Segfault only on FBSD, not on linux

I've been working on a multithreaded mandelbrot set for quite some time, it works perfectly on linux (gcc-9) but every time I ran it on FreeBSD I get a segfault at line 27 of queue.c, both gcc and clang

in gdb I get:
Code:
(gdb) p aux->next
Cannot access memory at address 0x800b60000

Is it something different with memory layout in FreeBSD that is preventing this from running?

 
I was wondering...
When you use malloc, you always set the size as the pointer of the struct, not the struct itself.
I ain't really accustomed to program in C, but that shocks me.
 
I was wondering...
When you use malloc, you always set the size as the pointer of the struct, not the struct itself.
I ain't really accustomed to program in C, but that shocks me.
yes, probably in the other instances the sizeof was aligning correct, but not in for the struct that was throwing error. I'm feeling stupid right now.
 
Back
Top