[usocket-devel] HOST-TO-HBO bug on SBCL

Erik Huelsmann ehuels at gmail.com
Sun Jul 27 16:26:17 UTC 2008


On Mon, Jul 21, 2008 at 7:22 PM, Chun Tian (binghe)
<binghe.lisp at gmail.com> wrote:
> Hi, Erik
>
> On SBCL (I'm using 1.0.18.x), HOST-TO-HBO cannot work for string:
>
> * (usocket::host-to-hbo "localhost")
>
> debugger invoked on a SB-KERNEL:CASE-FAILURE:
>  #(127 0 0 1) fell through ETYPECASE expression.
>  Wanted one of (INTEGER (VECTOR T 4) STRING).
>
> Type HELP for debugger help, or (SB-EXT:QUIT) to exit from SBCL.
>
> restarts (invokable by number or by possibly-abbreviated name):
>  0: [ABORT] Exit debugger, returning to top level.
>
> This is because SBCL return #(127 0 0 1) as type (simple-array
> (unsigned-byte 8) (4)), it's not a subtype of (VECTOR T 4).
>
> An solution is add more type to the ETYPECASE of HOST-TO-HBO: (and
> HOST-TO-VECTOR-QUAD)

Thanks for the report! Committed just a second ago (finally!).

I'll backport it to 0.4.x and 0.3.x. When there's enough 0.3.x
material, I can do another release. However, I suppose you found this
issue because of your UDP work?

Regards,

Erik.



More information about the usocket-devel mailing list