bugGNU Octave - Bugs: bug #49206, [octave forge] (general) SHA1...


bug #49206: [octave forge] (general) SHA1 crashes Octave on 64bit

Submitted by:  Francesco Potortì <pot>
Submitted on:  Wed 28 Sep 2016 08:38:27 AM UTC  
Category: Octave Forge PackageSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Segfault, Bus Error, etc.
Status: ConfirmedAssigned to: None
Originator Name: Open/Closed: Open
Release: 4.0.3Operating System: GNU/Linux

Add a New Comment(Rich Markup)

You are not logged in

Please log in, so followups can be emailed to you.


Wed 28 Sep 2016 01:48:28 PM UTC, comment #3:

Yeah I guess that this SHA1 function in general is a candidate for dropping from the package rather than fixing once 4.2 is released.

Mike Miller <mtmiller>
Project Administrator
Wed 28 Sep 2016 01:28:23 PM UTC, comment #2:

Confirmed. Just a note: The 4.2 release of Octave includes a new function "hash" which is also capable of calculating SHA1

Andreas Weber <andy1978>
Project Member
Wed 28 Sep 2016 10:38:50 AM UTC, comment #1:

This bug has also been filed against the octave-gnereal package of Debian.

I commented here that it works on the i386 architecture:

By skimming over the code, I would guess that the problem comes from the fact that sizeof(long) = 4 on i386 and = 8 on amd64.

Rafael Laboissiere <rlaboiss>
Wed 28 Sep 2016 08:38:27 AM UTC, original submission:

On Debian amd64, I get this:

> SHA1(3)

      • stack smashing detected ***: /usr/bin/octave-cli terminated

======= Backtrace: =========
======= Memory map: ========
00400000-00401000 r-xp 00000000 09:01 1302105 /usr/bin/octave-cli
00600000-00601000 r--p 00000000 09:01 1302105 /usr/bin/octave-cli
00601000-00602000 rw-p 00001000 09:01 1302105 /usr/bin/octave-cli
0224c000-0b1f2000 rw-p 00000000 00:00 0 [heap]

Francesco Potortì <pot>


(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by jwe (Updated the item)
  • -unavailable- added by mtmiller (Posted a comment)
  • -unavailable- added by andy1978 (Posted a comment)
  • -unavailable- added by rlaboiss (Posted a comment)
  • -unavailable- added by pot (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.


    Please enter the title of George Orwell's famous dystopian book (it's a date):



    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun 13 Aug 2017 01:17:38 PM UTCjweSummaryoctave-general: SHA1 crashes Octave on 64bit=>[octave forge] (general) SHA1 crashes Octave on 64bit
    Wed 28 Sep 2016 01:28:23 PM UTCandy1978StatusNone=>Confirmed
      SummarySHA1 crashes Octave=>octave-general: SHA1 crashes Octave on 64bit

    Back to the top

    Powered by Savane 3.1-cleanup1