chobie / php-sundown

php-sundown is just simple wrapper of sundown
Other
137 stars 16 forks source link

SEGV occurred on Travis CI #7

Closed chobie closed 12 years ago

chobie commented 12 years ago

probably it's 32 bit problem. let me setup a 32bit deb box and check it later.

=====================================================================
177PHP         : /home/vagrant/.phpenv/versions/5.4.0rc4/bin/php 
178PHP_SAPI    : cli
179PHP_VERSION : 5.4.0RC4
180ZEND_VERSION: 2.4.0
181PHP_OS      : Linux - Linux natty32 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:50 UTC 2011 i686
182INI actual  : /home/vagrant/builds/chobie/php-sundown/src/tmp-php.ini
183More .INIs  :  
184CWD         : /home/vagrant/builds/chobie/php-sundown/src
185Extra dirs  : 
186VALGRIND    : Not used
187=====================================================================
188TIME START 2012-01-09 02:20:05
189=====================================================================
190PASS Check for sundown presence [tests/001.phpt] 
191PASS Check for Sundown::__construct arguments [tests/002-basic-constructor-arguments.phpt] 
192PASS Check for Sundown::to_html() feature [tests/002-basic-to_html.phpt] 
193PASS Check for Sundown::__construct arguments [tests/002-constructor-arguments.phpt] 
194TEST 5/12 [tests/003-advanced-constructor.phpt]
195========DIFF========
196001+ Segmentation fault
197001- OK
198========DONE========
199FAIL Check for Sundown\Markdown::__construct() feature [tests/003-advanced-constructor.phpt] 
200TEST 6/12 [tests/003-advanced-render-html-block_code.phpt]
201========DIFF========
202001+ Segmentation fault
203001- <pre><code class="php">echo &#39;abc&#39;</code></pre>
204002- 
205003- <pre><code>echo &#39;abc&#39;</code></pre>
206========DONE========
207FAIL Check for Sundown\Render\HTML::block_code() feature [tests/003-advanced-render-html-block_code.phpt] 
208TEST 7/12 [tests/003-advanced-render-html-block_html.phpt]
209========DIFF========
210001+ Segmentation fault
211001- block html
212========DONE========
213FAIL Check for Sundown\Render\HTML::block_html() feature [tests/003-advanced-render-html-block_html.phpt] 
214TEST 8/12 [tests/003-advanced-render-html-block_quote.phpt]
215========DIFF========
216001+ Segmentation fault
217001- <blockquote>
218002- quoted paragraph</blockquote>
219========DONE========
220FAIL Check for Sundown\Render\HTML::block_quote() feature [tests/003-advanced-render-html-block_quote.phpt] 
221TEST 9/12 [tests/003-advanced-render-html-header.phpt]
222========DIFF========
223001+ Segmentation fault
224001- <h1>Hello World</h1>
225002- <h2>Hello World</h2>
226003- <h3>Hello World</h3>
227========DONE========
228FAIL Check for Sundown\Render\HTML::header() feature [tests/003-advanced-render-html-header.phpt] 
229TEST 10/12 [tests/003-advanced-render-html-list.phpt]
230========DIFF========
231001+ Segmentation fault
232001- <ol>
233002- </ol>
234003- <ul>
235004- </ul>
236005- <li>hello</li>
237006- <li>hello</li>
238========DONE========
239FAIL Check for Sundown\Render\HTML::list_box() feature [tests/003-advanced-render-html-list.phpt] 
240TEST 11/12 [tests/003-advanced-render-html-paragraph.phpt]
241========DIFF========
242001+ Segmentation fault
243001- <p>Hello World</p>
244========DONE========
245FAIL Check for Sundown\Render\HTML::paragraph() feature [tests/003-advanced-render-html-paragraph.phpt] 
246PASS Check for Sundown::to_html() feature [tests/003-to_html.phpt] 
247=====================================================================
248TIME END 2012-01-09 02:20:06
249
250=====================================================================
251TEST RESULT SUMMARY
252---------------------------------------------------------------------
253Exts skipped    :    0
254Exts tested     :   53
255---------------------------------------------------------------------
256
257Number of tests :   12                12
258Tests skipped   :    0 (  0.0%) --------
259Tests warned    :    0 (  0.0%) (  0.0%)
260Tests failed    :    7 ( 58.3%) ( 58.3%)
261Expected fail   :    0 (  0.0%) (  0.0%)
262Tests passed    :    5 ( 41.7%) ( 41.7%)
263---------------------------------------------------------------------
264Time taken      :    1 seconds
265=====================================================================
266
267=====================================================================
268FAILED TEST SUMMARY
269---------------------------------------------------------------------
270Check for Sundown\Markdown::__construct() feature [tests/003-advanced-constructor.phpt]
271Check for Sundown\Render\HTML::block_code() feature [tests/003-advanced-render-html-block_code.phpt]
272Check for Sundown\Render\HTML::block_html() feature [tests/003-advanced-render-html-block_html.phpt]
273Check for Sundown\Render\HTML::block_quote() feature [tests/003-advanced-render-html-block_quote.phpt]
274Check for Sundown\Render\HTML::header() feature [tests/003-advanced-render-html-header.phpt]
275Check for Sundown\Render\HTML::list_box() feature [tests/003-advanced-render-html-list.phpt]
276Check for Sundown\Render\HTML::paragraph() feature [tests/003-advanced-render-html-paragraph.phpt]
277=====================================================================
chobie commented 12 years ago

i've checked below environment but SEGV didn't occur. let me check more deeply on travis.

=====================================================================
PHP         : /home/chobie/.pgr/5.3.8-zts/bin/php 
PHP_SAPI    : cli
PHP_VERSION : 5.3.8
ZEND_VERSION: 2.3.0
PHP_OS      : Linux - Linux ubuntu 3.0.0-12-generic #20-Ubuntu SMP Fri Oct 7 14:50:42 UTC 2011 i686
INI actual  : /home/chobie/src/php-sundown/src/tmp-php.ini
More .INIs  :  
CWD         : /home/chobie/src/php-sundown/src
Extra dirs  : 
VALGRIND    : Not used
=====================================================================
chobie commented 12 years ago

probably it was caused by accessing non initialized variables.

http://travis-ci.org/#!/chobie/php-sundown/builds/502731 https://github.com/chobie/php-sundown/commit/333143377c4e061f8aff9b21cd90eda1e598dc71

i didn't expect this result but it looks fine.