Questions tagged [libgc]

libgc provides a garbage collector for C and C++ programs such that there is less chance of memory leaks in those programs.

libgc provides a garbage collector for C and C++ programs such that there is less chance of memory leaks in those programs.

6 questions
1
vote
0 answers

Designate system-allocated memory as uncollectable

I wish to put pointers allocated via GC_MALLOC in memory allocated with the standard malloc(). The manual says to not do this, but this memory is allocated in a library I do not have control over. Is it possible to designate the memory allocated by…
Liam
  • 1,471
  • 1
  • 15
  • 25
1
vote
2 answers

Sudden Error in '': free(): invalid pointer

I am having this segmentation fault after a colleague of mine committed some new features on our project. The new feature has no impact on the following function, but only increases the QString argument size. After some debugging, I've figured out…
meetnick
  • 1,196
  • 2
  • 12
  • 28
1
vote
0 answers

Compiling libgc with emscripten

I have a file called foo.c which contains the line #include , referencing the Boehm garbage collector library. The emscripten documentation is says that external libraries must be compiled to bitcode first. So I compiled both 12.c and gc.c to…
alt
  • 13,357
  • 19
  • 80
  • 120
1
vote
2 answers

Using libgc with GNAT?

I've heard several mentions that Ada supports garbage collection --- and looking at the language design, it's obviously been designed with that in mind. I have a non-real-time application for which garbage collection would be really, really useful.…
David Given
  • 13,277
  • 9
  • 76
  • 123
0
votes
0 answers

ERROR: unknown type name '__float128' while compiling stdlib.h

Trying to compile tcpdump package with uClibc Getting error while compiling stdlib.h ERROR: unknown type name '__float128' while compiling stdlib.h Unable to identify why the error is. I don't know whether i am missing any dependencies.
Sheik
  • 17
  • 7
0
votes
1 answer

Can shed skin be used on Cygwin (execinfo.h is missing when libgc installs)?

I wanted to try shed skin on cygwin. Installation of shed skin and libgc seems okay, but when I tried to make the shed-skinned Python script, it complains: /usr/lib/python2.7/site-packages/shedskin/lib/builtin.hpp:31:22: fatal error: execinfo.h: No…
boardrider
  • 5,882
  • 7
  • 49
  • 86