RISC OS Open
Safeguarding the past, present and future of RISC OS for everyone
ROOL
Home | News | Downloads | Bugs | Bounties | Forum | Documents | Photos | Contact us
Account

Previous|Next

  • Tickets
  • » Ticket #529

Ticket #529 (Open)Wed Oct 27 16:58:21 UTC 2021

DDE tools fail with long command lines

Reported by: Stuart Swales (8827) Severity: Normal
Part: RISC OS: Software library Release:
Milestone: Status Open

Details by Stuart Swales (8827):

The default RootStackSize in the SCL seems somewhat small (4096b) for applications. <code>kernel_init</code> copies in the command line from <code>SWI DDEUtils_GetCL</code> having first read its size with <code>SWI DDEUtilsGetCLSize</code> but not actually checking whether there is enough space for it. A corrupt stack results shortly thereafter… Either trap in trap handler or no space for stack, YMMV.

Changelog:

Modified by Stuart Swales (8827) Wed, October 27 2021 - 16:59:25 GMT

  • Attachment added: Makefile

Just drag the attached Makefile to Amu to watch cc barf.

Modified by Sprow (202) Sun, March 06 2022 - 18:11:00 GMT

  • Part changed from RISC OS: C/C++ toolchain to RISC OS: Software library

Having looked at kernel_init I think it should be possible to move the setting of O_allocProc/O_freeProc and friends up (since they don’t need to see the command line) which would then allow a stack extension if DDEUtilsGetCLSize wants more than 4k.

This doesn’t appear to be toolchain related – anything which uses DDEUtils for long command line processing would be affected.

  • Comment on, or change status of, this ticket

Previous|Next

Search tickets

Social

Follow us on and

ROOL Store

Buy RISC OS Open merchandise here, including SD cards for Raspberry Pi and more.

Donate! Why?

Help ROOL make things happen – please consider donating!

RISC OS IPR

RISC OS is an Open Source operating system owned by RISC OS Developments Ltd and licensed primarily under the Apache 2.0 license.

Options

  • Tickets
  • New ticket
  • Milestones
  • Subversion: Changesets
  • Subversion: Browse
  • CVS: Revisions
  • CVS: Browse
  • Search

RSS feeds Rss

  • Tickets
  • Everything!
  • More feeds...
Site design © RISC OS Open Limited 2018 except where indicated
The RISC OS Open Collaboa theme is distantly based on the Collaboa default layout

Valid XHTML 1.0  |  Valid CSS

Powered by Collaboa
This site runs on Rails

Hosted by Arachsys