NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: xsrc/55984: OpenGL works in gdb, window remains black when run normally



The following reply was made to PR xsrc/55984; it has been noted by GNATS.

From: Rhialto <rhialto%falu.nl@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: xsrc/55984: OpenGL works in gdb, window remains black when run
 normally
Date: Wed, 10 Feb 2021 19:15:17 +0100

 Ah yes, that is indeed a logical thing to think of when you see "it
 works in gdb". I did have indeed both those settings, but turning ASLR
 off didn't make a difference.
 
 If only output is failing, you'd expect that you could quit fs-uae with
 just F12 CursorUp Enter, but apparently input is somehow also affected.
 
 I guess I should add that I was using the pkgsrc version of GL (MesaLib).
 At some point in the past this was needed for some package or other, and
 I haven't rebuilt everything since to see if it is still needed. Here is
 the full list of libraries:
 
 murthe.9:.../fs-uae/work.x86_64/fs-uae-3.0.5$ ldd ./fs-uae
 ./fs-uae:
         -lgthread-2.0.0 => /usr/pkg/lib/libgthread-2.0.so.0
         -lglib-2.0.0 => /usr/pkg/lib/libglib-2.0.so.0
         -lpcre.1 => /usr/pkg/lib/libpcre.so.1
         -lc.12 => /usr/lib/libc.so.12
         -lintl.1 => /usr/lib/libintl.so.1
         -lpthread.1 => /usr/lib/libpthread.so.1
         -lopenal.1 => /usr/pkg/lib/libopenal.so.1
         -lossaudio.1 => /usr/lib/libossaudio.so.1
         -latomic.3 => /usr/pkg/gcc7/x86_64--netbsd/lib/./libatomic.so.3
         -lstdc++.7 => /usr/pkg/gcc7/x86_64--netbsd/lib/./libstdc++.so.7
         -lm.0 => /usr/lib/libm.so.0
         -lgcc_s.1 => /usr/lib/libgcc_s.so.1
         -lGL.1 => /usr/pkg/lib/libGL.so.1
         -lglapi.0 => /usr/pkg/lib/libglapi.so.0
         -ldrm.2 => /usr/pkg/lib/libdrm.so.2
         -lpci.2 => /usr/lib/libpci.so.2
         -lX11.7 => /usr/X11R7/lib/libX11.so.7
         -lxcb.2 => /usr/X11R7/lib/libxcb.so.2
         -lXau.7 => /usr/X11R7/lib/libXau.so.7
         -lXdmcp.7 => /usr/X11R7/lib/libXdmcp.so.7
         -lxcb-glx.0 => /usr/X11R7/lib/libxcb-glx.so.0
         -lX11-xcb.1 => /usr/X11R7/lib/libX11-xcb.so.1
         -lxcb-dri2.0 => /usr/X11R7/lib/libxcb-dri2.so.0
         -lXext.7 => /usr/X11R7/lib/libXext.so.7
         -lXfixes.4 => /usr/X11R7/lib/libXfixes.so.4
         -lXdamage.2 => /usr/X11R7/lib/libXdamage.so.2
         -lXxf86vm.2 => /usr/X11R7/lib/libXxf86vm.so.2
         -lexpat.2 => /usr/lib/libexpat.so.2
         -lxcb-dri3.0 => /usr/X11R7/lib/libxcb-dri3.so.0
         -lxcb-present.0 => /usr/X11R7/lib/libxcb-present.so.0
         -lxcb-sync.1 => /usr/X11R7/lib/libxcb-sync.so.1
         -lxshmfence.1 => /usr/X11R7/lib/libxshmfence.so.1
         -lrt.1 => /usr/lib/librt.so.1
         -lpng16.16 => /usr/pkg/lib/libpng16.so.16
         -lz.1 => /usr/lib/libz.so.1
         -lSDL2-2.0.0 => /usr/pkg/lib/libSDL2-2.0.so.0
         -lsamplerate.0 => /usr/pkg/lib/libsamplerate.so.0
         -lXcursor.2 => /usr/X11R7/lib/libXcursor.so.2
         -lXrender.2 => /usr/X11R7/lib/libXrender.so.2
         -lXinerama.2 => /usr/X11R7/lib/libXinerama.so.2
         -lXi.7 => /usr/X11R7/lib/libXi.so.7
         -lXrandr.3 => /usr/X11R7/lib/libXrandr.so.3
         -lXss.2 => /usr/X11R7/lib/libXss.so.2
         -lusbhid.1 => /usr/lib/libusbhid.so.1
         -lmpeg2.0 => /usr/pkg/lib/libmpeg2.so.0
         -lmpeg2convert.0 => /usr/pkg/lib/libmpeg2convert.so.0
 
 So I compiled a version with 
 
 PREFER.MesaLib = native
 PREFER.libdrm = ${PREFER.MesaLib}       # req'd by MesaLib
 PREFER.glu = ${PREFER.MesaLib}  # automatically correct for most; req'd for xscreensaver
 PREFER.glew = ${PREFER.MesaLib}
 PREFER.gle = ${PREFER.MesaLib}  # req'd by xscreensaver
 # GL (MesaLib), gle and glu should generally match up, PREFER-wise.
 
 murthe.9:.../fs-uae/work.x86_64/fs-uae-3.0.5$ ldd ./fs-uae
 ./fs-uae:
         -lgthread-2.0.0 => /usr/pkg/lib/libgthread-2.0.so.0
         -lglib-2.0.0 => /usr/pkg/lib/libglib-2.0.so.0
         -lpcre.1 => /usr/pkg/lib/libpcre.so.1
         -lc.12 => /usr/lib/libc.so.12
         -lintl.1 => /usr/lib/libintl.so.1
         -lpthread.1 => /usr/lib/libpthread.so.1
         -lopenal.1 => /usr/pkg/lib/libopenal.so.1
         -lossaudio.1 => /usr/lib/libossaudio.so.1
         -latomic.3 => /usr/pkg/gcc7/x86_64--netbsd/lib/./libatomic.so.3
         -lstdc++.7 => /usr/pkg/gcc7/x86_64--netbsd/lib/./libstdc++.so.7
         -lm.0 => /usr/lib/libm.so.0
         -lgcc_s.1 => /usr/lib/libgcc_s.so.1
         -lpng16.16 => /usr/pkg/lib/libpng16.so.16
         -lz.1 => /usr/lib/libz.so.1
         -lSDL2-2.0.0 => /usr/pkg/lib/libSDL2-2.0.so.0
         -lsamplerate.0 => /usr/pkg/lib/libsamplerate.so.0
         -lX11.7 => /usr/X11R7/lib/libX11.so.7
         -lxcb.2 => /usr/X11R7/lib/libxcb.so.2
         -lXau.7 => /usr/X11R7/lib/libXau.so.7
         -lXdmcp.7 => /usr/X11R7/lib/libXdmcp.so.7
         -lXext.7 => /usr/X11R7/lib/libXext.so.7
         -lXcursor.2 => /usr/X11R7/lib/libXcursor.so.2
         -lXrender.2 => /usr/X11R7/lib/libXrender.so.2
         -lXinerama.2 => /usr/X11R7/lib/libXinerama.so.2
         -lXi.7 => /usr/X11R7/lib/libXi.so.7
         -lXrandr.3 => /usr/X11R7/lib/libXrandr.so.3
         -lXss.2 => /usr/X11R7/lib/libXss.so.2
         -lXxf86vm.2 => /usr/X11R7/lib/libXxf86vm.so.2
         -lusbhid.1 => /usr/lib/libusbhid.so.1
         -lrt.1 => /usr/lib/librt.so.1
         -lmpeg2.0 => /usr/pkg/lib/libmpeg2.so.0
         -lmpeg2convert.0 => /usr/pkg/lib/libmpeg2convert.so.0
 
 (why don't I see -lGL here any more??)
 
 but this also didn't change the behaviour. Fails when run normally
 (even with ASLR off), runs fine from gdb...
 


Home | Main Index | Thread Index | Old Index