[DRE-maint] Bug#596351: ohai fails with: to_json: source sequence is illegal/malformed

Michael Schutte michi at uiae.at
Sat Sep 18 14:10:11 UTC 2010


Hi Christopher,

On Fri, Sep 10, 2010 at 06:00:35PM +0200, Christopher Huhn, GSI wrote:
> Simply running ohai fails on my box with the following error:
> 
> /usr/lib/ruby/1.8/json/common.rb:232:in `to_json': source sequence is illegal/malformed (JSON::GeneratorError)
>         from /usr/lib/ruby/1.8/json/common.rb:232:in `pretty_generate'
>         from /usr/lib/ruby/1.8/ohai/system.rb:222:in `json_pretty_print'
>         from /usr/lib/ruby/1.8/ohai/application.rb:104:in `run_application'
>         from /usr/lib/ruby/1.8/ohai/application.rb:75:in `run'
>         from /usr/bin/ohai:47

I notice you are using an 8-bit charset; perhaps there is some non-UTF-8
data that might upset the JSON library.  May I ask you the problem is
still present when you run “LANG=C LC_ALL=C ohai”?

I guess the results of “ohai -ldebug” could also be useful to diagnose
the issue.

Cheers,
-- 
Michael Schutte <michi at uiae.at>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 490 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20100918/66fd1f34/attachment.pgp>


More information about the Pkg-ruby-extras-maintainers mailing list