From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "G.B." Newsgroups: comp.lang.ada Subject: Re: OpenGL gl.getstring produces erroneous memory access under GLOBE_3D on Mac Date: Mon, 26 Sep 2016 11:31:45 +0200 Organization: A noiseless patient Spider Message-ID: References: Reply-To: nonlegitur@futureapps.de Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Mon, 26 Sep 2016 09:31:37 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="453a25b4a32803ebe563403cbcbda9f1"; logging-data="5875"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19N9Y1M1swd5WsD/ciNB2G8mzcI/e0Vy5c=" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.3.0 In-Reply-To: Cancel-Lock: sha1:WE2cD0fpsFYY2qduTKvBoDQrgTE= Xref: news.eternal-september.org comp.lang.ada:31897 Date: 2016-09-26T11:31:45+02:00 List-Id: On 26.09.16 09:18, Simon Wright wrote: > Roger writes: > >> Mac OSX 10.11.6 >> XCode 8.0 >> GNAT GPL 2016 (20160515-49) >> globe_3d_release_2016-07-05 > >> However, I have just tried to "Checking for OpenGL functionality" as >> described in Apple's OpenGL Programming Guide for Mac. However, >> gl.GetString(GL.VENDOR) and other calls to gl.GetString result in: >> raised CONSTRAINT_ERROR : erroneous memory access >> >> even if gl.GetString(GL.VENDOR) is in the only instruction in the >> program. > > Same here. > > Running under gdb I get > > Program received signal SIGSEGV, Segmentation fault. > so I think you've come across a bug in Apple's libGL. > Similarly, a minimal C program produces Segmentation fault: 11. However, some SO hints seem to say that for glGetString to work, a context needs to have been created. I don't know what that means. -- "HOTDOGS ARE NOT BOOKMARKS" Springfield Elementary teaching staff