Discussion:
php hazardous segfault at loading
clansco
2013-08-09 11:44:00 UTC
Permalink
Hi,
attached is a minimal php file that give a segfault at load
try: bluefish test.php
if it loads correctly: ctrl C and retry.
--
Frédéric Falsetti
http://clansco.org
Andrius
2013-08-09 11:56:51 UTC
Permalink
I can open it without problems. What I should do after crtl-c - what I should copy to the memory? When copying/pasting this fragment nothing happens as well.

MacOSX 10.8.4, svn8025.
Andrius
________________________________
Sent: Friday, August 9, 2013 2:44 PM
Subject: php hazardous segfault at loading
Hi,
attached is a minimal php file that give a segfault at load
try: bluefish test.php
if it loads correctly: ctrl C and retry.
--
Frédéric Falsetti
http://clansco.org
clansco
2013-08-09 12:41:40 UTC
Permalink
On Fri, 9 Aug 2013 04:56:51 -0700 (PDT)
Post by Andrius
I can open it without problems. What I should do after crtl-c
I retry, the crash occurs very frequently.
Post by Andrius
- what I should copy to the memory? When copying/pasting this fragment
nothing happens as well.
it happens only at loading.


Hi Andrius,
not sure that the backtrace can help... I will see if I can have better.
--
Frédéric Falsetti
http://clansco.org
Andrius
2013-08-09 13:01:16 UTC
Permalink
Whatever I do could not reproduce the crash...
________________________________
Sent: Friday, August 9, 2013 3:41 PM
Subject: Re: php hazardous segfault at loading
On Fri, 9 Aug 2013 04:56:51 -0700 (PDT)
Post by Andrius
I can open it without problems. What I should do after crtl-c
I retry, the crash occurs very frequently.
Post by Andrius
- what I should copy to the memory? When copying/pasting this fragment
nothing happens as well.
it happens only at loading.
Hi Andrius,
not sure that the backtrace can help... I will see if I can have better.
--
Frédéric Falsetti
http://clansco.org
clansco
2013-08-09 14:01:19 UTC
Permalink
On Fri, 9 Aug 2013 06:01:16 -0700 (PDT)
Post by Andrius
Whatever I do could not reproduce the crash...
in fact, the crash occurs for every php file.
if I mv ~/.bluefish/rcfile-2.0 ~/.bluefish/rcfile-2.0.tmp
and run bf (without rcfile) I can open safely php files.
in rcfile-2.0 I have:

bflang_options: PHP:C style comment_foldable:1:
bflang_options: PHP:Curly brackets block_foldable:1:
bflang_options: PHP:Javascript Curly brackets block_foldable:1:
bflang_options: PHP:Javascript Parentheses block_foldable:0:
bflang_options: PHP:Javascript Square brackets block_foldable:0:
bflang_options: PHP:PHP block_foldable:1:
bflang_options: PHP:Parentheses block_foldable:0:
bflang_options: PHP:Square brackets block_foldable:0:
bflang_options: PHP:attribute_string_is_block:1:
bflang_options: PHP:autocomplete-html-entities:0:
bflang_options: PHP:autocomplete_PHP_function:1:
bflang_options: PHP:autocomplete_PHP_variable:1:
bflang_options: PHP:autocomplete_javascript_var:1:
bflang_options: PHP:autocomplete_tags:1:
bflang_options: PHP:autocomplete_with_arguments:0:
bflang_options: PHP:autocomplete_with_parentheses:1:
bflang_options: PHP:html-block_foldable:0:
bflang_options: PHP:javascript_anchors_object:1:
bflang_options: PHP:javascript_applets_object:1:
bflang_options: PHP:javascript_css_properties:1:
bflang_options: PHP:javascript_date_object:1:
bflang_options: PHP:javascript_document_object:1:
bflang_options: PHP:javascript_event_object:1:
bflang_options: PHP:javascript_history_object:1:
bflang_options: PHP:javascript_location_object:1:
bflang_options: PHP:javascript_math_object:1:
bflang_options: PHP:javascript_navigator_object:1:
bflang_options: PHP:javascript_node_object:1:
bflang_options: PHP:javascript_screen_object:1:
bflang_options: PHP:javascript_string_object:1:
bflang_options: PHP:javascript_window_object:1:
bflang_options: PHP:load_completion:1:
bflang_options: PHP:load_php_functions:1:
bflang_options: PHP:load_reference:1:
bflang_options: PHP:php_short_open_tag:1:
bflang_options: PHP:show_in_menu:1:
bflang_options: PHP:sql-in-php-string:1:
--
Frédéric Falsetti
http://clansco.org
clansco
2013-08-09 16:00:28 UTC
Permalink
fails:
PHP block_foldable:1:
Parentheses block_foldable:0:
Square brackets block_foldable:0:
fails:
PHP block_foldable:0:
Parentheses block_foldable:1:
Square brackets block_foldable:1:
fails:
PHP block_foldable:0:
Parentheses block_foldable:0:
Square brackets block_foldable:1:

works fine:
PHP block_foldable:1:
Parentheses block_foldable:0:
Square brackets block_foldable:1:
works fine:
PHP block_foldable:0:
Parentheses block_foldable:0:
Square brackets block_foldable:0:

If Parentheses or Square brackets are foldable, PHP block have to be set.
If Parentheses and Square brackets are not foldable, PHP block have to be unset.


On Fri, 9 Aug 2013 16:01:19 +0200
Post by clansco
On Fri, 9 Aug 2013 06:01:16 -0700 (PDT)
Post by Andrius
Whatever I do could not reproduce the crash...
in fact, the crash occurs for every php file.
if I mv ~/.bluefish/rcfile-2.0 ~/.bluefish/rcfile-2.0.tmp
and run bf (without rcfile) I can open safely php files.
--
Frédéric Falsetti
http://clansco.org
--
To unsubscribe from this list: send the line "unsubscribe bluefish-dev" in
Bluefish web site: http://bluefish.openoffice.nl/
--
Frédéric Falsetti
http://clansco.org
clansco
2013-08-09 16:27:46 UTC
Permalink
On Fri, 9 Aug 2013 18:00:28 +0200
Post by clansco
If Parentheses or Square brackets are foldable, PHP block have to be set.
If Parentheses and Square brackets are not foldable, PHP block have to be unset.
it seems that Curly brackets block_foldable depends also from PHP block_foldable...
I will try to have a better look at this asap.
Post by clansco
On Fri, 9 Aug 2013 16:01:19 +0200
Post by clansco
On Fri, 9 Aug 2013 06:01:16 -0700 (PDT)
Post by Andrius
Whatever I do could not reproduce the crash...
in fact, the crash occurs for every php file.
if I mv ~/.bluefish/rcfile-2.0 ~/.bluefish/rcfile-2.0.tmp
and run bf (without rcfile) I can open safely php files.
--
Frédéric Falsetti
http://clansco.org
--
To unsubscribe from this list: send the line "unsubscribe bluefish-dev" in
Bluefish web site: http://bluefish.openoffice.nl/
--
Frédéric Falsetti
http://clansco.org
--
To unsubscribe from this list: send the line "unsubscribe bluefish-dev" in
Bluefish web site: http://bluefish.openoffice.nl/
--
Frédéric Falsetti
http://clansco.org
Olivier Sessink
2013-09-18 13:07:52 UTC
Permalink
Post by clansco
it happens only at loading.
I finally had some time to look at this, and I fixed it.

It was related to the "attribute_string_is_block" option in the rcfile-2.0.

Olivier
--
Bluefish website http://bluefish.openoffice.nl/
Blog http://oli4444.wordpress.com/
Loading...