Ticket #11263 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Create an algorithm that always segfaults

Reported by: Peter Peterson Owned by: Peter Peterson
Priority: major Milestone: Release 3.4
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Andrei Savici

Description (last modified by Peter Peterson) (diff)

This will be used in determining various methods for error reporting from mantid. It should only take one option, DryRun which is true by default and just logs that mantid should segfault. There won't be any testing and the algorithm should be "hidden" by default.

int main(void)
{
    // writing to read-only memory
    // https://en.wikipedia.org/wiki/Segmentation_fault
    char *s = "hello world";
    *s = 'H';
}

Change History

comment:1 Changed 6 years ago by Peter Peterson

  • Description modified (diff)

comment:2 Changed 6 years ago by Pete Peterson

  • Status changed from new to inprogress

Re #11263. Adding generated algorithm template

Changeset: 670c282a9c65ff936b71e98244874b1ea4a0ec4a

comment:3 Changed 6 years ago by Pete Peterson

Re #11263. Added algorithm that segfaults mantid.

Changeset: 61c81c35e98609b9b9aadd3db1320338220c467e

comment:4 Changed 6 years ago by Pete Peterson

  • Status changed from inprogress to verify
  • Resolution set to fixed

This is being verified as pull request #348.

comment:5 Changed 6 years ago by Andrei Savici

  • Status changed from verify to verifying
  • Tester set to Andrei Savici

comment:6 Changed 6 years ago by Pete Peterson

Re #11263. Suppressing clang compiler warning.

Changeset: 7e08010c8924e197930a0fcdbccb7cba0b5fbb77

comment:7 Changed 6 years ago by Andrei Savici

  • Status changed from verifying to closed

Merge pull request #348 from mantidproject/11263_segfault_algorithm

Algorithm to segfault mantid

Full changeset: d96cc827fd9ce066a1c9005e658ffd1ced39b106

comment:8 Changed 5 years ago by Nick Draper

Somehow these slipped through without a resolution. Set to Fixed.

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 12102

Note: See TracTickets for help on using tickets.