From owner-freebsd-emulation@freebsd.org Mon Nov 21 11:25:47 2016 Return-Path: Delivered-To: freebsd-emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 161CFC4C928 for ; Mon, 21 Nov 2016 11:25:47 +0000 (UTC) (envelope-from michael.thayer@oracle.com) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id E6BF1BCE for ; Mon, 21 Nov 2016 11:25:46 +0000 (UTC) (envelope-from michael.thayer@oracle.com) Received: by mailman.ysv.freebsd.org (Postfix) id E3168C4C927; Mon, 21 Nov 2016 11:25:46 +0000 (UTC) Delivered-To: emulation@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E2BA9C4C925 for ; Mon, 21 Nov 2016 11:25:46 +0000 (UTC) (envelope-from michael.thayer@oracle.com) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C5770BCD for ; Mon, 21 Nov 2016 11:25:46 +0000 (UTC) (envelope-from michael.thayer@oracle.com) Received: by freefall.freebsd.org (Postfix) id B950D1675; Mon, 21 Nov 2016 11:25:46 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Gandi Standard SSL CA 2" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id 9EC621674 for ; Mon, 21 Nov 2016 11:25:46 +0000 (UTC) (envelope-from michael.thayer@oracle.com) Received: from userp1040.oracle.com (userp1040.oracle.com [156.151.31.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "userp1040.oracle.com", Issuer "Oracle SSL CA - G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 73A13BCC for ; Mon, 21 Nov 2016 11:25:46 +0000 (UTC) (envelope-from michael.thayer@oracle.com) Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id uALBPine013652 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 Nov 2016 11:25:44 GMT Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id uALBPhNq013811 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 21 Nov 2016 11:25:44 GMT Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id uALBPfiT018213; Mon, 21 Nov 2016 11:25:42 GMT Received: from [192.168.178.32] (/79.214.105.237) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 Nov 2016 03:25:41 -0800 Subject: Re: [vbox-dev] Minimalist OpenGL program crashing To: =?UTF-8?B?T3RhY8OtbGlv?= , vbox@FreeBSD.org, vbox-dev@virtualbox.org References: <47706e97-9f29-7a7d-bd31-3a773a7a94b0@bsd.com.br> From: Michael Thayer Organization: ORACLE Deutschland B.V. und Co. KG Message-ID: <7be0cd95-46e2-90b4-15ed-dedc08523867@oracle.com> Date: Mon, 21 Nov 2016 12:25:39 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: <47706e97-9f29-7a7d-bd31-3a773a7a94b0@bsd.com.br> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Source-IP: userv0022.oracle.com [156.151.31.74] X-Mailman-Approved-At: Mon, 21 Nov 2016 12:32:24 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 21 Nov 2016 11:25:47 -0000 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 > #include > #include > #include > #include > #include > > 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