Skip to content

Instantly share code, notes, and snippets.

@duckinator
Created January 24, 2019 02:12
Show Gist options
  • Save duckinator/4c8a2fd8b898c6aa1e4a44d9c61b4d57 to your computer and use it in GitHub Desktop.
Save duckinator/4c8a2fd8b898c6aa1e4a44d9c61b4d57 to your computer and use it in GitHub Desktop.
Running this `bash ./webkit2gtk-testcase.c` results in 80GB+ VIRT memory reported in htop.
#//\
rm -f webkit-testcase && \
cc main.c -std=c11 -DWEBVIEW_GTK=1 `pkg-config --cflags --libs gtk+-3.0 webkit2gtk-4.0` -o webkit-testcase && \
./webkit-testcase; \
exit
// Run `bash ./webkit2gtk-testcase.c` to run this.
#include <gtk/gtk.h>
#include <webkit2/webkit2.h>
#include <unistd.h>
int main(int argc, char* argv[])
{
gtk_init(&argc, &argv);
webkit_web_view_new();
sleep(10);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment