News for hackers. Stuff that matters.
Re:Nasty Lockup Issue Still Being Investigated for Linux 3.18 by heywire on Sunday November 30, 2014 @02:38PM (#8677799)
This is an approach I use for reproducing issues on userspace applications as well. I happen to maintain a fairly large Windows-based application at my workplace, and sometimes the steps to reproduce an issue could take minutes to hours just to get you to the point of being able to try and replicate the issue. I personally use VMware Workstation at work, and since I'm on a quick SSD, taking and reverting multiple snapshots has little performance cost.
Re:Nasty Lockup Issue Still Being Investigated for Linux 3.18 by byuu on Sunday November 30, 2014 @04:56PM (#8678283)
I've always thought it would be nice if the kernel exposed this ability to regular userland applications. On Unix systems, Ctrl+Z of a terminal application will suspend it, but not across reboots. Core files are very close, yet typically they are only produced in response to a crash, and aren't really meant for resuming a process. Obviously there's lots of limitations (eg shared memory could cause issues, hardware states could change), but for a lot of cases it would probably work pretty well.

Not only is it great for triggering crashes, but if you then broke out into a debugger, you could toy with toggling register and memory contents and then single-step through the instructions to see what happens. It's really substantially easier to debug software under emulation because of features like these.

Re:Nasty Lockup Issue Still Being Investigated for Linux 3.18 by amaranth on Sunday November 30, 2014 @08:37PM (#8679077)
Sounds like you're looking for the checkpoint/restore functionality that has been in the works for a few years now. Check out http://en.wikipedia.org/wiki/CRIU for more details, seems they have things mostly working now.
Re:Nasty Lockup Issue Still Being Investigated for Linux 3.18 by ams6110 on Sunday November 30, 2014 @10:01PM (#8679295)
DragonFly BSD does this. They call it process checkpointing.

Processes under DragonFly may be "checkpointed" or suspended to disk at any time. They may later be resumed on the originating system, or another system by "thawing" them.

http://www.dragonflybsd.org/features/#index8h2

Re:Nasty Lockup Issue Still Being Investigated for Linux 3.18 by hiphopyo on Sunday November 30, 2014 @10:54PM (#8679426)
OpenBSD and FreeBSD call it suspend/resume I think:

http://openbsd.org/papers/zzz.pdf

http://wiki.freebsd.org/SuspendResume

Re:Nasty Lockup Issue Still Being Investigated for Linux 3.18 by kasabali on Monday December 01, 2014 @05:00PM (#8684168)
Those links are talking about suspend/resume of the computer, which is a totally different thing.
Re:Nasty Lockup Issue Still Being Investigated for Linux 3.18 by sweettea on Sunday November 30, 2014 @05:55PM (#8678546)
You might enjoy rr, 'record-replay', which works kind of like gdb (and I believe is based on it) after you record a program execution --- you can then use gdb multiple times on the stream of execution. rr-project.org.