<div dir="ltr"><div>Hi Holger,</div><div>good idea!</div><div><br></div><div>Thread 1 "squeak" hit Breakpoint 1, b3dStartRasterizer ()<br>    at /media/psf/Home/Smalltalk/OpenSmalltalk/opensmalltalk-vm/src/plugins/Squeak3D/Squeak3D.c:1687<br>1687          if (!((methodArgumentCount()) == 3)) {<br>(gdb) record<br>(gdb) cont<br>Continuing.<br>/build/gdb-9un5Xp/gdb-7.11.1/gdb/nat/x86-linux-dregs.c:146: internal-error: x86_linux_update_debug_registers: Assertion `lwp_is_stopped (lwp)' failed.<br>A problem internal to GDB has been detected,<br>further debugging may prove unreliable.Quit this debugging session? (y or n) y<br><br>This is a bug, please report it.  For instructions, see:<br><<a href="http://www.gnu.org/software/gdb/bugs/">http://www.gnu.org/software/gdb/bugs/</a>>.<br><br>/build/gdb-9un5Xp/gdb-7.11.1/gdb/nat/x86-linux-dregs.c:146: internal-error: x86_linux_update_debug_registers: Assertion `lwp_is_stopped (lwp)' failed.<br>A problem internal to GDB has been detected,<br>further debugging may prove unreliable.<br>Create a core file of GDB? (y or n) y<br>Abandon (core dumped)</div><div><br></div><div>Nope, one more hurdle...<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 27 févr. 2020 à 01:54, Holger Freyther <<a href="mailto:holger@freyther.de">holger@freyther.de</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> <br>
Have you tried reverse execution in GDB and (software) watchpoints? <a href="https://www.jayconrod.com/posts/28/tutorial--reverse-debugging-with-gdb-7" rel="noreferrer" target="_blank">https://www.jayconrod.com/posts/28/tutorial--reverse-debugging-with-gdb-7</a><br>
<br>
<br>
> On 27. Feb 2020, at 06:06, Nicolas Cellier <<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>> wrote:<br>
> <br>
> Well, I've tried to install rr and all its dependencies on Ubuntu 16... But...<br>
> I have no available machine to run linux natively.<br>
> <br>
> To run rr inside a virtual machine, virtualization of perf counters needs to be enabled...<br>
> <a href="https://github.com/mozilla/rr/wiki/Building-And-Installing" rel="noreferrer" target="_blank">https://github.com/mozilla/rr/wiki/Building-And-Installing</a><br>
> <br>
> I'm using parallels, but not the Pro version, because I don't like the annual pricing model, for personal use it's just too much.<br>
> Unfortunately, only pro edition supports PMU virtualization<br>
> <a href="https://download.parallels.com/desktop/v11/docs/en_US/Parallels%20Desktop%20User%27s%20Guide/37830.htm" rel="noreferrer" target="_blank">https://download.parallels.com/desktop/v11/docs/en_US/Parallels%20Desktop%20User%27s%20Guide/37830.htm</a><br>
> <br>
> Maybe it's time to change of VM provider, but for now, that's too many hurdles, I give up...<br>
> <br>
> Le mer. 26 févr. 2020 à 22:04, Nicolas Cellier <<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>> a écrit :<br>
> <br>
> <br>
> Le mer. 26 févr. 2020 à 21:56, Nicolas Cellier <<a href="mailto:nicolas.cellier.aka.nice@gmail.com" target="_blank">nicolas.cellier.aka.nice@gmail.com</a>> a écrit :<br>
> Hi Stephane,<br>
> this is the worse game for VM developers ;)<br>
> Hem, I meant the worst ever, even worse than my globish dialect ;) <br>
> <br>
> No just kidding, very good game for finding our own bugs!<br>
> <br>
> I just ran in debugger, and it crash in b3dDrawSTWRGB<br>
> But it seems like the function received an already corrupted texture...<br>
> <br>
> (lldb) p *texture<br>
> (B3DTexture) $10 = {<br>
>   width = 152691968<br>
>   height = 1<br>
>   depth = 152842368<br>
>   rowLength = 1<br>
>   sMask = 152740096<br>
>   sShift = 1<br>
>   tMask = 152789728<br>
>   tShift = 1<br>
>   cmSize = 152890496<br>
>   colormap = 0x000000010916dd80<br>
>   data = 0x0000000109179f60<br>
> }<br>
> <br>
> The width, depth and color map size are insane.<br>
> (lldb) p/x texture->width<br>
> (int) $5 = 0x0919e500<br>
> (lldb) p/x texture->depth<br>
> (int) $6 = 0x091c3080<br>
> (lldb) p/x texture->sMask<br>
> (int) $7 = 0x091aa100<br>
> (lldb) p/x texture->tMask<br>
> (int) $8 = 0x091b62e0<br>
> (lldb) p/x texture->cmSize<br>
> (int) $9 = 0x091cec80<br>
> <br>
> Now it remains to discover how this got corrupted...<br>
> I wish I could run the debugger backward in time...<br>
> Maybe it's time to learn a new skill and explore the rr capability on linux as recommended once by Jan Vrany.<br>
> <br>
> <br>
> Le mer. 26 févr. 2020 à 10:35, Stéphane Rollandin <<a href="mailto:lecteur@zogotounga.net" target="_blank">lecteur@zogotounga.net</a>> a écrit :<br>
> > <a href="http://files.squeak.org/5.3rc1/Squeak5.3rc1-19414-64bit/" rel="noreferrer" target="_blank">http://files.squeak.org/5.3rc1/Squeak5.3rc1-19414-64bit/</a><br>
> > Please give them a try and report any issues here on the mailing list.<br>
> The Guardians game does not run in the 64bit version - it crashes <br>
> immediately.<br>
> <br>
> Guardians:<br>
> <a href="http://www.zogotounga.net/comp/guardians.htm" rel="noreferrer" target="_blank">http://www.zogotounga.net/comp/guardians.htm</a><br>
> <br>
> Code:<br>
> <a href="http://www.zogotounga.net/comp/squeak/guardians/Guardians-builder-0.94.sar" rel="noreferrer" target="_blank">http://www.zogotounga.net/comp/squeak/guardians/Guardians-builder-0.94.sar</a><br>
> <br>
> (to see the crash, just install the above sar and follow the <br>
> instructions for starting the game)<br>
> <br>
> <br>
> Stef<br>
> <br>
<br>
</blockquote></div>