Opened 5 years ago

Closed 5 years ago

#21669 closed defect (fixed)

Segmentation fault when saving certain empty matrices

Reported by: Stefan Owned by:
Priority: major Milestone: sage-7.4
Component: linear algebra Keywords: finite field, matrix, segmentation fault
Cc: Merged in:
Authors: Mark Saaltink Reviewers: Travis Scrimshaw
Report Upstream: N/A Work issues:
Branch: cb30bfb (Commits, GitHub, GitLab) Commit: cb30bfbc0c3665438ca686411bf5babf1ec0dbe0
Dependencies: Stopgaps:

Status badges

Description (last modified by tscrim)

When saving a GF(4)-matrix with 0 rows or columns a segmentation fault is triggered:

sage: A = Matrix (GF(4,'a'),0,1)
sage: save(A, "/Users/svanzwam/Dropbox/test.sobj")
------------------------------------------------------------------------
0   signals.so                          0x000000011028d525 print_backtrace + 37
------------------------------------------------------------------------
Unhandled SIGSEGV: A segmentation fault occurred.
This probably occurred because a *compiled* module has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Python will now terminate.
------------------------------------------------------------------------
Segmentation fault: 11

The behavior appears restricted to matrices over GF(2k) for k > 1.

Change History (4)

comment:1 Changed 5 years ago by msaaltink

  • Branch set to u/msaaltink/segmentation_fault_when_saving_certain_empty_matrices

comment:2 Changed 5 years ago by msaaltink

  • Authors set to Mark Saaltink
  • Commit set to cb30bfbc0c3665438ca686411bf5babf1ec0dbe0
  • Status changed from new to needs_review

New commits:

cb30bfbTrac #21669: Segmentation fault when saving certain empty matrices

comment:3 Changed 5 years ago by tscrim

  • Description modified (diff)
  • Reviewers set to Travis Scrimshaw
  • Status changed from needs_review to positive_review

LGTM.

comment:4 Changed 5 years ago by vbraun

  • Branch changed from u/msaaltink/segmentation_fault_when_saving_certain_empty_matrices to cb30bfbc0c3665438ca686411bf5babf1ec0dbe0
  • Resolution set to fixed
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.