Re: exit code running out the shell question
[email protected] (Peter Pentchev) Thu, 6 Nov 2025 11:42:36 +0200
| Newsgroups | perl.perl6.users |
|---|---|
| Message-ID | <[email protected]> |
On Wed, Nov 05, 2025 at 09:40:51PM -0800, ToddAndMargo via perl6-users wrote: > On 11/5/25 9:32 PM, ToddAndMargo via perl6-users wrote: > > Hi All, > > > > Why would a Raku program return an exit code of > > -1073741510 (3221225786)? > > > > Yours in Confusion, > > -T > > This is happening to me in Windows 10 > > Search.brave.com's AI states this: > https://search.brave.com/search?q=why+would+a+raku+return+an+exit+code+of+-1073741510&spellcheck=0&source=alteredQuery&summary=1&conversation=d94c64bece8d47d076d8ea > > The exit code -1073741510 (0xc000013a) is a Windows-specific > error code that indicates an application was terminated > abruptly during a logoff or shutdown sequence. This error > is not directly related to Raku itself but can occur if > a Raku program is running as part of a larger application > or service that is terminated unexpectedly, such as when > the system shuts down too quickly for the process to exit > gracefully. The error typically arises when the operating > system does not allow sufficient time for the application > to close properly, which can happen during a Windows logoff > or shutdown. > > > When I run my program manually, it exits perfectly. > > Since this runs unattended, how it the world do > I trace this down? Log every subroutine that is > called? Is there a tracing module that will do > this for me? This is not an error in your program itself. Your program would probably run fine, but it just happened to be invoked at exactly the wrong time: when something else tried to shut the Windows computer down or reboot it. This is not something you have control over, unless it was your program (or the program that invoked it) that tried to reboot the system, in which case the program that invokes the other one should be prepared to handle that exit code - it should check for that exit code and say "oh, yeah, well, we don't know how far things went, but apparently it doesn't really matter right now, we cannot do anything more since the system is shutting down". G'luck, Peter -- Peter Pentchev [email protected] [email protected] [email protected] PGP key: https://www.ringlet.net/roam/roam.key.asc Key fingerprint 2EE7 A7A5 17FC 124C F115 C354 651E EFB0 2527 DF13
signature.asc
(application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEELuenpRf8EkzxFcNUZR7vsCUn3xMFAmkMbYcACgkQZR7vsCUn 3xM4Eg/+ILt8o+kWCdDc4Hzbrnm3LMWtqVQ1oBqtWc90Rn+r+p8fEPTydVrwZr7b ZSf47fv2QvNlFa6Vx3g39KWQyPeL+zVdbidsbX7z+20m2S5tMvi6gXoPLX51dkYF aTg/vQPwdwA69OraYOiDcay3w0it1einfFNoEf/ACs6yfeljmFjUdATvLPbu2+wZ YDstfovPWw+ixfXeDfh6a9FIrNSOLDjeblSmPlI4I4f4biLxx/YZmCwUAYdHrEPt M65nH6BsT0fo2Aswnz7zDTKPX3679oPubL+6cN+M7VGJOuuB817dscuIqAqy25JX IcdsszrWrw5/Xt+aYHoZMeMg885GDEmyYAmZagd0zOwDhlLv4uBzT/b2N8Q8B6lR 5gB7KvEHmkLbpjbkujoalpXPSw44E7GBJXlOZKnaOCkKSFF+yru9L/dJO3VQNBUW Koeo3cRwoZcese+k9J5flU2gqGZPIe24Ouf/z283xN6wrVhmjzIi6Kg++7Gg2nZ0 DNmeA+6ze/lEhkizRF+YI8uCwIpRdugdpWkOL0G9GLEDRWUVMr5p1O74DTGrzS9c hQJw1A+Q7r3bTw/tmMlJmd1SO70tEdO3s2hWe7bSe46Vu4RPi3g/NejGGHXO0+SF IBygIBob2DnFaUNEFTMiUSB2QQ5STFxIB7rq/jDNY/ZWkcq7YRk= =Esyu -----END PGP SIGNATURE-----