From owner-freebsd-emulation@freebsd.org Thu Nov 10 17:20:48 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 E5A69C393A0 for ; Thu, 10 Nov 2016 17:20:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id C98AEBA for ; Thu, 10 Nov 2016 17:20:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id C8F67C3939B; Thu, 10 Nov 2016 17:20:48 +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 C8A60C3939A for ; Thu, 10 Nov 2016 17:20:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id B2C1CB8 for ; Thu, 10 Nov 2016 17:20:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id B19B01747; Thu, 10 Nov 2016 17:20:48 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by freefall.freebsd.org (Postfix) with ESMTP id B0EFB1746 for ; Thu, 10 Nov 2016 17:20:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 86A39B6 for ; Thu, 10 Nov 2016 17:20:48 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id uAAHKmta039731 for ; Thu, 10 Nov 2016 17:20:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" From: bugzilla-noreply@freebsd.org To: vbox@FreeBSD.org Subject: maintainer-feedback requested: [Bug 214396] emulators/virtualbox-ose-additions Minimalist program crashes after end main() execution. Date: Thu, 10 Nov 2016 17:20:48 +0000 X-Bugzilla-Type: request X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? Message-ID: In-Reply-To: References: X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-Mailman-Approved-At: Thu, 10 Nov 2016 17:37:36 +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: Thu, 10 Nov 2016 17:20:49 -0000 otacilio.neto@bsd.com.br has reassigned Bugzilla Automation 's request for maintainer-feedback to vbox@FreeBSD.or= g: Bug 214396: emulators/virtualbox-ose-additions Minimalist program crashes a= fter end main() execution. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D214396 --- Description --- This small program crashes when executing the return 0; line. #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");=20 fflush(stdout); return 0; } To reproduce you must install virtualbox-ose-additions with opengl enabled = and compile (cc -I/usr/local/include -L/usr/local/lib -o testegl testegl.c -lGL -lGLEW -lGLU -lglut) and run this program. After debugging gdb say that the exception is raised on line 679 of file /usr/ports/emulators/virtualbox-ose-additions/work/VirtualBox-5.1.8/src/VBo= x/Gu estHost/OpenGL/util/hash.c void *crHashtableSearch( const CRHashTable *h, unsigned long key ) { unsigned int index =3D crHash( key ); CRHashNode *temp; #ifdef CHROMIUM_THREADSAFE bug is here =3D=3D=3D=3D=3D=3D=3D> crLockMutex((CRmutex *)&h->mutex); #endif for ( temp =3D h->buckets[index]; temp; temp =3D temp->next ) { if ( temp->key =3D=3D key ) break; } #ifdef CHROMIUM_THREADSAFE crUnlockMutex((CRmutex *)&h->mutex); #endif if ( !temp ) { return NULL; } return temp->data; }