octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #35120] Invalid read of size 4


From: Muhali
Subject: [Octave-bug-tracker] [bug #35120] Invalid read of size 4
Date: Mon, 19 Dec 2011 20:07:26 +0000
User-agent: Mozilla/5.0 (Ubuntu; X11; Linux x86_64; rv:8.0) Gecko/20100101 Firefox/8.0

URL:
  <http://savannah.gnu.org/bugs/?35120>

                 Summary: Invalid read of size 4
                 Project: GNU Octave
            Submitted by: muhali
            Submitted on: Mon 19 Dec 2011 12:07:25 PM PST
                Category: None
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: dev
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I see random segfaults when reading scripts. This is perhaps related to the
following valgrind analysis, with foo.m being an empty script: 


%> valgrind -q octave --no-init-file -Hq foo.m
==30251== Invalid read of size 4
==30251==    at 0x748BEA0: fileno (fileno.c:37)
==30251==    by 0x52CEE33: octave__init_buffer(yy_buffer_state*, _IO_FILE*)
(lex.cc:3454)
==30251==    by 0x52D0436: octave__create_buffer(_IO_FILE*, int)
(lex.cc:3403)
==30251==    by 0x52D0582: octave_restart(_IO_FILE*) (lex.cc:3328)
==30251==    by 0x52D23E3: reset_parser() (lex.ll:1151)
==30251==    by 0x52D2528: cleanup_parser() (lex.ll:1431)
==30251==    by 0x5427709: clean_up_and_exit(int) (toplev.cc:678)
==30251==    by 0x53CF095: octave_main (octave.cc:904)
==30251==    by 0x7443EAC: (below main) (libc-start.c:228)
==30251==  Address 0x11c90540 is 0 bytes inside a block of size 568 free'd
==30251==    at 0x4C268FE: free (in
/usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==30251==    by 0x748855C: fclose@@GLIBC_2.2.5 (iofclose.c:88)
==30251==    by 0x535B7D8: parse_fcn_file(std::string const&, std::string
const&, bool, bool, std::string const&) (unwind-prot.h:260)
==30251==    by 0x535D42C: load_fcn_from_file(std::string const&, std::string
const&, std::string const&, std::string const&, bool) (oct-parse.yy:3772)
==30251==    by 0x540CE55:
symbol_table::fcn_info::fcn_info_rep::find_user_function() (symtab.cc:1009)
==30251==    by 0x5413071:
symbol_table::fcn_info::fcn_info_rep::xfind(octave_value_list const&, bool)
(symtab.cc:782)
==30251==    by 0x541325F:
symbol_table::fcn_info::fcn_info_rep::find(octave_value_list const&, bool)
(symtab.cc:602)
==30251==    by 0x5411EE5: symbol_table::do_find(std::string const&,
octave_value_list const&, bool, bool) (symtab.h:780)
==30251==    by 0x541200C: symbol_table::find(std::string const&,
octave_value_list const&, bool, bool) (symtab.cc:1157)
==30251==    by 0x5412800: symbol_table::find_function(std::string const&,
octave_value_list const&, bool) (symtab.cc:1192)
==30251==    by 0x535049D: feval(std::string const&, octave_value_list const&,
int) (oct-parse.yy:4121)
==30251==    by 0x5425453: do_octave_atexit() (toplev.cc:1049)
==30251== 






    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35120>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]