On Fri, Feb 6, 2009 at 9:57 PM, Bill Marquette <[email protected]> wrote:
> On Fri, Feb 6, 2009 at 8:30 PM, mobilemike <[email protected]> wrote:
>>
>> Anything strange about the source of the PHP file it's choking on?
>>
>> On Feb 6, 9:02 pm, Bill Marquette <[email protected]> wrote:
>>> Trying to figure out the cause of the following backtrace...any hints?  
>>> Thanks
>>>
>>> --Bill
>
> Nothing that stands out to me (other than it's cruft left laying
> around in the repo).
>
> <?php
>
> $debug = false;
> $nic = "em1";
> $ips = "254";
> $ip = "192.168.1.";
> $starting = "3";
> $url = "http://192.168.1.1:8000";;
> $iterations = "1";
> $sleep_between_iterations = "0";
> $tries = "1"; // wget tries
> $timeout = "4"; // wget timeout
> //$sleep_between = "30";
> $post_data = 
> "auth_user=&auth_pass=&redirurl=http%3A%2F%2Fgoogle.com%2F&accept=Continue";
>
> ?>
>
> The rescue on line 44 of blobs_helper.rb should trap the Onigurama
> Error, which makes me think that the Onigurama exception isn't
> subclassed from StandardError, so isn't getting caught.  I'm using the
> onigurama 1.1.0 gem and it should be 5.9.1 of the Onigurama library.

I've tracked this back to the Oniguruma library I have installed not
liking all the syntax files.  For now, I've worked around the issue by
just rescuing the failed TextPow syntax file loads.  Reinstalling
oniguruma and ruby and the oniguruma gem seems to have had zero effect
(including downreving the oniguruma install to 2.5.8 from FreeBSD
ports).

Example from the PHP syntax file:
loading /usr/local/www/gitorious/vendor/ultraviolet/lib/../syntax/php.syntax
Parsing error in (?x)
                                (^\s*)?                                         
        # 1 - Leading whitespace
                                        (                                       
                # 2 - meta.embedded.line.empty.php
                                                (                               
                # 3 - Open Tag
                                                        (?:
                                                                ((?<=\?>)<)     
        # 4 - Consecutive tags
                                                          | <
                                                        )
                                                        \?(?i:php|=)?
                                                )
                                                        (\s*)                   
        # 5 - Loneliness
                                                ((\?)>)                         
        # 6 - Close Tag
                                                                                
                # 7 - Scope ? as scope.php
                                        )
                                (
                                        \1                                      
                # Match nothing if there was no
                                                                                
                #   leading whitespace...
                                  | (\s*$\n)?                                   
# or match trailing whitespace.
                                )
                        : Oniguruma Error: invalid backref number/name


--Bill

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Gitorious" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/gitorious?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to