[Bug 214396] emulators/virtualbox-ose-additions Minimalist program crashes after end main() execution.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Fri Jun 30 14:22:30 UTC 2017


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214396

--- Comment #3 from otacilio.neto at bsd.com.br ---
This version of the program do not shows the bug. Looks related with a race
condition when a call to glutDestroyWindow is missing.

#include <stdio.h>
#include <GL/glew.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include <GL/glext.h>

int main(int argc, char **argv) {

        int win;
        glutInit(&argc, argv);
        win = glutCreateWindow("GLUT");
        glewInit();

        printf("OpenGL version supported by this platform (%s): \n",
glGetString(GL_VERSION));

        glutDestroyWindow(win);
        fprintf(stdout, "Exiting...\n");
        fflush(stdout);

        return 0;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-emulation mailing list