Sorry, you need to enable JavaScript to visit this website.

X server crash when using XtrkCad on Linux Mint 17.1

18 posts / 0 new
george's picture
Starter
george

Jan 17, 2015 - 03:52am

  • Ok. your other option then is to copy the script and alter the actual xtrcad invocation in it from:

    /some/path/to/real/xtrcad --and --some --options

    to:

    gdb --args /some/path/to/real/xtrcad --and --some --options

    Then run the modified scriptin a terminal (gnome-terminal, konsole, xterm, rxvt, whatever)

    Then at the gdb prompt: run
    And when it crashes: bt (or bt full)

    Feb 16, 2015 - 11:47am
  • Unfortunately this option does not work.

    I created the script, ran it, at the gdb promp entered run. XtrkCad was started, I opened the file, it crashed. When it crashes, I am thrown back at the login screen. So there is no gdb prompt anymore. I logged in with another user account in another terminal and checked the running processes. No gdb...

    Feb 17, 2015 - 09:09am
  • Ah, of course, silly me - it's Xorg that's crashing, not xtrcad: Switch to a non-X console and attach to Xorg there:

    ~# gdb -p $(pgrep Xorg)
    (gdb) cont
    Continuing.

    Then switch back to X and trigger the crash. Once it dies, switch back to the console and see if
    you have a useful backtrace there. If you don't, you're still missing debug symbols but I don't
    know where else you'd find them: Your best bet will be to chase it up with your distro's bug tracking
    system.

    Feb 17, 2015 - 02:10pm
  • I tried two sequences:

    - ~# gdb --args $XTRKCADLIB/xtrkcad
    - (gdb) run
    - switch to non-X console
    - ~# gdb -p $(pgrep Xorg)
    - (gdb) cont

    Gdb says Continuing, and then the system freezes. Only way out it via the alt-sysrq-s,u,b route.

    - ~# gdb --args $XTRKCADLIB/xtrkcad
    - switch to non-X console
    - ~# gdb -p $(pgrep Xorg)
    - (gdb) cont

    Gdb says Continuing, but before I can switch back to the X terminal to enter the run command in gdb, the system freezes again.

    Feb 18, 2015 - 10:36am
  • Don't bother tracing xtrcad for now - if it's actually X that's crashing, that's the interesting one.

    Feb 23, 2015 - 06:18am
  • Oops, sorry.

    With or without the cont command, starting gdb -p $(pgrep Xorg) in a non-X terminal leads to a freeze when I try to switch to the X-terminal.

    Feb 23, 2015 - 11:20am
  • Bah, that is annoying. I'll have to consult with some colleagues who are more
    familiar with xorg and see what they say.

    Feb 26, 2015 - 06:13am
  • There are some extra tips here on debugging X crashes:

    http://www.x.org/wiki/Development/Documentation/ServerDebugging/

    which should help with getting an actual backtrace out.

    Mar 16, 2015 - 10:57am