We use cookies on this website to gather performance statistics and track page usage. By using our website, you agree to our use of cookies.
Learn more

Frequently Asked Questions

Got questions? We’ve got the answers.
16 FAQs
I’m pretty sure I’ve heard of reversible debuggers in the past. What is different about UndoDB?

UndoDB is unique in that it is able to record with low overheads and without restriction on CPU make/model, execution environment (e.g. AWS), and comes with a host of features, including support for shared memory, deferred recording, live reversible debugging, attaching to a running process, and many more.

Will UndoDB change our developers’ environment?

No. UndoDB can be used from various frontends e.g. Emacs, Eclipse, DDD or from the command line. This means UndoDB can be integrated into your developers’ existing workflow, making it quick and easy to get up and running.

Which Linux distributions does UndoDB work on? Any other operating systems supported?

UndoDB works on any Linux distro with kernel 2.6 or later, on ARM or x86. UndoDB also supports Android (Native) on ARM.

What is the largest program UndoDB has been used on?

The number of lines of source is not directly relevant to UndoDB. Instead, it’s the size of the resulting program and its data that matters. We have customers that use UndoDB on programs that consume more than 100GB of memory.

Does UndoDB require root access?

No.

Can UndoDB be used to debug Kernel code?

No – UndoDB is for user-mode code only.

Does UndoDB cope with self-modifying code?

Yes.

How are non-deterministic events, such as reading from a socket or file-system, handled?

During record mode, the effects of all non-deterministic operations, including all system calls, thread-switches, signals and shared memory accesses, are stored in an event log. During replay, non-deterministic events are not performed directly, but their effects are synthesized based on the contents of the event log.

I have a program that takes a long time to exhibit a bug. If UndoDB slows down execution, won’t it take even longer?

Yes. However, when debugging using traditional tools, it’s often necessary to restart the program multiple times. UndoDB saves time because you can go backward and forward as often as you need without having to restart. For a further speedup it’s possible to defer the start of recording until later in the program’s execution.

Does replaying a process in UndoDB have external side-effects, e.g. controlling a GUI or attached devices?

No, replaying process is self-contained and does not re-execute system calls. From outside (except via the debugger), the process appears to have frozen at the moment the recording stopped.

Is it possible to modify program state in replay mode?

No, you can’t go back in time to change history. The reason is that in replay mode your application is disconnected from the outside world. Consider a webserver sending a page on a socket. If you go back to mid-way through the page’s transmission, change something and attempt to begin a new recording from that point, the webserver would send the second half of the page twice, very likely confusing the other end of the socket.

Is UndoDB licensed under the GPL?

No - UndoDB is licensed under a proprietary license.

UndoDB invokes either a separately installed version of GDB or an “aggregated” version of GDB and interacts with it via GDB’s documented interfaces (namely GDB’s Python API and Remote Serial Protocol). UndoDB does not modify, link to, or exchange complex internal data structures with GDB, and does not form a combined work with GDB.

For reasons of convenience and stability the UndoDB release distribution includes a version of GDB in object code form in an “aggregate”. This version of GDB is conveyed in accordance with section 6 of version 3 of the GNU General Public License.

Undo has received confirmation from the Free Software Foundation that it is compliant with the terms of the GPL.

How much power does a reverse-step consume?

Reverse functionality uses 1.21 Gigawatts. For more information see: Flux capacitor or contact Dr Emmett Brown at 1640 Riverside Drive, Hill Valley, CA, USA.

How does Undo's technology work?

We exploit the natural determinism of computers. Computers are completely deterministic; except when they’re not. So these classes of non-determinism (for example: IO, scheduling, signals, shared memory and others) are captured. When you step back in time, what’s happening under the hood is we’re going back to a snapshot and playing that forward to exactly where it needs to be. We’re capturing the minimum that we need to be able to take you back to any point in time but you have full visibility, all your globals, all your locals, everything rolls back to what it was at that time.

I have a distributed system and I need a debugger, how will your Undo system be able to help me?

Distributed systems are inherently very non-deterministic. With Undo today, you have to record each of the nodes in your distributed system and manage the replay of that. So it’s a manual process, but we are working towards a point where you can follow the data through the distributed system and be able to click ‘next’, going from one node to another.

How does Undo interact with generated code? Code which doesn’t exist in the code base. There are ways to work with this in GDB, how would that work with Undo?

It works beautifully. The generated code is what the program is doing, there’s nothing special in that sense as it’s just the data it’s writing. We have lots of customers who have lots of generated code because those are really nasty cases to debug. We don’t give you magic, it’s still like using GDB, you’re still stepping through and looking at the hex and all the disassembly of the code that’s been generated. The difference of course is with the time travel debugging it’s much more tractable to figure out, especially when the generated code causes memory corruption.

Top