[prev in list] [next in list] [prev in thread] [next in thread] 

List:       subversion-issues
Subject:    =?UTF-8?B?W0lzc3VlIDIyMjldIE5ldyAtIFBlcmwgU05WOjpFcnJvcjo6aWdubw==?=
From:       bbos () tigris ! org
Date:       2005-02-22 10:27:56
Message-ID: 20050222102756.9112.qmail () tigris ! org
[Download RAW message or body]

http://subversion.tigris.org/issues/show_bug.cgi?id=2229
                  Issue #:|2229
                  Summary:|Perl SNV::Error::ignore_error($lsvn_error_t) in error
                          |handler gives Bus Error or Segmentation Fault
                Component:|subversion
                  Version:|1.1.x
                 Platform:|Macintosh
                      URL:|http://svn.haxx.se/users/archive-2005-02/0576.shtml
               OS/Version:|All
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|bindings_swig_perl
              Assigned to:|issues@subversion
              Reported by:|bbos






------- Additional comments from bbos@tigris.org Tue Feb 22 02:27:56 -0800 2005 -------
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_'.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@subversion.tigris.org
For additional commands, e-mail: issues-help@subversion.tigris.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic