Bug#919796: mesa: Segmentation fault in dri2_query_wayland_buffer_wl

2019-01-19 Thread John David Anglin
Source: mesa
Version: 18.3.2-1
Severity: normal
Tags: patch

Dear Maintainer,

The qtwayland-opensource-src package fails to build from source on hppa
due a segmentation fault in dri2_query_wayland_buffer_wl running the
qtwayland-opensource-src testsuite.  See bug 919197 for details:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919197

The fault occurs because dri2_dpy is NULL and dri2_query_wayland_buffer_wl
fails to check for this circumstance.

The attached patch add NULL pointer checks to dri2_query_wayland_buffer_wl
and dri2_create_image_wayland_wl_buffer.  This fixes the build of
qtwayland-opensource-src.

Please apply or fix the code so NULL display pointers are not used.

Regards,
Dave Anglin

-- System Information:
Debian Release: buster/sid
  APT prefers buildd-unstable
  APT policy: (500, 'buildd-unstable'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 4.14.94+ (SMP w/4 CPU cores)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
--- ./src/egl/drivers/dri2/egl_dri2.c.save  2019-01-15 20:35:09.752730367 
-0500
+++ ./src/egl/drivers/dri2/egl_dri2.c   2019-01-15 20:37:32.753145310 -0500
@@ -1931,10 +1931,13 @@
_EGLImageAttribs attrs;
int32_t plane;
 
+   if (!dri2_dpy)
+  return NULL;
+ 
buffer = wayland_drm_buffer_get(dri2_dpy->wl_server_drm,
(struct wl_resource *) _buffer);
if (!buffer)
-   return NULL;
+  return NULL;
 
if (!_eglParseImageAttribList(&attrs, disp, attr_list))
   return NULL;
@@ -2849,6 +2852,9 @@
struct wl_drm_buffer *buffer;
const struct wl_drm_components_descriptor *format;
 
+   if (!dri2_dpy)
+  return EGL_FALSE;
+ 
buffer = wayland_drm_buffer_get(dri2_dpy->wl_server_drm, buffer_resource);
if (!buffer)
   return EGL_FALSE;


Bug#724546: Acknowledgement (xserver-xorg-video-chips: FTBFS on hppa: ct_driver.h:30:17: fatal error: xaa.h: No such file or directory)

2013-09-24 Thread John David Anglin

Same error building xserver-xorg-video-r128.

Dave
--
John David Anglin   dave.ang...@bell.net


--
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/blu0-smtp112e595f563d1c0ca7602597...@phx.gbl



Bug#724546: xserver-xorg-video-chips: FTBFS on hppa: ct_driver.h:30:17: fatal error: xaa.h: No such file or directory

2013-09-24 Thread John David Anglin
Package: xserver-xorg-video-chips
Version: 1.2.4-2
Severity: normal

make[3]: Entering directory 
`/home/dave/debian/xserver-xorg-video-chips/xserver-xorg-video-chips-1.2.4/build/src'
  CC   ct_accel.lo
In file included from ../../src/ct_accel.c:50:0:
/usr/include/xorg/xf86PciInfo.h:50:2: warning: #warning "xf86PciInfo.h is 
deprecated.  For greater compatibility, drivers should include necessary PCI 
IDs locally rather than relying on this file from xorg-server." [-Wcpp]
In file included from ../../src/ct_accel.c:56:0:
../../src/ct_driver.h:30:17: fatal error: xaa.h: No such file or directory
compilation terminated.
make[3]: *** [ct_accel.lo] Error 1
make[3]: Leaving directory 
`/home/dave/debian/xserver-xorg-video-chips/xserver-xorg-video-chips-1.2.4/build/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory 
`/home/dave/debian/xserver-xorg-video-chips/xserver-xorg-video-chips-1.2.4/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory 
`/home/dave/debian/xserver-xorg-video-chips/xserver-xorg-video-chips-1.2.4/build'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

File is no longer in xserver-xorg-dev.

-- System Information:
Debian Release: 7.0
  APT prefers unreleased
  APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: hppa (parisc64)

Kernel: Linux 3.12.0-rc1+ (SMP w/4 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/blu0-smtp90f3a1a80b7a8c1672ad7c97...@phx.gbl



Bug#422430: xserver-xorg: No keyboard input except for

2011-02-27 Thread John David Anglin
> > After starting X using any of gdm, kdm or xstart, keyboard wasn't
> > accepted. [=E2=80=A6]
> 
> is that still happening in an up-to-date squeeze (or higher) system?

No.  This issue was an upgrade problem (old X version).

Dave
-- 
J. David Anglin  dave.ang...@nrc-cnrc.gc.ca
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)



-- 
To UNSUBSCRIBE, email to debian-x-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20110228014754.791635...@hiauly1.hia.nrc.ca



Bug#422430: xserver-xorg: No keyboard input except for

2007-07-11 Thread John David Anglin
> It could also indicate a broken framebuffer device. John, which one are
> you using?

HP VisEG.

Dave
-- 
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)

X Window System Version 1.3.0
Release Date: 19 April 2007
X Protocol Version 11, Revision 0, Release 1.3
Build Operating System: Linux Debian
Current Operating System: Linux hiauly6 2.6.20-gfb60ab85-dirty #10 Tue Jun 5 
20:00:16 EDT 2007 parisc
Build Date: 01 June 2007
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Sun Jul  1 22:09:27 2007
(==) Using config file: "/etc/X11/xorg.conf"
(==) ServerLayout "Default Layout"
(**) |-->Screen "Default Screen" (0)
(**) |   |-->Monitor "NEC LCD1980SX"
(**) |   |-->Device "HP VisEG"
(**) |-->Input Device "Generic Keyboard"
(**) |-->Input Device "Configured Mouse"
(WW) Including the default font path 
/usr/share/fonts/X11/misc,/usr/share/fonts/X11/cyrillic,/usr/share/fonts/X11/100dpi/:unscaled,/usr/share/fonts/X11/75dpi/:unscaled,/usr/share/fonts/X11/Type1,/usr/share/fonts/X11/100dpi,/usr/share/fonts/X11/75dpi,/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType.
(**) FontPath set to:
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/cyrillic,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType,
/usr/share/fonts/X11/misc,
/usr/share/fonts/X11/cyrillic,
/usr/share/fonts/X11/100dpi/:unscaled,
/usr/share/fonts/X11/75dpi/:unscaled,
/usr/share/fonts/X11/Type1,
/usr/share/fonts/X11/100dpi,
/usr/share/fonts/X11/75dpi,
/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType
(==) RgbPath set to "/etc/X11/rgb"
(==) ModulePath set to "/usr/lib/xorg/modules"
(II) No APM support in BIOS or kernel
(II) Loader magic: 0x1df8f4
(II) Module ABI versions:
X.Org ANSI C Emulation: 0.3
X.Org Video Driver: 1.2
X.Org XInput driver : 0.7
X.Org Server Extension : 0.3
X.Org Font Renderer : 0.5
(II) Loader running on linux
(II) LoadModule: "pcidata"
(II) Loading /usr/lib/xorg/modules//libpcidata.so
(II) Module pcidata: vendor="X.Org Foundation"
compiled for 1.3.0, module version = 1.0.0
ABI class: X.Org Video Driver, version 1.2
(++) using VT number 7

(II) PCI: PCI scan (all values are in hex)
(II) PCI: 00:0c:0: chip 1011,0019 card 103c,104f rev 41 class 02,00,00 hdr 00
(II) PCI: 00:0d:0: chip 11d4,1889 card 11d4,1889 rev 00 class 04,01,00 hdr 00
(II) PCI: 00:0e:0: chip 100b,0002 card , rev 03 class 01,01,8f hdr 80
(II) PCI: 00:0e:1: chip 100b,000e card , rev 01 class 06,80,00 hdr 80
(II) PCI: 00:0e:2: chip 100b,0012 card , rev 02 class 0c,03,10 hdr 80
(II) PCI: 00:0f:0: chip 1000,000b card 1000,1000 rev 07 class 01,00,00 hdr 80
(II) PCI: 00:0f:1: chip 1000,000b card 1000,1000 rev 07 class 01,00,00 hdr 80
(II) PCI: 01:06:0: chip 1000,0021 card 1000,1070 rev 01 class 01,00,00 hdr 80
(II) PCI: 01:06:1: chip 1000,0021 card 1000,1070 rev 01 class 01,00,00 hdr 80
(II) PCI: 02:01:0: chip 103c,1008 card , rev 02 class 03,80,00 hdr 00
(II) PCI: 02:03:0: chip 103c,1005 card , rev 03 class 03,80,00 hdr 00
(II) PCI: End of PCI scan
(II) Host-to-PCI bridge:
(II) Bus 0: bridge is at (0:0:0), (0,0,0), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 0 I/O range:
[0] -1  0   0x - 0x (0x1) IX[B]
(II) Bus 0 non-prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) Bus 0 prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) Host-to-PCI bridge:
(II) Bus 1: bridge is at (0:0:0), (1,1,0), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 1 I/O range:
[0] -1  0   0x - 0x (0x1) IX[B]
(II) Bus 1 non-prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) Bus 1 prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) Host-to-PCI bridge:
(II) Bus 2: bridge is at (0:0:0), (2,2,0), BCTRL: 0x0008 (VGA_EN is set)
(II) Bus 2 I/O range:
[0] -1  0   0x - 0x (0x1) IX[B]
(II) Bus 2 non-prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(II) Bus 2 prefetchable memory range:
[0] -1  0   0x - 0x (0x0) MX[B]
(--) PCI: (2:1:0) Hewlett-Packard Company Visualize FX rev 2, Mem @ 
0xfa00/25, BIOS @ 0xf600/21

Bug#422430: xserver-xorg: No keyboard input except for ctrl-alt-backspace

2007-07-10 Thread John David Anglin
> John David Anglin wrote:
> >> Which xserver-xorg-video-fbdev and xserver-xorg-core is this?
> >> 
> >
> > ii  xserver-xorg-v 1:0.3.1-1  X.Org X server -- fbdev display driver
> > ii  xserver-xorg-c 2:1.3.0.0.dfsg X.Org X server -- core server
> >   
> 
> The version of xserver-xorg-core is truncated :) Last one is
> 2:1.3.0.0.dfsg-7 in unstable, not build for your architecture yet.
> There's a xserver-xorg-video-fbdev 1:0.3.1-2 in experimental.

The xserver-xorg-core version is 2:1.3.0.0.dfsg-6.

> Upstream thinks the following patch might help

Thanks,
Dave
-- 
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#422430: xserver-xorg: No keyboard input except for ctrl-alt-backspace

2007-07-10 Thread John David Anglin
> Which xserver-xorg-video-fbdev and xserver-xorg-core is this?

ii  xserver-xorg-v 1:0.3.1-1  X.Org X server -- fbdev display driver
ii  xserver-xorg-c 2:1.3.0.0.dfsg X.Org X server -- core server

Dave
-- 
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#422430: xserver-xorg: No keyboard input except for ctrl-alt-backspace

2007-07-10 Thread John David Anglin
> Did you have a chance to test this?

The software updates are installed and the links that I installed
are removed.  However, I haven't actually had a chance to look at
the display.  Normally, I access the machine remotely.

I think there's a new problem:

...
(EE) FBDEV(0): FBIOPUT_VSCREENINFO succeeded but modified mode
(EE) FBDEV(0): mode initialization failed

Fatal server error:
AddScreen/ScreenInit failed for driver 0

Dave
-- 
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#422430: xserver-xorg: No keyboard input except for ctrl-alt-backspace

2007-06-12 Thread John David Anglin
> Could you try with the latest xserver-xorg-core 1.3 currently in
> unstable and latest drivers and report back whether this bug still occurs?

I'm not sure when I can get to this.  Too many problems with recent update
to glibc version 2.5 in testing and gcc issues (and my real world job).

Dave
-- 
J. David Anglin  [EMAIL PROTECTED]
National Research Council of Canada  (613) 990-0752 (FAX: 952-6602)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#422430: xserver-xorg: No keyboard input except for ctrl-alt-backspace

2007-05-05 Thread John David Anglin
Package: xserver-xorg
Version: 1:7.1.0-18
Severity: normal

After starting X using any of gdm, kdm or xstart, keyboard wasn't 
accepted.  There were no errors in Xorg.0.log.  However, I see stuff
like the following in kdm.log:

(==) Log file: "/var/log/Xorg.0.log", Time: Sat May  5 14:43:39 2007
(==) Using config file: "/etc/X11/xorg.conf"
xkb_keycodes { include "xfree86+aliases(qwerty)" };
xkb_types{ include "complete" };
xkb_compatibility{ include "complete" };
xkb_symbols  { include "pc(pc105)+us" };
xkb_geometry { include "pc(pc104)" };
expected keysym, got XF86_Switch_VT_1: line 8 of xfree86
expected keysym, got XF86_Switch_VT_2: line 11 of xfree86
...
expected keysym, got XF86_Next_VMode: line 266 of keypad
Errors from xkbcomp are not fatal to the X server
Link points to "/var/tmp/kdecache-root"
Qt: Locales not supported on X server
QInputContext: no input method context available
QInputContext: no input method context available

Finally, I realized that the problem was with the files in 
/usr/X11R6/lib/X11.  I created the following links to resolve
the problem:

lrwxrwxrwx 1 root root 23 May  5 16:54 XErrorDB -> 
/usr/share/X11/XErrorDB
lrwxrwxrwx 1 root root 24 May  5 16:53 XKeysymDB -> 
/usr/share/X11/XKeysymDB
lrwxrwxrwx 1 root root 20 May  5 16:56 fonts -> /usr/share/fonts/X11
lrwxrwxrwx 1 root root 16 May  5 16:57 icons -> /usr/share/icons
lrwxrwxrwx 1 root root 12 Apr 26  2006 twm -> /etc/X11/twm

It's possible that this problem was created in migrating from xfree86
to xorg.  However, reinstallation of the xorg server didn't fix the
problem.


-- Package-specific info:
Contents of /var/lib/x11/X.roster:
xserver-xfree86
xserver-xfree86-dbg
xserver-xorg

/etc/X11/X target does not match checksum in /var/lib/x11/X.md5sum.

X server symlink status:
lrwxrwxrwx 1 root root 13 Sep 12  2006 /etc/X11/X -> /usr/bin/Xorg
-rwxr-xr-x 1 root root 1825868 Apr  3 23:33 /usr/bin/Xorg

Contents of /var/lib/x11/xorg.conf.roster:
xserver-xorg

VGA-compatible devices on PCI bus:

/etc/X11/xorg.conf does not match checksum in /var/lib/x11/xorg.conf.md5sum.

Xorg X server configuration file status:
-rw-r--r-- 1 root root 2252 May  5 16:27 /etc/X11/xorg.conf

Contents of /etc/X11/xorg.conf:
# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following command:
#   sudo dpkg-reconfigure -phigh xserver-xorg

Section "Files"
FontPath"/usr/share/fonts/X11/misc"
FontPath"/usr/share/fonts/X11/cyrillic"
FontPath"/usr/share/fonts/X11/100dpi/:unscaled"
FontPath"/usr/share/fonts/X11/75dpi/:unscaled"
FontPath"/usr/share/fonts/X11/Type1"
FontPath"/usr/share/fonts/X11/100dpi"
FontPath"/usr/share/fonts/X11/75dpi"
# path to defoma fonts
FontPath"/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
EndSection

Section "Module"
Load"bitmap"
Load"dbe"
Load"ddc"
Load"dri"
Load"extmod"
Load"freetype"
#   Load"glx"
Load"int10"
Load"record"
Load"vbe"
EndSection

Section "InputDevice"
Identifier  "Generic Keyboard"
Driver  "kbd"
Option  "CoreKeyboard"
Option  "XkbRules"  "xorg"
Option  "XkbModel"  "pc104"
Option  "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier  "Configured Mouse"
Driver  "mouse"
Option  "CorePointer"
Option  "Device""/dev/input/mice"
Option  "Protocol"  "ImPS/2"
Option  "ZAxisMapping"  "4 5"
Option  "Emulate3Buttons"   "true"
EndSection

Section "Device"
Identifier  "HP VisEG"
Driver  "fbdev"
BusID   "PCI:2:3:0"
Option  "UseFBDev"  "true"
EndSection

Section "Monitor"
Identifier  "NEC LCD1980SX"
HorizSync   30-107
VertRefresh 50-85
Option  "DPMS"
EndSection

Section "Screen"
Identifier  "Default Screen"
Device  "HP VisEG"
Monitor "NEC LCD1980SX"
DefaultDepth8
SubSection "Display"
Depth   8
Modes