Project

General

Profile

Bug #201

segmentation fault with function defined in package ("PrintHGIndices"): First and Last

Added by Anna Maria Bigatti over 11 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
High
Category:
Parser/Interpreter
Target version:
Start date:
03 Jul 2012
Due date:
% Done:

100%

Estimated time:
1.50 h
Spent time:

Description

Whatever the user error is, CoCoA should never crash. Investigate.

Bigatti := [
  Record[C := 20, T := "my title 1"],
  Record[C := 2, T := "my title 2"]
];

PrintHGIndices(Bigatti);

History

#1 Updated by Anna Maria Bigatti over 11 years ago

  • Category set to Parser/Interpreter
  • Status changed from New to Resolved
  • Assignee set to Anna Maria Bigatti
  • Target version set to CoCoA-5.0.3
  • % Done changed from 0 to 80
  • Estimated time set to 1.50 h

The problem is in the function First(L,N) when N is larger than the length of L.
Fixed.

#2 Updated by Anna Maria Bigatti over 11 years ago

  • Subject changed from segmentation fault with function defined in package ("PrintHGIndices") to segmentation fault with function defined in package ("PrintHGIndices"): First and Last
  • Status changed from Resolved to Closed

Also First([]) and Last([]) were buggy: fixed

#3 Updated by Anna Maria Bigatti over 11 years ago

  • % Done changed from 80 to 100

Also available in: Atom PDF