# A Signal from 1986: Resurrecting ApplixWare


**Author:** Ken Wong

**Affiliation:** Independent Researcher

Winnipeg, Canada

ken.wong@ho.stna.me

## Abstract

Can 1999's closed-source ApplixWare still run on FreeBSD today? Our investigation uncovered compatibility problems reaching back to the signal-handling interfaces of 4.3BSD.

We examine the FreeBSD i386 release of ApplixWare, reconstruct its FreeBSD 3.x runtime, and investigate successive compatibility barriers involving 32-bit execution, historical shared libraries, obsolete signal interfaces, and incompatible password-database formats. 

A four-function `LD_32_PRELOAD` shim restores ApplixWare functionality on a stock amd64 FreeBSD 15.1 GENERIC kernel. Exploring a kernel-side alternative uncovered a separate defect: enabling `COMPAT_43` restores obsolete signal interfaces, but FreeBSD 15.1 calculates the historical signal trampoline's address relative to the stack rather than the shared vDSO. Core-dump analysis confirms the incorrect address, and a standalone i386 signal-delivery test fails on the original kernel but passes after a one-line experimental correction.

ApplixWare also runs on the candidate kernel using only the account-lookup shim. These experiments demonstrate that 32-bit execution, historical library ABIs, syscall availability, and correct signal delivery are distinct compatibility requirements. The experimental kernel fix passes a standalone signal-delivery test and allows ApplixWare to run, but its broader compatibility and production readiness remain unverified.

**Keywords—** FreeBSD, 4.3BSD, COMPAT_43, binary compatibility, i386, signal trampoline, vDSO, LD_32_PRELOAD, ApplixWare, software archaeology.

## I. Introduction 

In June 1986, the University of California, Berkeley released 4.3BSD [1]. Forty years later, FreeBSD retains an optional kernel configuration option named COMPAT_43, supporting historical interfaces. While resurrecting the 1999 FreeBSD release of ApplixWare, we discovered that enabling this feature exposed a defect in modern FreeBSD's obsolete signal-delivery path. The title refers to the interface's 1986 lineage, not the origin of the defect.

Our case study is ApplixWare, a commercial UNIX office suite developed by Applix and distributed for FreeBSD on CD-ROM by Walnut Creek in 1999 [2]. Its dynamically linked i386 ELF launcher depends on FreeBSD 3.x-era shared libraries. Our goal was to run the original ApplixWare binaries unmodified on modern FreeBSD. We reconstructed the historical runtime using libraries from FreeBSD 3.5.1, the final 3.x release, and tested the application on FreeBSD 15.1, and 16-CURRENT.

Running ApplixWare on modern FreeBSD reveals that there is no single switch for "FreeBSD 3 compatibility." A modern amd64 system may support i386 execution yet lack the required runtime loader or historical libraries. Old libc may load but invoke obsolete system calls no longer enabled by the kernel. Even when those calls are available, changes to underlying kernel subsystems may break their behavior. Historical libraries may also depend on system data formats that have since changed.

This paper makes four contributions. First, it documents a reproducible method for reconstructing a FreeBSD 3.x runtime on modern FreeBSD using archived shared libraries. Second, it demonstrates userspace translation of historical signal interfaces through `LD_32_PRELOAD`. Third, it demonstrates compatibility with modern account databases by interposing historical account-lookup functions and delegating them to modern libc. Fourth, it identifies a signal-trampoline address defect in FreeBSD 15.1's i386 `COMPAT_43` path and experimentally validates a one-line kernel correction as an alternative to userspace signal translation. 

## II. Experimental Setup and i386 Startup

### A. Historical Artifacts and Test Environments

Initial testing used a FreeBSD 15.1/amd64 jail with an Xvnc graphical environment. Subsequent kernel experiments used FreeBSD/amd64 virtual machines to compare the original and modified kernels.

### B. First failure: ELF Interpreter Mismatch

The file(1) utility identified applix as a 32-bit i386 ELF executable::

```text
file /applixware1999cdrom/applix
ELF 32-bit LSB executable, Intel i386, dynamically linked,
interpreter /usr/libexec/ld-elf.so.1, not stripped
```

The first launch failed because the 32-bit FreeBSD runtime was missing:

```text
/applixware1999cdrom/applix
ELF interpreter /usr/libexec/ld-elf.so.1 not found, error 8
Abort trap
```

The error message was misleading. For this legacy ELF32 executable, FreeBSD first attempted to load the 32-bit runtime linker (/libexec/ld-elf32.so.1). When that failed, the kernel fell back to the executable's embedded interpreter path (/usr/libexec/ld-elf.so.1), which existed but referred to an incompatible 64-bit runtime linker. The resulting errorr 8 (ENOEXEC) reflected an executable-format mismatch when loading the interpreter, rather than an inability to execute i386 instructions.

```text
ldd /applixware1999cdrom/applix
ldd: /usr/bin/ldd32: No such file or directory
```

Similarly, ldd could not inspect the executable because its 32-bit helper, /usr/bin/ldd32, was missing. Installing FreeBSD-set-lib32 supplied the 32-bit runtime linker, ldd32, and the current 32-bit libc.so.7 [4].

With the 32-bit runtime installed, the dynamic linker progressed to an error in shared-library dependency resolution:

```text
ld-elf32.so.1: Shared object "libX11.so.6" not found,
required by "applix"
```

This progression illustrates a useful debugging principle: resolving one failure can expose the next, without establishing that all earlier compatibility concerns have been eliminated. The packaged 32-bit runtime supplies the components needed to execute i386 binaries on amd64, but does not include third-party libraries such as X11 or guarantee compatibility with the shared-library ABIs expected by FreeBSD 3.x applications.

## III. Recovering Historical Libraries

### A. Reassembling the FreeBSD 3.x Runtime

Successive dynamic-linker errors, together with inspection of the ELF DT_NEEDED entries, revealed the required shared libraries and identified those that were missing. The dependencies spanned FreeBSD base-system libraries, X11 libraries, and additional libraries required by ApplixWare's helper programs. Table I summarizes the key dependencies.

**TABLE I. Historical Shared-Library Dependencies**

| Shared object | Role | Source or context |
|---|---|---|
| `libX11.so.6` | X11 client library | XFree86-libraries-4.0.tgz |
| `libm.so.2` | FreeBSD 3.x math library | `bin` distribution set |
| `libc.so.3` | FreeBSD 3.x C library | `bin` distribution set |
| `libg++.so.4`, `libstdc++.so.2` | Legacy C++ runtime libraries | `bin` distribution set |
| `libgnuregex.so.2` | GNU regular-expression library | `bin` distribution set |
| ApplixWare objects | Application-specific shared libraries | ApplixWare CD-ROM |

The recovered libraries were installed in a dedicated 32-bit compatibility directory and made available to the dynamic linker through LD_32_LIBRARY_PATH or the 32-bit linker hints file maintained by ldconfig -32. We recovered the required historical i386 libraries from the FreeBSD 3.5.1 archives and associated XFree86 package, retaining the shared-library versions expected by ApplixWare rather than substituting potentially incompatible modern libraries.

After resolving the initial shared-library dependencies, ApplixWare progressed into its startup sequence but failed:

```text
Bad system call
return code=140, signal=12
```

The process terminated with signal 12 (`SIGSYS`), corresponding to a bad system call. The reported return code of 140 reflected the conventional shell status of 128 plus the terminating signal number. This failure pointed to a new compatibility barrier involving kernel system calls, although the diagnostic alone did not identify the offending call.

### B. The Evolution of FreeBSD Compatibility Libraries

FreeBSD has provided compatibility libraries for applications built against earlier releases since at least FreeBSD 2.0 (1994), which included a `compat1x` distribution for FreeBSD 1.x applications. This approach continued through subsequent releases, including `compat3x` in FreeBSD 4.0, and survives in modern compatibility ports such as `misc/compat15x`.

The Ports Collection's `MOVED` history records the removal of `misc/compat3x` on November 8, 2010, because the Ports Collection supported only FreeBSD 6.4 and later [7]. Consequently, recovering the FreeBSD 3.x libraries required obtaining them from historical distributions rather than installing a contemporary compatibility port.


### C. X11 Protocol Compatibility

Not every historical interface presented a compatibility problem. The recovered libX11.so.6 successfully communicated with a modern Xvnc server through the X11 wire protocol. Unlike in-process library interfaces, the protocol does not require the client and server to share identical C structures or library ABIs. This allowed the historical X11 client library to interoperate with a modern server, although ApplixWare still required its bundled bitmap fonts and a writable runtime directory.

## IV. Historical Signal ABI and Userspace Interposition

### A. Two Obsolete Signal System Calls

With the historical libraries restored, ApplixWare terminated with signal 12 (SIGSYS), indicating an invalid or unimplemented system call. To identify the failing interface, we traced the application using FreeBSD's truss(1) utility. The trace revealed:

```text
compat.freebsd32_sigaction() ERR#78 'Function not implemented'
SIGNAL 12 (SIGSYS) code=SI_KERNEL
process killed, signal = 12
```

Error 78 (ENOSYS) identified an unavailable obsolete sigaction system call. FreeBSD's nosys handler returns this error and, when configured to do so, generates SIGSYS, explaining the subsequent termination. After intercepting the sigaction interface, a second failure exposed the obsolete sigprocmask syscall.

The corresponding i386 syscall numbers are 46 (`sigaction`) and 48 (`sigprocmask`). FreeBSD's generated compatibility syscall table [10] conditionally enables these interfaces through `COMPAT_43`, a kernel configuration option supporting historical 4.3BSD interfaces. Without this option, the entries dispatch to `nosys`.

FreeBSD 7.0 removed `COMPAT_43` from the `GENERIC` kernel configuration, although the underlying compatibility code remained available [9]. The option remains absent from the modern amd64 `GENERIC` configuration, explaining why these obsolete system calls are unavailable without a custom kernel.

Thus, although the historical libc loaded successfully, it depended on kernel interfaces absent from the default configuration. Restoring these interfaces also requires preserving their ABI, because the historical FreeBSD 3.x and modern i386 signal structures have different layouts. Table II compares the relevant representations.

**Table II. Historical and Modern i386 `sigaction` Layouts**

| Field | Legacy i386 ABI (12 bytes) | Modern i386 ABI (24 bytes) |
|---|---|---|
| Handler pointer | Offset 0, 4 bytes | Offset 0, 4 bytes |
| Flags | Offset 8, 4 bytes | Offset 4, 4 bytes |
| Signal mask | Offset 4, 4 bytes | Offset 8, 16 bytes |

The obsolete sigprocmask syscall similarly uses a 32-bit mask passed by value and returns the previous mask directly, whereas the modern syscall interface uses pointers to larger sigset_t objects. Passing a historical sigaction structure directly to modern libc would cause it to interpret the historical mask as flags and access memory beyond the 12-byte structure when reading the modern mask. Compatibility therefore requires translating the signal structures and preserving the obsolete calling conventions and return-value semantics.

### B. A Two-Function Userspace Signal Shim

FreeBSD's 32-bit runtime linker supports `LD_32_PRELOAD`, allowing a shared library to intercept dynamically linked function calls without modifying the original executable. We developed a compatibility shim exporting two functions (`sigaction()` and `sigprocmask()`) to translate obsolete signal interfaces to their modern equivalents.

For `sigaction()`, the shim initializes a modern structure and copies the historical fields into their corresponding positions:

```c
memset(&modern, 0, sizeof(modern));
modern.handler = old->handler;
modern.flags   = old->flags;
modern.mask[0] = old->mask;
```

The wrapper also translates the previous signal disposition back into the historical layout when requested. Similarly, `sigprocmask()` expands the obsolete single-word mask into the modern four-word representation and converts returned masks to the obsolete format.

To avoid recursive calls to its own interposed symbols,, the shim opens modern `libc.so.7` using `dlopen()` and resolves the underlying functions through `dlsym()` against that library's handle. The historical `libc.so.3` remains loaded for other application operations.

The signal shim eliminated the observed SIGSYS failure, allowing ApplixWare to proceed further into its startup sequence. Execution subsequently encountered an unrelated account-lookup failure, examined in Section VI.

This userspace approach bypasses the obsolete signal system calls rather than exercising the kernel's compatibility implementations. Consequently, successful execution with the signal shim does not establish whether COMPAT_43 handles these legacy interfaces correctly.

## V. The `COMPAT_43` Signal-Delivery Defect

### A. Handler Installation Is Not Handler Delivery

Enabling `COMPAT_43` makes the obsolete signal-handling system calls available. An initial syscall test successfully set, queried, and restored a signal disposition, suggesting that the kernel option might eliminate the need for userspace signal translation. However, the test installed an ignored disposition (`SIG_IGN`) and never exercised delivery to a user-defined handler. It established that the syscall could manipulate signal dispositions, not that signal delivery worked correctly.

We next tested a custom FreeBSD 15.1-RELEASE-p6/amd64 kernel with `COMPAT_43` enabled in an isolated virtual machine. The modern account database was retained, and ApplixWare ran with only the account-lookup shim, exporting `getpwuid()` and `getpwnam()`. Inspection of the shim's defined dynamic symbols with `nm -D` confirmed that it exported no signal wrappers. The launcher reached its helper processes before terminating with `SIGBUS` (signal 10). No ApplixWare Words window appeared. Although enabling `COMPAT_43` eliminated the initial `ENOSYS` failure, the application still crashed.

Because the account-lookup shim also loads modern `libc.so.7`, potentially affecting symbol resolution, the application crash alone could not establish a kernel defect. We therefore examined the core dump, traced the kernel's address calculation, and developed a standalone signal-delivery test to isolate the failure.

### B. Tracing the Faulting Instruction Pointer

We recovered the launcher's core dump from an isolated virtual machine and examined it with GDB using the original executable. The backtrace showed:

```text
Core was generated by `.../applix -wp'.
Program terminated with signal SIGBUS, Bus error.
#0  0xffffddbc in ?? ()
#1  0x0804f153 in AxRunProcess ()
#2  0x0804f31d in axRunProcess ()
#3  0x0804f3fc in AxCallAxmain ()
```

The instruction pointer (`EIP`) was `0xffffddbc`, an address within the process's stack rather than executable signal-handling code. Examining the surrounding memory revealed that this address fell inside an environment variable:

```text
0xffffdd9c: 4c 44 5f 4c 49 42 52 41   LD_LIBRA
0xffffdda4: 52 59 5f 50 41 54 48 3d   RY_PATH=
0xffffddac: 2f 74 65 73 74 2f 72 6f   /test/ro
0xffffddb4: 6f 74 2f 75 73 72 2f 6c   ot/usr/l
0xffffddbc: 6f 63 61 6c 2f 6c 69 62   ocal/lib
```
Execution had been directed into the LD_LIBRARY_PATH string rather than executable code. The environment variable itself was not responsible for the failure; its contents merely occupied the address to which execution had been redirected.

An obsolete signal frame recovered from the core identified SIGUSR1 (signal 30) and ApplixWare's registered GotUsr1 handler at 0x0804bb58. The saved processor context showed execution interrupted in wait4 while the launcher waited for a helper process. Neither the intended handler nor the interrupted instruction matched the faulting address.

These observations pointed toward a failure in the signal-delivery mechanism rather than in the application's handler. The next step was to determine how the kernel calculated the incorrect address.

### C. Reproducing the Incorrect Address from Kernel Source

A signal trampoline is kernel-supplied user-mode code that invokes a signal handler and arranges the return to interrupted execution. Modern FreeBSD provides this code through a 32-bit virtual dynamic shared object (vDSO) mapped into the process. The obsolete i386 signal-delivery path is implemented in `ia32_osendsig()` in `sys/amd64/ia32/ia32_signal.c` [11].

The tested FreeBSD 15.1 kernel calculated the trampoline address as:

```c
regs->tf_rip = PROC_PS_STRINGS(p) -
    (_binary_elf_vdso32_so_1_end - _binary_elf_vdso32_so_1_start) +
    VDSO_IA32_OSIGCODE_OFFSET;
```

This calculation derives the trampoline address from PROC_PS_STRINGS(p), which identifies the process's argument and environment metadata near the top of the stack, rather than from the actual vDSO mapping. The core dump provided the PROC_PS_STRINGS(p) address, while the corresponding kernel-build artifacts supplied the embedded vDSO size and obsolete signal-trampoline offset:

```text
PROC_PS_STRINGS(p)           0xffffdff0
Embedded vDSO size                0x4ec
Old signal trampoline offset     0x2b8
```

Substituting these values reproduces the faulting instruction pointer exactly:

```text
0xffffdff0 - 0x4ec + 0x2b8 = 0xffffddbc
```

This matches the address observed in the core dump, where execution entered the `LD_LIBRARY_PATH` environment string.

This calculation derives the trampoline address from PROC_PS_STRINGS(p), which identifies the process's argument and environment metadata near the top of the stack, rather than from the actual vDSO mapping. The core dump provided the PROC_PS_STRINGS(p) address, while the corresponding kernel-build artifacts supplied the embedded vDSO size and obsolete signal-trampoline offset:

```text
0xffffe780 + 0x2b8 = 0xffffea38
```
Unlike the stack-derived address, this location falls within the mapped vDSO. By contrast, FreeBSD's ordinary i386 signal-delivery path uses PROC_SIGCODE(p), while the FreeBSD 4 compatibility path adjusts that address by the difference between their trampoline offsets.

The defect lies in the obsolete signal-delivery path's stack-relative address calculation, which no longer corresponds to the vDSO mapping. Although the specific addresses depend on process layout, the exact match between the calculated and observed instruction pointers identifies the kernel code responsible for the failure.

### D. Experimental Kernel Correction

The candidate fix replaces the stack-relative calculation with a vDSO-relative trampoline address:

```c
regs->tf_rip = PROC_SIGCODE(p) +
    VDSO_IA32_OSIGCODE_OFFSET - VDSO_IA32_SIGCODE_OFFSET;
```

`PROC_SIGCODE(p)` identifies the ordinary signal trampoline. Subtracting its offset and adding the obsolete trampoline's offset selects the corresponding entry point within the same vDSO mapping. This follows the approach already used by neighboring signal-delivery paths. The change is experimental and has not been submitted upstream.

To isolate the effect of the correction, we rebuilt the `COMPAT_43` kernel with only this expression changed, retaining the same source revision and kernel configuration. The original and modified kernels were tested in separate virtual machines using the same FreeBSD 15.1 userland. Both kernels retained the `APPLIX_COMPAT43` identification string, but their distinct binary hashes allowed the builds to be distinguished.

### E. Independent Signal-Delivery Test

To isolate the kernel defect from ApplixWare, we developed a small, freestanding i386 test program (`delivery.c`). It invokes obsolete syscall 46 to install a `SIGUSR1` handler, delivers the signal to itself, and verifies that the handler executes and returns to the interrupted program. Unlike the earlier signal-disposition test, this exercises the obsolete signal trampoline and its return path without requiring ApplixWare, historical libraries, or a preload shim.

**TABLE III. Independent Signal-Delivery Test**

| Kernel | Result | Recorded outcome |
|---|---|---|
| Original `COMPAT_43` kernel | Failed | `SIGBUS`, exit 138 |
| Candidate kernel | Passed | Exit 0  |

The original kernel terminated the test with `SIGBUS`, while the candidate kernel completed successfully. Both tests used the same FreeBSD 15.1 userland and kernel configuration. The kernels were built from the same source revision, differing only in the experimental trampoline-address correction.

Combined with the core-dump analysis and exact address calculation, these results establish that the obsolete i386 signal-delivery path used an incorrect trampoline address in the tested FreeBSD 15.1-RELEASE-p6/amd64 kernel.

The test validates signal delivery and return for this specific case, not comprehensive compatibility with obsolete signal interfaces, other architectures, or FreeBSD releases.

### F. Returning to ApplixWare

We tested the candidate kernel with ApplixWare in an isolated virtual machine, retaining the modern FreeBSD account database and the same account-lookup shim used in the earlier test, but without the signal shim. The launcher exited with status zero, while the `axnet` and `axmain` helper processes remained running. The application log contained no messages. Inspection of the X window tree identified an ApplixWare Words window, and a captured screenshot confirmed that the window was displayed.

This application-level result complements the standalone signal-delivery test, demonstrating that the experimental kernel correction allows ApplixWare to reach its graphical interface without userspace signal translation. It does not, however, establish complete application functionality.

### G. Limitations of the Kernel Fix

The experimental patch has not been submitted upstream, reviewed by FreeBSD maintainers, or deployed on a production system. Testing established the incorrect trampoline-address calculation, successful `SIGUSR1` delivery and handler return in a standalone reproducer, and ApplixWare Words startup on the modified FreeBSD 15.1-RELEASE-p6/amd64 kernel.

These results validate the correction for the tested signal-delivery path but do not establish comprehensive compatibility across other signals, signal-handling scenarios, architectures, or FreeBSD releases. Nor do they demonstrate long-term application stability or production readiness.

## VI. Account Lookup and libc Compatibility

### A. Tracing the Failed Account Lookup

With the obsolete signal system calls bypassed by the userspace shim described in Section IV.B, ApplixWare progressed to a new error:

```text
get user name: Invalid argument
```

The message suggested an account-lookup problem but did not identify the failing function. Unlike `truss`, which traces system calls, DTrace's `pid` provider can trace function entries, arguments, and return values within shared libraries [12].

We first collected a broad function trace, then narrowed the investigation to functions associated with the failure. The focused DTrace output showed:

```text
libc.so.3`getpwuid(0)
libc.so.3`dbopen("/etc/spwd.db")
libc.so.3`getpwuid returned 0x0
libc.so.3`perror("get user name")
libc.so.3`strerror(22)
```

The historical `libc.so.3` attempted to resolve UID 0 (root), opened `/etc/spwd.db` through `dbopen()`, and returned `NULL` from `getpwuid()`. The broader trace confirmed that `dbopen()` returned a valid database handle, narrowing the failure to the subsequent lookup or record-processing path. Meanwhile, the modern `getent passwd 0` successfully retrieved the root account.

FreeBSD's password-database format has evolved since the 3.x releases, including the introduction of architecture-independent v4 records in FreeBSD 5.1. The observations demonstrated that the historical account-lookup implementation could not retrieve an account available through the modern system's lookup interface. However, they did not identify the precise database lookup or record-interpretation failure.

The next step was to bypass the historical account reader by delegating lookups to modern 32-bit libc.

### B. The `struct passwd` ABI Boundary

Replacing account lookup involves more than returning a username. `getpwuid()` returns a pointer to a libc-managed `struct passwd`. Compatibility depends on both the structure's binary layout and the lifetime of the returned data. Disassembly of ApplixWare's startup path showed that the returned pointer was dereferenced to obtain the first structure field, `pw_name`:

```asm
movl (%eax), %edx    # read the first field (pw_name)
```

Both historical and modern 32-bit FreeBSD libc place the 32-bit `pw_name` pointer at offset zero. This allows the structure returned by modern `libc.so.7` to satisfy the observed application access without translation.

However, this establishes compatibility only for the observed startup path. It does not guarantee that other structure fields, storage-lifetime assumptions, or additional account-lookup operations are compatible. Broader application testing would be needed to establish those properties.

### C. Delegating Account Lookup to Modern libc

To address the account-lookup failure independently of signal compatibility, we developed a second preload shim exporting two functions, `getpwuid()` and `getpwnam()`. Rather than translating historical password-database formats, the wrappers delegate account lookup to modern 32-bit `libc.so.7`. As with the signal shim, `dlopen()` and `dlsym()` explicitly resolve the modern implementations, avoiding recursive interception.

The `getpwuid()` wrapper is straightforward:

```c
struct passwd *
getpwuid(uid_t uid)
{
    if (!libc7_h)
        libc7_init();
    if (rl_getpwuid)
        return rl_getpwuid(uid);
    errno = ENOENT;
    return NULL;
}
```

`getpwnam()` follows the same pattern. Modern libc handles the account database and returns its `struct passwd` record directly to the historical application, subject to the ABI limitations discussed in Section VI.B.

The independent shims can be used together on an unmodified FreeBSD kernel, with the signal shim translating the obsolete signal interfaces and the account shim handling user lookups. On the experimental `COMPAT_43` kernel, the same account shim is retained without the signal shim. This allows ApplixWare to exercise the kernel's obsolete signal system calls while continuing to use the modern account database.

### D. Historical Password Database as a Diagnostic Control

In a separate experiment, we generated legacy v3-format password databases using the account records from an isolated virtual machine. With the experimental kernel and neither preload shim, ApplixWare Words opened successfully. This result strongly implicates a password-database format incompatibility, although it does not identify the precise failure within the historical `getpwuid()` implementation.

Replacing modern account databases could disrupt system utilities and authentication mechanisms. We therefore treated this experiment as a diagnostic control rather than a practical workaround. Both practical compatibility configurations retain the modern account databases: the unmodified kernel uses the independent signal and account-lookup shims, while the experimental kernel requires only the account-lookup shim.

## VII. Comparative Results and Reproducibility

### A. Experimental Results

Successful startup required more than resolving shared libraries. ApplixWare also needed compatible signal and account-lookup interfaces, its `axnet` and `axmain` helper processes, additional C++ and regular-expression libraries, and a working X11 environment. A writable application directory was necessary because ApplixWare attempted to save profile data; using a read-only CD-ROM tree produced `EROFS`. The original bitmap fonts and a suitable Xvnc font path were also required for correct display.

These dependencies illustrate why process survival alone is insufficient evidence of application compatibility. Verification progressed from successful loading and execution to helper-process startup, window creation, and functional application tests. Table IV summarizes the tested compatibility configurations, all of which used the previously recovered historical libraries and required runtime components.

**TABLE IV. Compatibility Configurations and Observed Results**

| Kernel configuration | Preloaded shims | Result |
|---|---|---|
| Default kernel | None | `ENOSYS`, `SIGSYS` |
| Default kernel | Signal + account | Words opens; Presents functional tests pass |
| Unpatched `COMPAT_43` | Account only | `SIGBUS`; no Words window |
| Patched `COMPAT_43` | Account only | Signal test passes; Words opens |
| Patched `COMPAT_43`, legacy password database | None | Words opens; diagnostic control |

The two principal compatibility approaches retain modern account databases. The unmodified kernel uses independent userspace shims for signal handling and account lookup, whereas the experimental kernel handles obsolete signal system calls directly and requires only the account-lookup shim.

The userspace-shim configuration supported functional testing of ApplixWare Presents, including saving, loading, and displaying slide shows, as well as launching Words. Testing of the experimental kernel established successful signal delivery and graphical application startup, but did not establish equivalent application functionality.

Initial userspace compatibility experiments were conducted in a FreeBSD jail, which shared the host kernel. The kernel comparisons used isolated virtual machines, allowing the unpatched and patched `COMPAT_43` kernels to be tested independently against the same FreeBSD 15.1 userland.

### B. Visual Verification and Artifact Provenance

Two graphical captures were recorded. The userspace configuration with both shims produced an ApplixWare Words window containing menus, toolbar, document area, and status bar. A second capture confirmed that Words also opened on the experimental `COMPAT_43` kernel using only the account-lookup shim and the unchanged modern account database.

**Fig. 1.** ApplixWare Words running on the experimental `COMPAT_43` kernel with the account-lookup shim. The captured window demonstrates successful graphical startup, not comprehensive document-editing functionality.

To preserve experimental provenance, SHA-256 hashes were recorded for the unpatched and patched kernels, the analyzed core dump, and the corresponding ApplixWare executable. Both kernels retained the `APPLIX_COMPAT43` identification string, so their hashes distinguish the actual builds. Establishing the provenance of the core dump, executable, and kernel is particularly important when validating the faulting instruction pointer against the kernel's trampoline-address calculation.

### C. Reproducibility and Limitations

The investigation notes document the experimental procedures [13–15]. Reproducing the complete ApplixWare environment requires the original application distribution, archived FreeBSD 3.x libraries, a modern 32-bit runtime, the compatibility shims, and a working X11 environment. Kernel experiments additionally require a `COMPAT_43` kernel and the experimental patch.

The standalone i386 signal-delivery test provides a more accessible reproduction path. It exercises the defective kernel interface without requiring ApplixWare, historical shared libraries, or preload shims. The unpatched and patched kernels were tested in isolated virtual machines using the same FreeBSD 15.1 userland and kernel configuration.

The preserved test sources, kernel patch, execution traces, and recorded results support independent examination of the findings. SHA-256 hashes identify the kernel builds, executable, and analyzed core dump. However, some temporary experimental artifacts may no longer be available, limiting exact reproduction of every intermediate diagnostic step.

The userspace-shim configuration enabled ApplixWare Presents to save, load, and display slide shows, and Words to launch. Comprehensive office-suite functionality, long-term stability, and compatibility across FreeBSD releases remain unverified. The standalone signal test validates one obsolete signal-delivery-and-return path. The experimental kernel correction has not undergone upstream review or broader regression testing.

## VIII. Discussion and Conclusion

This case study demonstrates that binary compatibility is a collection of distinct contracts, not a single system-wide capability. Support for i386 execution does not supply historical shared libraries, and restoring those libraries does not make obsolete system calls available. Even when obsolete system calls are enabled, changes to underlying kernel subsystems may break their behavior. Historical libraries may also be incompatible with modern system data formats.

Two approaches allowed ApplixWare to run while preserving modern account databases. On an unmodified kernel, two independent `LD_32_PRELOAD` shims translated obsolete signal interfaces and delegated account lookup to modern libc. This enabled ApplixWare Words to launch and Presents to save, load, and display slide shows. An experimental `COMPAT_43` kernel eliminated the need for userspace signal translation, allowing Words to open with only the account-lookup shim.

The principal kernel finding is a reproducible defect in obsolete i386 signal delivery. The faulting instruction pointer matched exactly the address calculated by the kernel's stack-relative trampoline logic. An independent signal-delivery test failed on the original FreeBSD 15.1-RELEASE-p6/amd64 kernel and passed after a single-expression correction. Broader signal testing, upstream review, further investigation of the password-database incompatibility, and additional application testing remain necessary. Forty years after the release of 4.3BSD, maintaining its legacy compatibility interfaces illustrates the continuing challenge of preserving old ABIs as the underlying operating system evolves.

## References

**[1]** The FreeBSD Project, “BSD Family Tree,” entry “4.3BSD 1986-06.” [Online]. Available: https://cgit.freebsd.org/src/tree/share/misc/bsd-family-tree. See also University of California, Berkeley, *Berkeley Software Distribution Records*. [Online]. Available: https://oac.cdlib.org/findaid/ark:/13030/hb2b69n7b5.

**[2]** Walnut Creek CDROM, *ApplixWare Office for FreeBSD*, product description, December 1999. [Online]. Archived product page: https://web.archive.org/web/20000303000735/http://www.cdrom.com/titles/freebsd/applix.phtml.

**[3]** The FreeBSD Project, “FreeBSD 3.5.1-RELEASE/i386 Distribution and Package Archives,” 2000. [Online]. Available: https://archive.freebsd.org/old-releases/i386/3.5.1-RELEASE/. Historical X11 packages: https://archive.freebsd.org/old-releases/i386/3.5.1-RELEASE/packages/x11/.

**[4]** The FreeBSD Project, “freebsd-base(7),” *FreeBSD 15.1-RELEASE Manual Pages*, base-system packaging and 32-bit compatibility components. [Online]. Available: https://man.freebsd.org/cgi/man.cgi?query=freebsd-base&sektion=7&manpath=FreeBSD+15.1-RELEASE.

**[5]** The FreeBSD Project, *FreeBSD 2.0-RELEASE/i386 CD-ROM Distribution*, `compat1xdist/` directory, November 1994. Original release media inspected for the presence of the `compat1x` distribution.

**[6]** The FreeBSD Project, “FreeBSD 4.0-RELEASE/i386 `compat3x` Distribution,” March 2000. [Online]. Available: https://archive.freebsd.org/old-releases/i386/4.0-RELEASE/compat3x/.

**[7]** The FreeBSD Ports Collection, “misc/compat15x,” compatibility libraries for earlier FreeBSD binaries. [Online]. Available: https://www.freshports.org/misc/compat15x/.

**[8]** The FreeBSD Project, “FreeBSD Ports `MOVED` History,” `misc/compat3x` removal entry dated November 8, 2010. [Online]. Available: https://cgit.freebsd.org/ports/tree/MOVED?id=974e13b50148c5c8e7b33a1cb7e9dbaa9aedbc70.

**[9]** The FreeBSD Project, “freebsd32_sysent.c,” *FreeBSD 15.1 Source Tree*, 32-bit system-call dispatch and obsolete compatibility entries. [Online]. Available: https://cgit.freebsd.org/src/tree/sys/compat/freebsd32/freebsd32_sysent.c?h=releng/15.1.

**[10]** The FreeBSD Project, “FreeBSD 7.0-RELEASE Release Notes,” removal of `COMPAT_43` from `GENERIC` kernel configurations, 2008. [Online]. Available: https://www.freebsd.org/releases/7.0R/relnotes/.

**[11]** The FreeBSD Project, “ia32_signal.c,” *FreeBSD 15.1 Source Tree*, i386 signal delivery and signal-trampoline calculations. [Online]. Available: https://github.com/freebsd/freebsd-src/blob/releng/15.1/sys/amd64/ia32/ia32_signal.c.

**[12]** The FreeBSD Project, “dtrace_pid(4),” *FreeBSD 15.1-RELEASE Manual Pages*, userspace function-entry and return tracing. [Online]. Available: https://man.freebsd.org/cgi/man.cgi?query=dtrace_pid&sektion=4&manpath=FreeBSD+15.1-RELEASE.

**[13]** E. Maste, “HEADS-UP: Deprecation of legacy (v3) password database support,” *FreeBSD-stable Mailing List*, April 20, 2018. [Online]. Available: https://lists.freebsd.org/pipermail/freebsd-stable/2018-April/088782.html.

**[14]–[16]** [Insert the actual titles, authors, dates, and accessible locations of the three investigation notes cited in Section VII.C.]

---

*Draft preparation note: Before conference submission, replace the author placeholders, embed the saved ApplixWare screenshot, check the complete experimental artifacts against the retained build hashes, and convert to the conference's IEEE A4 proceedings format. The candidate kernel change remains experimental and has not been submitted upstream.*
