Stas Boukarev | 15 Aug 2012 19:48
Picon

Re: test return code 104 (was Re: sbcl on RedHat Enterprise Linux 6)

Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:
> I am attaching output of
> sh run-tests.sh 2>&1 > tests.out
>
> That command did not capture all of the messages (such as stack
> restart options and backtraces).  I don't know how to capture that.
It contains everything I needed.
So, the following test fails, as in the test itself fails 

(with-test (:name :bug-511072 :skipped-on '(not :sb-thread))
  (let* ((p (make-package :bug-511072))
         (sem (sb-thread:make-semaphore))
         (t2 (sb-thread:make-thread (lambda ()
                                      (handler-bind ((error (lambda (c)
                                                              (sb-thread:signal-semaphore sem)
                                                              (signal c))))
                                        (make-package :bug-511072))))))
    (sb-thread:wait-on-semaphore sem)
    (assert (eq 'cons (read-from-string "CL:CONS")))))

It seems that the handler-bind takes no effect. I can't reproduce this.
Can you run that form (sans with-test part) in a regular REPL?

--

-- 
With best regards, Stas.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
(Continue reading)

Mirko Vukovic | 15 Aug 2012 20:05
Picon

Re: test return code 104 (was Re: sbcl on RedHat Enterprise Linux 6)

On Wed, Aug 15, 2012 at 1:48 PM, Stas Boukarev <stassats <at> gmail.com> wrote:
> Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:
>> I am attaching output of
>> sh run-tests.sh 2>&1 > tests.out
>>
>> That command did not capture all of the messages (such as stack
>> restart options and backtraces).  I don't know how to capture that.
> It contains everything I needed.
> So, the following test fails, as in the test itself fails
>
> (with-test (:name :bug-511072 :skipped-on '(not :sb-thread))
>   (let* ((p (make-package :bug-511072))
>          (sem (sb-thread:make-semaphore))
>          (t2 (sb-thread:make-thread (lambda ()
>                                       (handler-bind ((error (lambda (c)
>                                                               (sb-thread:signal-semaphore sem)
>                                                               (signal c))))
>                                         (make-package :bug-511072))))))
>     (sb-thread:wait-on-semaphore sem)
>     (assert (eq 'cons (read-from-string "CL:CONS")))))
>
> It seems that the handler-bind takes no effect. I can't reproduce this.
> Can you run that form (sans with-test part) in a regular REPL?
>
>
> --
> With best regards, Stas.

>From the repl:

(Continue reading)

Stas Boukarev | 15 Aug 2012 20:10
Picon

Re: test return code 104 (was Re: sbcl on RedHat Enterprise Linux 6)

Stas Boukarev <stassats <at> gmail.com> writes:

> Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:
>> I am attaching output of
>> sh run-tests.sh 2>&1 > tests.out
>>
>> That command did not capture all of the messages (such as stack
>> restart options and backtraces).  I don't know how to capture that.
> It contains everything I needed.
> So, the following test fails, as in the test itself fails 
>
> (with-test (:name :bug-511072 :skipped-on '(not :sb-thread))
>   (let* ((p (make-package :bug-511072))
>          (sem (sb-thread:make-semaphore))
>          (t2 (sb-thread:make-thread (lambda ()
>                                       (handler-bind ((error (lambda (c)
>                                                               (sb-thread:signal-semaphore sem)
>                                                               (signal c))))
>                                         (make-package :bug-511072))))))
>     (sb-thread:wait-on-semaphore sem)
>     (assert (eq 'cons (read-from-string "CL:CONS")))))
Ok, I got why it fails and why it doesn't. The handler-bind doesn't
prevent the error from invoking the debugger, but, my SBCL exits faster
than it can complain about it. Adding (sleep 5) at the end of the file
lets me reproduce it.

Committed a fix, thanks for the report.

--

-- 
With best regards, Stas.
(Continue reading)

Mirko Vukovic | 15 Aug 2012 20:15
Picon

Re: test return code 104 (was Re: sbcl on RedHat Enterprise Linux 6)

On Wed, Aug 15, 2012 at 2:10 PM, Stas Boukarev <stassats <at> gmail.com> wrote:
> Stas Boukarev <stassats <at> gmail.com> writes:
>
>> Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:
>>> I am attaching output of
>>> sh run-tests.sh 2>&1 > tests.out
>>>
>>> That command did not capture all of the messages (such as stack
>>> restart options and backtraces).  I don't know how to capture that.
>> It contains everything I needed.
>> So, the following test fails, as in the test itself fails
>>
>> (with-test (:name :bug-511072 :skipped-on '(not :sb-thread))
>>   (let* ((p (make-package :bug-511072))
>>          (sem (sb-thread:make-semaphore))
>>          (t2 (sb-thread:make-thread (lambda ()
>>                                       (handler-bind ((error (lambda (c)
>>                                                               (sb-thread:signal-semaphore sem)
>>                                                               (signal c))))
>>                                         (make-package :bug-511072))))))
>>     (sb-thread:wait-on-semaphore sem)
>>     (assert (eq 'cons (read-from-string "CL:CONS")))))
> Ok, I got why it fails and why it doesn't. The handler-bind doesn't
> prevent the error from invoking the debugger, but, my SBCL exits faster
> than it can complain about it. Adding (sleep 5) at the end of the file
> lets me reproduce it.
>
> Committed a fix, thanks for the report.
>
> --
(Continue reading)

Stas Boukarev | 15 Aug 2012 20:17
Picon

Re: test return code 104 (was Re: sbcl on RedHat Enterprise Linux 6)

Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:

> On Wed, Aug 15, 2012 at 2:10 PM, Stas Boukarev <stassats <at> gmail.com> wrote:
>> Stas Boukarev <stassats <at> gmail.com> writes:
>>
>>> Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:
>>>> I am attaching output of
>>>> sh run-tests.sh 2>&1 > tests.out
>>>>
>>>> That command did not capture all of the messages (such as stack
>>>> restart options and backtraces).  I don't know how to capture that.
>>> It contains everything I needed.
>>> So, the following test fails, as in the test itself fails
>>>
>>> (with-test (:name :bug-511072 :skipped-on '(not :sb-thread))
>>>   (let* ((p (make-package :bug-511072))
>>>          (sem (sb-thread:make-semaphore))
>>>          (t2 (sb-thread:make-thread (lambda ()
>>>                                       (handler-bind ((error (lambda (c)
>>>                                                               (sb-thread:signal-semaphore sem)
>>>                                                               (signal c))))
>>>                                         (make-package :bug-511072))))))
>>>     (sb-thread:wait-on-semaphore sem)
>>>     (assert (eq 'cons (read-from-string "CL:CONS")))))
>> Ok, I got why it fails and why it doesn't. The handler-bind doesn't
>> prevent the error from invoking the debugger, but, my SBCL exits faster
>> than it can complain about it. Adding (sleep 5) at the end of the file
>> lets me reproduce it.
>>
>> Committed a fix, thanks for the report.
(Continue reading)

Mirko Vukovic | 15 Aug 2012 20:17
Picon

Re: test return code 104 (was Re: sbcl on RedHat Enterprise Linux 6)

On Wed, Aug 15, 2012 at 2:17 PM, Stas Boukarev <stassats <at> gmail.com> wrote:
> Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:
>
>> On Wed, Aug 15, 2012 at 2:10 PM, Stas Boukarev <stassats <at> gmail.com> wrote:
>>> Stas Boukarev <stassats <at> gmail.com> writes:
>>>
>>>> Mirko Vukovic <mirko.vukovic <at> gmail.com> writes:
>>>>> I am attaching output of
>>>>> sh run-tests.sh 2>&1 > tests.out
>>>>>
>>>>> That command did not capture all of the messages (such as stack
>>>>> restart options and backtraces).  I don't know how to capture that.
>>>> It contains everything I needed.
>>>> So, the following test fails, as in the test itself fails
>>>>
>>>> (with-test (:name :bug-511072 :skipped-on '(not :sb-thread))
>>>>   (let* ((p (make-package :bug-511072))
>>>>          (sem (sb-thread:make-semaphore))
>>>>          (t2 (sb-thread:make-thread (lambda ()
>>>>                                       (handler-bind ((error (lambda (c)
>>>>                                                               (sb-thread:signal-semaphore sem)
>>>>                                                               (signal c))))
>>>>                                         (make-package :bug-511072))))))
>>>>     (sb-thread:wait-on-semaphore sem)
>>>>     (assert (eq 'cons (read-from-string "CL:CONS")))))
>>> Ok, I got why it fails and why it doesn't. The handler-bind doesn't
>>> prevent the error from invoking the debugger, but, my SBCL exits faster
>>> than it can complain about it. Adding (sleep 5) at the end of the file
>>> lets me reproduce it.
>>>
(Continue reading)


Gmane