Bug #122

SEGV by ./ruby -e ''

Added by Anonymous about 7 years ago. Updated over 4 years ago.

[ruby-dev:35008]
Status:Closed
Priority:Normal
Assignee:Yukihiro Matsumoto
ruby -v: Backport:

Description

=begin
以下のように ./ruby -e '' が SEGV します。

% ./ruby -e ''
./ruby: [BUG] Segmentation fault
ruby 1.9.0 (2008-06-09 revision 17041) [i686-linux]

-- stack frame ------------
0000 (0xb7d36008): 00000004
0001 (0xb7d3600c): 00000001
0002 (0xb7d36010): 00000004
0003 (0xb7d36014): 00000001 <- lfp <- dfp
-- control frame ----------
c:0002 p:-34091400 s:0004 b:0004 l:000003 d:000003 TOP

c:0001 p:0000 s:0002 b:0002 l:000001 d:000001 TOP :17


-- backtrace of native function call (Use addr2line) --
0x810e8fa
0x813596e
0x81359cb
0x80d4110
0xb7f6c440
0x80d381e
0x80fd5da
0x80d1ff5
0x805b094
0x80589ed
0xb7dcdea8
0x80588f1


zsh: abort (core dumped) ./ruby -e ''
% gdb ./ruby
GNU gdb 6.4.90-debian
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...Using host libthread_db library "/lib/tls/i686/cmov/libthread_db.so.1".

(gdb) run -e ''
Starting program: /home/ruby/spawn/ruby/ruby -e ''
Failed to read a valid object file image from memory.
[Thread debugging using libthread_db enabled]
[New Thread -1209902208 (LWP 28299)]
[New Thread -1208128592 (LWP 28302)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209902208 (LWP 28299)]
require_libraries (opt=0xbffd1784) at ruby.c:458
458 while (RARRAY_LEN(list)) {
(gdb) bt
#0 require_libraries (opt=0xbffd1784) at ruby.c:458
#1 0x080d381e in process_options (arg=3221034980) at ruby.c:1108
#2 0x080fd5da in rb_vm_call_cfunc (recv=136088960, func=0x80d3540 , arg=3221034980, blockptr=0x0,
filename=135957620) at vm.c:1303
#3 0x080d1ff5 in ruby_process_options (argc=3, argv=0xbffd1984) at ruby.c:1531
#4 0x0805b094 in ruby_options (argc=3, argv=0xbffd1984) at eval.c:104
#5 0x080589ed in main (argc=3, argv=0xbffd1984, envp=0xbffd1994) at main.c:34
(gdb)
--
[田中 哲][たなか あきら][Tanaka Akira]
=end

Associated revisions

Revision 9169
Added by Hiroshi Nakamura almost 10 years ago

  • lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.

      #nnn is a ticket number at http://dev.ctor.org/soap4r
    
      * SOAP
    
        * allow to configure an envelope namespace of SOAP request. (#124)
            TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
            @client.options["soap.envelope.requestnamespace"] =
              TemporaryNamespace
            @client.options["soap.envelope.responsenamespace"] =
              TemporaryNamespace
            @client.do_proc(...)
    
        * let SOAP request XML indent space configuable.  see
          "soap.envelope.no_indent" option. (#130)
    
        * let external CES configuable.
          ex. client["soap.mapping.external_ces"] = 'SJIS'.  $KCODE is used
          by default. (#133)
            external CES ::= CES used in Ruby object of client and server
            internal CES ::= CES used in SOAP/OM
    
        * add iso-8859-1 external CES support. (#106)
    
        * fixed illegal 'qualified' handling of elements.  it caused
          ASP.NET inteoperability problem. (#144)
    
        * added 'soap.envelope.use_numeric_character_reference' (boolean)
          option to let query XML use numeric character reference in XML,
          not plain UTF-8 character.  !GoogleSearch server seems to not
          allow plain UTF-8 character since 2005-08-15 update. (#147)
    
        * SOAP::Header::SimpleHeader (de)serialization throws an exception
          on !SimpleHeader.on_(in|out)bound when header is a String.  so we
          could not use a simple single element headerItem.  fixed.  thanks
          to emil. (#129)
    
        * out parameter of rpc operation did not work.  (#132)
    
        * follow HTTP redirect only if using http-access2.  (#125) (#145)
    
        * add a workaround for importing an WSDL whose path begins with
          drive letter.  (#115)
    
      * WSDL
    
        * SOAP Data which is defined as a simpletype was not mapped
          correctly to Ruby obj when using wsdl2ruby.rb generated classdef
          file. (#123)
    
        * rpc/literal support. (#118)
    
        * re-implemented local element qualify/unqualify control.  handles
          elementFormDefault and form in WSDL.  (#119)
    
        * Array of an element which has simpleType causes a crash. (#128)
    
        * prarmeterOrder may not contain return part so it can be shorter
          than parts size.  Thanks to Hugh.  (#139)
    
      * Samples
    
        * added !BasicAuth client sample. (#117)
    
        * added Base64 client/server sample.
    
        * added Flickr SOAP interface client sample. (#122)
    
        * added !SalesForce client sample. (#135)
    
        * updated Thawte CA certificate for !GoogleAdWords sample.
    
        * updated a client script with the newer version made by Johan.
          thanks!
    
        * shortened long file names. (#120)
    
        * fixed typo in authheader sample. (#129)
    
        * updated deprecated method usage.  (#138)
    

Revision 9169
Added by Hiroshi Nakamura almost 10 years ago

  • lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.

      #nnn is a ticket number at http://dev.ctor.org/soap4r
    
      * SOAP
    
        * allow to configure an envelope namespace of SOAP request. (#124)
            TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
            @client.options["soap.envelope.requestnamespace"] =
              TemporaryNamespace
            @client.options["soap.envelope.responsenamespace"] =
              TemporaryNamespace
            @client.do_proc(...)
    
        * let SOAP request XML indent space configuable.  see
          "soap.envelope.no_indent" option. (#130)
    
        * let external CES configuable.
          ex. client["soap.mapping.external_ces"] = 'SJIS'.  $KCODE is used
          by default. (#133)
            external CES ::= CES used in Ruby object of client and server
            internal CES ::= CES used in SOAP/OM
    
        * add iso-8859-1 external CES support. (#106)
    
        * fixed illegal 'qualified' handling of elements.  it caused
          ASP.NET inteoperability problem. (#144)
    
        * added 'soap.envelope.use_numeric_character_reference' (boolean)
          option to let query XML use numeric character reference in XML,
          not plain UTF-8 character.  !GoogleSearch server seems to not
          allow plain UTF-8 character since 2005-08-15 update. (#147)
    
        * SOAP::Header::SimpleHeader (de)serialization throws an exception
          on !SimpleHeader.on_(in|out)bound when header is a String.  so we
          could not use a simple single element headerItem.  fixed.  thanks
          to emil. (#129)
    
        * out parameter of rpc operation did not work.  (#132)
    
        * follow HTTP redirect only if using http-access2.  (#125) (#145)
    
        * add a workaround for importing an WSDL whose path begins with
          drive letter.  (#115)
    
      * WSDL
    
        * SOAP Data which is defined as a simpletype was not mapped
          correctly to Ruby obj when using wsdl2ruby.rb generated classdef
          file. (#123)
    
        * rpc/literal support. (#118)
    
        * re-implemented local element qualify/unqualify control.  handles
          elementFormDefault and form in WSDL.  (#119)
    
        * Array of an element which has simpleType causes a crash. (#128)
    
        * prarmeterOrder may not contain return part so it can be shorter
          than parts size.  Thanks to Hugh.  (#139)
    
      * Samples
    
        * added !BasicAuth client sample. (#117)
    
        * added Base64 client/server sample.
    
        * added Flickr SOAP interface client sample. (#122)
    
        * added !SalesForce client sample. (#135)
    
        * updated Thawte CA certificate for !GoogleAdWords sample.
    
        * updated a client script with the newer version made by Johan.
          thanks!
    
        * shortened long file names. (#120)
    
        * fixed typo in authheader sample. (#129)
    
        * updated deprecated method usage.  (#138)
    

History

#1 Updated by Yukihiro Matsumoto about 7 years ago

  • Status changed from Open to Closed
  • Assignee set to Yukihiro Matsumoto
  • Start date set to 06/09/2008

=begin

=end

Also available in: Atom PDF