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

 
 

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

Submitter:  Francesco Potortì <pot>
Submitted:  Wed 28 Sep 2016 08:38:27 AM UTC
   
 
Category:  Octave Package Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Segfault, Bus Error, etc.
Status:  Fixed Assigned to:  lostbard
Originator Name:  Open/Closed:  * Closed
Release:  * 4.0.3 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 14 May 2018 01:35:14 PM UTC, comment #5: 

closing with the release of general 2.1.0

John Donoghue <lostbard>
Group Member
Thu 10 May 2018 07:58:08 PM UTC, comment #4: 

Should be fixed on bug #53826

John Donoghue <lostbard>
Group Member
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>
Group Member
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>
Group 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:


octave:2> SHA1(1)
ans =

  191   139    69    48   216   210    70   221   116   172    83   161    52   113   187   161   121    65   223   247


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 Laboissière <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: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x6ee55)[0x7fd91b18be55]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x37)[0x7fd91b214527]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x0)[0x7fd91b2144f0]
/usr/lib/x86_64-linux-gnu/octave/packages/general-2.0.0/x86_64-pc-linux-gnu-api-v50+/SHA1.oct(_Z5FSHA1RK17octave_va
lue_listi+0x1a88)[0x7fd8ff8377a8]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN14octave_builtin17do_multi_index_opEiRK17octave_value_listPKNSt7__cx
x114listI13octave_lvalueSaIS5_EEE+0x62b)[0x7fd91dcd588b]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN14octave_builtin7subsrefERKNSt7__cxx1112basic_stringIcSt11char_trait
sIcESaIcEEERKNS0_4listI17octave_value_listSaIS9_EEEiPKNS8_I13octave_lvalueSaISE_EEE+0x162)[0x7fd91dcd4372]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN14octave_builtin7subsrefERKNSt7__cxx1112basic_stringIcSt11char_trait
sIcESaIcEEERKNS0_4listI17octave_value_listSaIS9_EEEi+0x20)[0x7fd91dcd5010]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN12octave_value7subsrefERKNSt7__cxx1112basic_stringIcSt11char_traitsI
cESaIcEEERKNS0_4listI17octave_value_listSaIS9_EEEi+0x29)[0x7fd91ddd73d9]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN12octave_value7subsrefERKNSt7__cxx1112basic_stringIcSt11char_traitsI
cESaIcEEERKNS0_4listI17octave_value_listSaIS9_EEEiPKNS8_I13octave_lvalueSaISE_EEE+0x4d)[0x7fd91ddd748d]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN21tree_index_expression6rvalueEiPKNSt7__cxx114listI13octave_lvalueSa
IS2_EEE+0x4cd)[0x7fd91de6aa6d]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN21tree_index_expression6rvalueEi+0x1f)[0x7fd91de6bb1f]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN21tree_index_expression7rvalue1Ei+0x52)[0x7fd91de64e52]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN14tree_evaluator15visit_statementER14tree_statement+0xfd)[0x7fd91de5
17dd]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_ZN14tree_evaluator20visit_statement_listER19tree_statement_list+0x61)[
0x7fd91de50bd1]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(_Z9main_loopv+0x250)[0x7fd91e35e820]
/usr/lib/x86_64-linux-gnu/liboctinterp.so.3(octave_execute_interpreter+0x7ec)[0x7fd91d89cfac]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf0)[0x7fd91b13d700]
/usr/bin/octave-cli[0x4008a9]
======= 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 Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-05-14 lostbard StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2018-05-10 lostbard StatusConfirmed Ready For Test
        Assigned toNone lostbard
    2017-08-13 jwe Summaryoctave-general: SHA1 crashes Octave on 64bit [octave forge] (general) SHA1 crashes Octave on 64bit
    2016-09-28 andy1978 StatusNone Confirmed
        SummarySHA1 crashes Octave octave-general: SHA1 crashes Octave on 64bit

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code