Skip to content

xserver crash - segfault when running some program that uses X11 and GLX #1491

@branc116

Description

@branc116

Select the version

Git master branch

Describe your issue

I have an minimal example. I compile and run it and then xserver crashes.

minimal.c

Steps to reproduce

cc -g -o minimal minimal.c -lX11 -lGL && ./minimal

What did you expect?

xserver should not crash. My application should crash.

Additional Information

I ran gdb attached to Xorg with this script:

set logging enabled on
b egl_create_glx_drawable
command
  up
  b
  command
    p pGlxDraw->destroy
    p *pGlxDraw
    p pGlxDraw
    bt
    c
  end
  delete breakpoint 1
  c
end

b DrawableGone
commands
  b +1
  command
    set can-use-hw-watchpoints 0
    watch -l glxPriv->destroy
    command
      bt
      c
    end
    bt
    continue
  end
  delete breakpoint 2
  c
end

c

Output is in the attachments. ( 7.5 k lines )

gdb.txt

I have also tested with xorg-xserver and that one also crashes...

Extra fields

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageThis needs to be reviewed and categorized.

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions