Date: Mon, 21 Nov 2016 12:25:39 +0100 From: Michael Thayer <michael.thayer@oracle.com> To: =?UTF-8?B?T3RhY8OtbGlv?= <otacilio.neto@bsd.com.br>, vbox@FreeBSD.org, vbox-dev@virtualbox.org Subject: Re: [vbox-dev] Minimalist OpenGL program crashing Message-ID: <7be0cd95-46e2-90b4-15ed-dedc08523867@oracle.com> In-Reply-To: <47706e97-9f29-7a7d-bd31-3a773a7a94b0@bsd.com.br> References: <47706e97-9f29-7a7d-bd31-3a773a7a94b0@bsd.com.br>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello Otacílio, 10.11.2016 13:07, Otacílio wrote: > I'm using this minimalist program to test OpenGL. When running on a true > machine (FreeBSD 11, clang 3.8.0) this program runs fine. But, when > compiling and running in a Virtualbox guest with > virtualbox-ose-additions-5.1.8 installed (FreeBSD 11, clang 3.8.0, > OpenGL enabled) I'm getting a core dump when the program exits. So its > not clear to me if this is a FreeBSD port problem or not. So, please, I > wold like ask you to compile and running in your's guest machine running > Linux or FreeBSD and report to me the results. I can confirm that this affects Linux guests too. Unfortunately we do not have time to investigate X11 guest 3D issues for the foreseeable future, so your best bet is probably to debug it yourself. If you can clearly locate the problem (as in understanding it) chances are good that we will fix it. Regards, Michael > > Program: > > #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) { > > glutInit(&argc, argv); > glutCreateWindow("GLUT"); > glewInit(); > > printf("OpenGL version supported by this platform (%s): \n", > glGetString(GL_VERSION)); > > fprintf(stdout, "Exiting...\n"); > fflush(stdout); > > return 0; > } > > > Compiler command: > > cc -I/usr/local/include -L/usr/local/lib -o testegl testegl.c -lGL > -lGLEW -lGLU -lglut > > > My results in a guest machine: > > [ota@nostromo /usr/home/ota/Desktop]$ ./testegl > OpenGL version supported by this platform (2.1 Chromium 1.9): > Exiting... > Segmentation fault (imagem do núcleo gravada) > > > Thanks a lot! > > []'s > > -Otacilio > > _______________________________________________ > vbox-dev mailing list > vbox-dev@virtualbox.org > https://www.virtualbox.org/mailman/listinfo/vbox-dev -- Michael Thayer | VirtualBox engineer ORACLE Deutschland B.V. & Co. KG | Werkstr. 24 | D-71384 Weinstadt ORACLE Deutschland B.V. & Co. KG Hauptverwaltung: Riesstraße 25, D-80992 München Registergericht: Amtsgericht München, HRA 95603 Komplementärin: ORACLE Deutschland Verwaltung B.V. Hertogswetering 163/167, 3543 AS Utrecht, Niederlande Handelsregister der Handelskammer Midden-Nederland, Nr. 30143697 Geschäftsführer: Alexander van der Ven, Jan Schultheiss, Val Maher
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7be0cd95-46e2-90b4-15ed-dedc08523867>