[dss-developer] Segmentation fault

Dieter Beck beck.m2m at googlemail.com
Fri Feb 19 00:48:20 CET 2010


hi,

i have downloaded the new version of the dss today and built it.

Now i want to run it but always get an segmentation fault.


here is the output:

I would be very nice if anybody could help.

compiled WITH_TESTS
running tests
Test setup error: test tree is empty
done running tests
[2010-02-18 23:45:02][Info] Loading config
[2010-02-18 23:45:02][Info] No logfile configured, logging to stdout
[2010-02-18 23:45:02][Info] DSS starting up....
[2010-02-18 23:45:02][Info] DSS v0.8-dev
(git:69fc3dc667d782fafa45e6fb5a8b336f8969db28-dirty) (beck at A208-3)
[2010-02-18 23:45:02][Info] Configuration:
[2010-02-18 23:45:02][Info]   data:   '/usr/local/share/dss/data/'
[2010-02-18 23:45:02][Info]   config: '/usr/local/share/dss/data/'
[2010-02-18 23:45:02][Info]   webroot '/usr/local/share/dss/data/webroot/'
[2010-02-18 23:45:02][Debug] [Apartment] Logchannel created
[2010-02-18 23:45:02][Debug] [DS485Proxy] Logchannel created
[2010-02-18 23:45:02][Debug] [BusInterfaceHandler] Logchannel created
[2010-02-18 23:45:02][Debug] [WebServer] Logchannel created
[2010-02-18 23:45:02][Debug] [WebServer] Starting Webserver...
[2010-02-18 23:45:02][Debug] [WebServices] Logchannel created
[2010-02-18 23:45:02][Debug] [WebServices] Starting GSOAP services...
[2010-02-18 23:45:02][Debug] [DSSim] Logchannel created
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom: Found
device with id: example.js-device
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom:
adding script-file: data/simulated_device.js
[2010-02-18 23:45:02][Error] [DSSim] DSSim::createJSPluginFrom: cannot
find script file 'data/simulated_device.js', skipping device
example.js-device
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom: Found
device with id: example.temperature_sensor
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom:
adding script-file: data/temperature_sensor.js
[2010-02-18 23:45:02][Error] [DSSim] DSSim::createJSPluginFrom: cannot
find script file 'data/temperature_sensor.js', skipping device
example.temperature_sensor
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom: Found
device with id: example.slim_player
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom:
adding script-file: ../jslib/dsid.js
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom:
adding script-file: ../examples/plugins/js/slimplayer.js
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom: Found
device with id: example.vlc_player
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom:
adding script-file: ../jslib/dsid.js
[2010-02-18 23:45:02][Info] [DSSim] DSSim::createJSPluginFrom:
adding script-file: ../examples/plugins/js/vlc.js
[2010-02-18 23:45:02][Debug] [DSSim] Error loading plugins:
'boost::filesystem::basic_directory_iterator constructor: No such file
or directory: "/usr/local/share/dss/data/plugins"'
[2010-02-18 23:45:02][Debug] [DSSim] LoadZones: found zone (4)
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices: found device
[2010-02-18 23:45:02][Debug] Could not find creator for DSID type
'example.temperature_sensor'
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices:   it's a switch
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices: found device
[2010-02-18 23:45:02][Debug] [DSSim] LoadZones: found zone (1)
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices: found device
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices: found device
[2010-02-18 23:45:02][Debug] [DSSim] LoadGroups: Adding device 4 to
group 1 in zone 1
[2010-02-18 23:45:02][Debug] [DSSim] LoadGroups: Adding device 13 to
group 1 in zone 1
[2010-02-18 23:45:02][Debug] [DSSim] LoadZones: found zone (4)
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices:   it's a switch
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices: found device
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices: found device
[2010-02-18 23:45:02][Debug] [DSSim] LoadGroups: Adding device 5 to
group 1 in zone 4
[2010-02-18 23:45:02][Debug] [DSSim] LoadZones: found zone (172)
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices:   it's a switch
[2010-02-18 23:45:02][Debug] [DSSim] LoadDevices: found device
[2010-02-18 23:45:02][Debug] [EventInterpreter] Logchannel created
[2010-02-18 23:45:02][Debug] [Metering] Logchannel created
[2010-02-18 23:45:02][Debug] [FakeMeter] Logchannel created
[2010-02-18 23:45:02][Debug] creating thread for "Apartment"
[2010-02-18 23:45:02][Debug] creating thread for "DS485Controller"
[2010-02-18 23:45:02][Info] EventQueue: New event 'running' in queue...
[2010-02-18 23:45:02][Debug] creating thread for "BusInterfaceHandler"
[2010-02-18 23:45:02][Info] DS485Controller::execute: Opening
'/dev/ttyUSB0' as serial device
[2010-02-18 23:45:02][Error] serial
[2010-02-18 23:45:02][Fatal] Caught exception while opening serial
port: could not open port /dev/ttyUSB0
[2010-02-18 23:45:02][Info] DS485Controller::doStateChange: initial -> error
[2010-02-18 23:45:02][Debug] Destroying thread: DS485Controller
[2010-02-18 23:45:02][Error]
ModelPersistence::readConfigurationFromXML: Parse error in Model
configuration: /usr/local/share/dss/data/apartment.xml: No element
found in line 1 column 0
[2010-02-18 23:45:02][Info] EventQueue: New event 'config_read' in queue...
[2010-02-18 23:45:02][Info] [Apartment] Apartment::execute: Waiting
for interface to get ready
[2010-02-18 23:45:02][Info] EventQueue: New event 'interface_ready' in queue...
[2010-02-18 23:45:02][Info] [Apartment] Apartment::execute: Interface
is ready, enumerating model
[2010-02-18 23:45:02][Debug] [DS485Proxy] Sending packet to sim
[2010-02-18 23:45:02][Debug] [DS485Proxy] Frame content: (0x91, 145d)
to 0 as broadcast
[2010-02-18 23:45:02][Debug] [WebServer] Webserver: Listening on port(s) 8080s
[2010-02-18 23:45:02][Debug] [WebServer] Webserver: Configured
aliases: /=/usr/local/share/dss/data/webroot/
[2010-02-18 23:45:02][Info] [WebServer] Found plugins node, trying to
loading plugins
[2010-02-18 23:45:02][Info] WebServerPlugin::load(): Trying to load
"data/webplugins/webserver_plugin.so"
[2010-02-18 23:45:02][Error] WebServerPlugin::load(): Could not load
plugin "data/webplugins/webserver_plugin.so" message:
data/webplugins/webserver_plugin.so: cannot open shared object file:
No such file or directory
[2010-02-18 23:45:02][Debug] [WebServer] Registering
data/webplugins/webserver_plugin.so for URI '/test/*'
[2010-02-18 23:45:02][Info] [WebServer] Webserver started
[2010-02-18 23:45:02][Debug] creating thread for "WebServices"
[2010-02-18 23:45:02][Debug] creating thread for "EventInterpreter"
[2010-02-18 23:45:02][Debug] [BusInterfaceHandler] R
[2010-02-18 23:45:02][Debug] EventInterpreter: Loading subscriptions
from '/usr/local/share/dss/data/subscriptions.xml'
[2010-02-18 23:45:02][Debug] [BusInterfaceHandler] No bucket found for 70
Segmentation fault


Nice greatings


More information about the dss-developer mailing list