wolfpld / tracy

Frame profiler
https://tracy.nereid.pl/
Other
9.87k stars 658 forks source link

Segmentation fault in free_list_pop on Linux #732

Open dag-h opened 7 months ago

dag-h commented 7 months ago

My application crashes on startup when using Tracy, on free_list_pop with a SIGSEGV. I'm on Rocky 9 and using Tracy 0.10.0.

Backtrace:

  libTracyClientd.so.0.10.0!tracy::free_list_pop(void ** list):2078
  libTracyClientd.so.0.10.0!tracy::_rpmalloc_allocate_from_heap_fallback(tracy::heap_t * heap, tracy::heap_size_class_t * heap_size_class, uint32_t class_idx):2092
  libTracyClientd.so.0.10.0!tracy::_rpmalloc_allocate_small(tracy::heap_t * heap, size_t size):2142
  libTracyClientd.so.0.10.0!tracy::_rpmalloc_allocate(tracy::heap_t * heap, size_t size):2223
  libTracyClientd.so.0.10.0!tracy::rpmalloc(size_t size):3009
  libTracyClientd.so.0.10.0!tracy::tracy_malloc(size_t size):26
  libTracyClientd.so.0.10.0!tracy::Profiler::SpawnWorkerThreads(tracy::Profiler * const this):1402
  libTracyClientd.so.0.10.0!tracy::Profiler::Profiler(tracy::Profiler * const this):1393
  libTracyClientd.so.0.10.0!__static_initialization_and_destruction_0(int __initialize_p, int __priority):1303
  libTracyClientd.so.0.10.0!_GLOBAL__sub_I.00105_TracyClient.cpp(void)():122
  ld-linux-x86-64.so.2!call_init(char ** env, char ** argv, int argc, struct link_map * l):70
  ld-linux-x86-64.so.2!call_init(struct link_map * l, int argc, char ** argv, char ** env):26
  ld-linux-x86-64.so.2!_dl_init(struct link_map * main_map, int argc, char ** argv, char ** env):117
  ld-linux-x86-64.so.2!_dl_start_user:0

Edit: I can also add that everything works without issues on Windows. Also, https://github.com/wolfpld/tracy/issues/112 maybe related.