Uploaded image for project: 'Subversion'
  1. Subversion
  2. SVN-2229

Perl SVN::Error::ignore_error($lsvn_error_t) in error handler gives Bus Error or Segmentation Fault

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.1.x
    • nonblocking
    • bindings_swig_perl
    • None

    Description

      Maillist thread: http://svn.haxx.se/users/archive-2005-02/0576.shtml
      
      The SVN Perl (swig-bindings) Error Handler can cause a Bus Error on what should be a correct usage.
      
      eg. This will succeed:
      
      sub error_handler_ls_croak() { 
         my $lsvn_error_t = $_[0]; 
      
         $lsvn_error_t -> message(); 
         SVN::Error::croak_on_error($lsvn_error_t); 
      } 
      
      This will fail:
      
      sub error_handler_ls_croak() { 
         my $lsvn_error_t = $_[0]; 
      
         $lsvn_error_t -> message(); 
         SVN::Error::ignore_error($lsvn_error_t); 
      } 
      
      A script to test this is attached to http://svn.haxx.se/users/archive-2005-02/1154.shtml.
      
      Using this script is described in that mail also.  In addition to that is this information:
      
      Down the bottom of the script are 4 alternate sub calls.  The ones that work start with 'works_' and 
      those that don't start with 'aintwork_'.
      

      http://svn.haxx.se/users/archive-2005-02/0576.shtml

      Original issue reported by bbos

      Attachments

        1. 1_simple.pl
          3 kB
          Subversion Importer

        Activity

          People

            Unassigned Unassigned
            subversion-importer Subversion Importer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: