TSE: 4.50.28: Starting .exe from the JPSoft tcc.exe command line

42 views
Skip to first unread message

knud van eeden

unread,
Sep 16, 2026, 7:47:30 AMSep 16
to SemWare TSE Pro Text Editor
Hello,

FYI: Still the issue, nothing happens when typing tse.exe then <Enter>.

Knud van Eeden

J. David Boyd

unread,
Sep 16, 2026, 12:43:07 PMSep 16
to sem...@googlegroups.com
I'm running TCC as well, for years and years now.  I see the same exact problem.

But if I do .\tse.exe, it runs.   Note that ESC does not abort the installer though.

Going to see if I can get the entire thing installed.

--

---
You received this message because you are subscribed to the Google Groups "SemWare TSE Pro text editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to semware+u...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/semware/601186299.425766.1789559247518%40mail.yahoo.com.


--
What's so funny about peace, love, and understanding? 

J. David Boyd

unread,
Sep 16, 2026, 12:44:17 PMSep 16
to sem...@googlegroups.com
Oops, no it doesn't.   I had called CMD 1st to see if it worked, and forgot about that.   So same problem, can't start tse.exe from the command line.

J. David Boyd

unread,
Sep 16, 2026, 12:46:05 PMSep 16
to sem...@googlegroups.com
Event viewer shows this:

- System
- Provider
[ Name] Application Error
[ Guid] {a0e9b465-b939-57d7-b27d-95d8e925ff57}
EventID 1000
Version 0
Level 2
Task 100
Opcode 0
Keywords 0x8000000000000000
- TimeCreated
[ SystemTime] 2026-09-16T16:42:45.2988511Z
EventRecordID 9594
Correlation
- Execution
[ ProcessID] 20596
[ ThreadID] 16320
Channel Application
Computer YOGA
- Security
[ UserID] S-1-5-21-76047532-1146726768-3443139505-1001
- EventData
AppName tse.exe
AppVersion 0.0.0.0
AppTimeStamp 6aaa6ebb
ModuleName tse.exe
ModuleVersion 0.0.0.0
ModuleTimeStamp 6aaa6ebb
ExceptionCode c0000005
FaultingOffset 00047305
ProcessId 0x24a4
ProcessCreationTime 0x1dd45fa664758c0
AppPath D:\Downloads\tse-setup-4.50.28\tse.exe
ModulePath D:\Downloads\tse-setup-4.50.28\tse.exe
IntegratorReportId fbe4ff3d-e601-4fb7-89e8-e39c84f5e8da
PackageFullName
PackageRelativeAppId

J. David Boyd

unread,
Sep 16, 2026, 12:55:52 PMSep 16
to sem...@googlegroups.com
Hey, even when installed with CMD.exe, it doesn't run when called from TCC.  Let me see if I can find out anything about this.

knud van eeden

unread,
Sep 16, 2026, 1:17:01 PMSep 16
to sem...@googlegroups.com
I have put the eventvwr.exe crash report through ChatGPT and it had a lot of conclutions:

This Event Viewer entry proves that TCC successfully starts tse.exe, but TSE 4.50.28 then crashes during its own startup.

The decisive fields are:

ExceptionCode:  c0000005
ModuleName:     tse.exe
FaultingOffset: 00047305

0xC0000005 is an access violation: the program tried to read, write, or execute an invalid memory address. It is not the STATUS_DATATYPE_MISALIGNMENT exception predicted by the stack-alignment theory; that would be 0x80000002. Microsoft’s exception documentation confirms these meanings.

The faulting offset is an RVA within tse.exe:

RVA 0x00047305

Semware can locate the responsible instruction and source function using the exact 4.50.28 executable plus its linker map or debug symbols. Because the faulting module is tse.exe itself, the crash occurs in TSE-generated code—not directly inside tcc.exe or a Windows DLL. However, TCC’s launch method evidently creates the condition that exposes the bug.

Revised technical conclusion

The evidence now supports this sequence:

  1. TCC successfully creates the TSE process.

  2. The Windows loader successfully loads the executable and required DLLs.

  3. Execution reaches TSE’s own program code.

  4. TSE accesses an invalid address at RVA 0x47305.

  5. Windows terminates the process.

  6. TCC returns to its prompt, making it appear that nothing happened.

This rules out:

  • TCC refusing the PE file;

  • an unrecognized executable header;

  • a missing imported DLL;

  • command alias resolution;

  • failure to create the process;

  • STATUS_DATATYPE_MISALIGNMENT.

It instead indicates a startup bug in the new compiler/runtime build, probably dependent on the process startup information supplied by TCC.

Possible causes include:

  • assuming a startup handle or pointer is always valid;

  • using an inherited standard handle without validating it;

  • calling-convention damage;

  • incorrect runtime initialization;

  • stack corruption;

  • a compiler-dependent structure layout;

  • incorrect assumptions about STARTUPINFO;

  • undefined behaviour exposed by Clang;

  • an ASLR-sensitive invalid pointer.

ASLR and DEP could still influence the crash, but the PE flags themselves are not being rejected.

Best information to send Semware

Event Viewer confirms that tse.exe is actually created by TCC and then crashes inside its own module:

Application:     tse.exe 4.50.28
Exception code:  0xC0000005
Faulting module: tse.exe
Faulting offset: 0x00047305

Therefore this is not a failure by TCC or Windows to recognize or load the executable. It is an access violation in TSE startup code. It is also not the proposed STATUS_DATATYPE_MISALIGNMENT exception, which would be 0x80000002.

Please resolve RVA 0x47305 using the exact 4.50.28 linker map or debug symbols. That should identify the failing function and source line. Since launching through cmd.exe works, please inspect code that handles STARTUPINFO, inherited standard handles, console information, environment data and command-line initialization.

A build with debugging symbols—or a MAP file containing public symbols—would make this immediately traceable. Separate builds with ASLR disabled and with four-byte stack alignment would still be useful experiments, but the access violation location should be investigated first.

Capturing the missing crash details

Event Viewer does not state:

  • whether the invalid operation was a read, write, or execute;

  • the invalid target address;

  • register contents;

  • the call stack.

A full crash dump supplies these. Windows Error Reporting can collect one specifically for tse.exe. Run these from an elevated command prompt on the affected computer:

mkdir C:\CrashDumps

reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\tse.exe" /v DumpFolder /t REG_EXPAND_SZ /d C:\CrashDumps /f

reg add "HKLM\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\tse.exe" /v DumpType /t REG_DWORD /d 2 /f

Then reproduce the crash from TCC. Windows should create a .dmp file under:

C:\CrashDumps

Microsoft documents DumpType=2 as a full user-mode dump and supports per-application settings under LocalDumps\<application.exe>. Microsoft: Collecting User-Mode Dumps

That dump, together with Semware’s exact executable and symbols, should reveal the defective instruction, invalid address and call stack. The Event Viewer result is the strongest evidence obtained so far: this is a real startup access violation in the newly compiled TSE executable.





knud van eeden

unread,
Sep 16, 2026, 1:26:52 PMSep 16
to sem...@googlegroups.com
The easiest for Semware would be to recompile it with the latest CLang version 23.x version, that rules already
many things out.

Installing the CLang 23.1 version anywhere on the PC takes a minute:

 winget install --id=LLVM.LLVM -e --location "D:\Your\Custom\Path"

That would be the easiest test.

Then run the resulting executable e.g. on a trial version of JPSoft tcc.exe, that is free.


That would be the easiest + the fastest test.

If still issue then working from there, so something in CLang still and or most likely
the compiler options used.

At the JPSoft end there is not much one can do, as already tested with latest version tcc.exe 32.56 88 version where
it occurs, it reproduces also with earlier versions. Going to JPSoft support will send one back to the 3rd party
application as it is quite likely a one-time one-product issue to resolve at that end.


Joe Caverly

unread,
Sep 29, 2026, 11:41:44 AM (8 days ago) Sep 29
to SemWare TSE Pro text editor
I've been using TSE 4.48 for several years via TCC,
running g32.exe from the TCC command line,
with no issues.

Today, I downloaded TSE 4.50.23,
and installed it from the TCC  36.52.88 x64   Windows 10 [Version 10.0.19045.7725] command line.

No issues in running tse.exe to install,
and no issues in running g32.exe

Joe 

knud van eeden

unread,
Sep 29, 2026, 12:40:27 PM (8 days ago) Sep 29
to SemWare TSE Pro text editor
Your TSE 4.50.23 was still compiled by Semware with Borland C++ version 5.5 command line compiler and
that never had the issue.

But for TSE 4.50.27 / 4.50.28 Semware started to compile and publish the newest versions with other compilers, e.g. 2 Microsoft Command line compilers, GNU MinGW gcc, clang were published with the clang compiler instead of the usual Borland 5.5 compiler.

This fixed some latent bugs and might be a stepping stone to a 64 bits version of TSE some time in the future
(note: Borland's compiler version 5.5 is strictly 32 bits).

Further is OpenWatcom compiler used to compile TSE for Linux.

It showed that by design the clang compiler handled some memory issues different. E.g. what happens if 
in the C executable source code it is tried to change read-only memory. The clang version did not accept that when run on JPSoft tcc.exe and silently stopped the .exe running. 

On cmd.exe it still worked with the same source code though.

That read-only memory issue caused 4.50.27 / 4.50.28 g32.exe, e.exe, tse.exe, ... not to start at all on JPSoft tcc.exe command line.

Semware fixed the issue of trying to change read-only memory by making the read-only memory writable instead so it worked on JPSoft tcc.exe again in general.

Also e.g. latest TSE 4.50.30 is compiled again with Borland C++ 5.5. command line compiler as usual for many
many years.

Reply all
Reply to author
Forward
0 new messages