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

Bug#681796: segmentation fault during suspend



forwarded 681796 https://bugs.freedesktop.org/show_bug.cgi?id=52496
thanks

On Sat, 28 Jul 2012, Julien Cristau wrote:
> > and then -- this gesture from gdb while running from a script was not expected:
> > ---Type <return> to continue, or q <return> to quit---
> You can probably avoid this next time with the 'set pagination off'
> command.

I think I have managed to avoid it with

gdb.execute("set height 0")

altogether my script atm is:

#!/usr/bin/gdb -x
import gdb

def on_stop(p):
  gdb.execute("i threads")
  try:
    gdb.execute("echo I: some variables, dev, dev->properties.handlers, handler\n")
    gdb.execute("p dev")
    gdb.execute("p dev->properties.handlers")
    gdb.execute("p handler")
  except:
    pass
  try:
    gdb.execute("echo I: bt\n")
    gdb.execute("bt")
    gdb.execute("echo I: bt full\n")
    gdb.execute("bt full")
  finally:
    # and just quit now
    gdb.execute("c")
    gdb.execute("q")

# prevent prompt-for-continue
gdb.execute("set height 0")
gdb.execute("set logging file xorg-crash.log")
gdb.execute("set logging on")
gdb.execute("handle SIGUSR1 nostop")
gdb.execute("handle SIGPIPE nostop")
gdb.execute("bt")
gdb.events.stop.connect(on_stop)


> > so atm I do not have further backtrace -- but is this any useful?
> It's helpful, yes, thanks.  Could you forward it upstream to
> https://bugs.freedesktop.org/enter_bug.cgi?product=xorg&component=Server/Input/Core

have done that and was waiting for some kind of reaction before reporting this
one forwarded... but will mark now nevertheless.  Also similar problem was
detected by gentoo guys:

https://bugs.gentoo.org/show_bug.cgi?id=428084
and "discussed" originally here:
http://forums.gentoo.org/viewtopic.php?p=7098200

P.S. I have switched from using awesome+KDE to awesome+XFCE... hopefully
I would still be able to run into this issue...

-- 
Yaroslav O. Halchenko
Postdoctoral Fellow,   Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834                       Fax: +1 (603) 646-1419
WWW:   http://www.linkedin.com/in/yarik        


Reply to: