Opened 9 years ago

Closed 8 years ago

#47303 closed defect (duplicate)

SIGSEGV in glx_display_free

Reported by: RJVB (René Bertin) Owned by: jeremyhu (Jeremy Huddleston Sequoia)
Priority: Normal Milestone:
Component: ports Version: 2.3.3
Keywords: Cc:
Port: mesa

Description

Trying to use port:glxinfo on the X server running on my KUbuntu 14.04.2 LTS system, I get the following:

%> env DISPLAY=patux.local:0.0 glxinfo
name of display: patux.local:0.0
Error: couldn't find RGB GLX visual or fbconfig
Error: couldn't find RGB GLX visual or fbconfig

Segmentation fault
Exit 139
Process:         glxinfo [83427]
Path:            /opt/local/bin/glxinfo
Identifier:      glxinfo
Version:         0
Code Type:       X86-64 (Native)
Parent Process:  tcsh [95443]
Responsible:     Terminal [448]
User ID:         505

Date/Time:       2015-03-29 15:14:48.521 +0200
OS Version:      Mac OS X 10.9.5 (13F34)
Report Version:  11
Anonymous UUID:  64B814D9-356F-6F85-8341-E17C1354A330

Sleep/Wake UUID: 3ED5D38F-1899-4189-AEEE-E2781F354C9B

Crashed Thread:  0  Dispatch queue: com.apple.main-thread

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000010

VM Regions Near 0x10:
--> 
    __TEXT                 000000010b8c4000-000000010b8ca000 [   24K] r-x/rwx SM=COW  /Volumes/VOLUME/*

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   libGL.1.dylib                 	0x000000010b8d7897 glx_display_free + 14
1   libGL.1.dylib                 	0x000000010b8d77cc __glXCloseDisplay + 111
2   libX11.6.dylib                	0x000000010b9698da XCloseDisplay + 156
3   glxinfo                       	0x000000010b8c670c main + 2667
4   libdyld.dylib                 	0x00007fff9158f5fd start + 1

mesa is @10.4.4_2 . Doing this from my 10.6 VM glxinfo just exits, without crashing. And that's of course the correct thing to do.

Change History (5)

comment:1 Changed 9 years ago by RJVB (René Bertin)

xdpyinfo reports the following on the remote server:

name of display:    patux.local:0.0
version number:    11.0
vendor string:    The X.Org Foundation
vendor release number:    11501000
X.Org version: 1.15.1
maximum request size:  16777212 bytes
motion buffer size:  256
bitmap unit, bit order, padding:    32, LSBFirst, 32
image byte order:    LSBFirst
number of supported pixmap formats:    7
supported pixmap formats:
    depth 1, bits_per_pixel 1, scanline_pad 32
    depth 4, bits_per_pixel 8, scanline_pad 32
    depth 8, bits_per_pixel 8, scanline_pad 32
    depth 15, bits_per_pixel 16, scanline_pad 32
    depth 16, bits_per_pixel 16, scanline_pad 32
    depth 24, bits_per_pixel 32, scanline_pad 32
    depth 32, bits_per_pixel 32, scanline_pad 32
keycode range:    minimum 8, maximum 255
focus:  window 0x400014, revert to PointerRoot
number of extensions:    30
    BIG-REQUESTS
    Composite
    DAMAGE
    DOUBLE-BUFFER
    DPMS
    DRI2
    DRI3
    GLX
    Generic Event Extension
    MIT-SCREEN-SAVER
    MIT-SHM
    Present
    RANDR
    RECORD
    RENDER
    SECURITY
    SGI-GLX
    SHAPE
    SYNC
    X-Resource
    XC-MISC
    XFIXES
    XFree86-DGA
    XFree86-VidModeExtension
    XINERAMA
    XInputExtension
    XKEYBOARD
    XTEST
    XVideo
    XVideo-MotionCompensation
default screen number:    0
number of screens:    1

screen #0:
  dimensions:    1366x768 pixels (361x203 millimeters)
  resolution:    96x96 dots per inch
  depths (7):    24, 1, 4, 8, 15, 16, 32
  root window id:    0x2b7
  depth of root window:    24 planes
  number of colormaps:    minimum 1, maximum 1
  default colormap:    0x20
  default number of colormap cells:    256
  preallocated pixels:    black 0, white 16777215
  options:    backing-store WHEN MAPPED, save-unders NO
  largest cursor:    64x64
  current input event mask:    0xfac033
    KeyPressMask             KeyReleaseMask           EnterWindowMask          
    LeaveWindowMask          KeymapStateMask          ExposureMask             
    StructureNotifyMask      SubstructureNotifyMask   SubstructureRedirectMask 
    FocusChangeMask          PropertyChangeMask       ColormapChangeMask       
  number of visuals:    240
  default visual id:  0x21
  visual:
    visual id:    0x21
    class:    TrueColor
    depth:    24 planes
    available colormap entries:    256 per subfield
    red, green, blue masks:    0xff0000, 0xff00, 0xff
    significant bits in color specification:    8 bits

(etc)

comment:2 Changed 9 years ago by mf2k (Frank Schima)

Cc: jeremyhu@… removed
Owner: changed from macports-tickets@… to jeremyhu@…

comment:3 Changed 9 years ago by jeremyhu (Jeremy Huddleston Sequoia)

yes, we don't support IGLX. Certainly, there is a bug there in that it should err rather than crash, but that won't really address your concern.

comment:4 Changed 9 years ago by RJVB (René Bertin)

Actually, fixing the crash with a proper error is my main concern. The CrashReporter can take a lot of time when it kicks in (during which your commandline is frozen, if that's how you launched the crashed app).

comment:5 Changed 8 years ago by jeremyhu (Jeremy Huddleston Sequoia)

Resolution: duplicate
Status: newclosed
Note: See TracTickets for help on using tickets.