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: =========
/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 File(s):
   
   
Comment:
   

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