Bug #1648

error while rsb-loggercl0.10 parses rsb.conf

Added by C. Emmerich over 10 years ago. Updated over 10 years ago.

Status:ResolvedStart date:10/24/2013
Priority:HighDue date:
Assignee:J. Moringen% Done:

100%

Category:Common Lisp Tools
Target version:-

Description

The current implementation of rsb-loggercl0.10 seems to have a problem with rsb.config entries:

/vol/toolkit/nightly/x86_64/last/bin/rsb-loggercl0.10 --help

results in:
Unhandled SIMPLE-ERROR in thread #<SB-THREAD:THREAD "main thread" RUNNING
                                    {1007CBB9B3}>:
  Syntax error in line 28, contents
  "[plugins.cpp]                                                                                                           ".

Backtrace for: #<SB-THREAD:THREAD "main thread" RUNNING {1007CBB9B3}>
0: ((LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX))
1: (SB-IMPL::CALL-WITH-SANE-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {100826273B}>)
2: (SB-IMPL::%WITH-STANDARD-IO-SYNTAX #<CLOSURE (LAMBDA NIL :IN SB-DEBUG::FUNCALL-WITH-DEBUG-IO-SYNTAX) {100826270B}>)
3: (PRINT-BACKTRACE :STREAM #<SYNONYM-STREAM :SYMBOL SB-SYS:*STDERR* {10001EBFE3}> :START 0 :FROM :INTERRUPTED-FRAME :COUNT NIL :PRINT-THREAD T :PRINT-FRAME-SOURCE NIL :METHOD-FRAME-STYLE NIL)
4: (SB-DEBUG::DEBUGGER-DISABLED-HOOK #<SIMPLE-ERROR "~@<Syntax error in line ~D, contents ~S.~@:>" {100825F223}> #<unavailable argument>)
5: (SB-DEBUG::RUN-HOOK *INVOKE-DEBUGGER-HOOK* #<SIMPLE-ERROR "~@<Syntax error in line ~D, contents ~S.~@:>" {100825F223}>)
6: (INVOKE-DEBUGGER #<SIMPLE-ERROR "~@<Syntax error in line ~D, contents ~S.~@:>" {100825F223}>)
7: (ERROR "~@<Syntax error in line ~D, contents ~S.~@:>" 28 "[plugins.cpp]                                                                                                           ")
8: (RSB:OPTIONS-FROM-STREAM #<SB-SYS:FD-STREAM for "file /home/flexirob/.config/rsb.conf" {1008256B33}>)
9: (RSB:OPTIONS-FROM-DEFAULT-SOURCES :CONFIG-FILES NIL)
10: (RSB.TOOLS.LOGGER:MAIN)
11: ((FLET #:WITHOUT-INTERRUPTS-BODY-54 :IN SAVE-LISP-AND-DIE))
12: ((LABELS SB-IMPL::RESTART-LISP :IN SAVE-LISP-AND-DIE))

unhandled condition in --disable-debugger mode, quitting

The rsb.conf looks like:

[rsc.logging]
#rsc.plugins.level = TRACE
#rsb.converter.level = DEBUG

[transport.spread]
enabled=1
host=localhost
port=4803
converter.cpp.".rst.dynamics.Pressures" = rst::dynamics::Pressures
converter.cpp.".rst.geometry.Lengths" = rst::geometry::Lengths
converter.cpp.".rst.signalprocessing.InstantaneousPhase" = rst::signalprocessing::InstantaneousPhase

[transport.socket]
enabled=0
converter.cpp.".rst.dynamics.Pressures" = rst::dynamics::Pressures
converter.cpp.".rst.geometry.Lengths" = rst::geometry::Lengths
converter.cpp.".rst.signalprocessing.InstantaneousPhase" = rst::signalprocessing::InstantaneousPhase

[transport.inprocess]
enabled=0
converter.cpp.".rst.dynamics.Pressures" = rst::dynamics::Pressures
converter.cpp.".rst.geometry.Lengths" = rst::geometry::Lengths
converter.cpp.".rst.signalprocessing.InstantaneousPhase" = rst::signalprocessing::InstantaneousPhase

[plugins.cpp]                                                                                                           
load = rsbspread:rsbrstconvertersrci:rsbrstconverterssandbox        

Or is there a anything wrong with our rsb.conf?

Associated revisions

Revision 57da7fd9
Added by J. Moringen over 10 years ago

Fixed whitespace handling in options-from-stream in src/configuration.lisp

fixes #1648

  • src/configuration.lisp (options-from-stream): strip leading and
    trailing tabs and spaces from each line before processing it further;
    allow more than one "=" in a line, considering only the leftmost one

Revision dde6e1ad
Added by J. Moringen over 10 years ago

Backport: Fixed whitespace handling in options-from-stream in src/configuration.lisp

refs #1648

  • src/configuration.lisp (options-from-stream): strip leading and
    trailing tabs and spaces from each line before processing it further;
    allow more than one "=" in a line, considering only the leftmost one

History

#1 Updated by J. Moringen over 10 years ago

  • Category set to Common Lisp Tools

Probably a duplicate of #1483.

#2 Updated by J. Moringen over 10 years ago

No, it's not a duplicate.

#3 Updated by J. Moringen over 10 years ago

  • Status changed from New to In Progress

#4 Updated by J. Moringen over 10 years ago

  • Status changed from In Progress to Resolved
  • % Done changed from 0 to 100

Applied in changeset rsb-cl|commit:57da7fd917d757d7c635507b8d8b524879f306ff.

Also available in: Atom PDF