Bug 44714 - Crashes on encountering messages with file handles in them.
Summary: Crashes on encountering messages with file handles in them.
Status: RESOLVED FIXED
Alias: None
Product: Bustle
Classification: Unclassified
Component: General (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Will Thompson
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-12 02:05 UTC by Will Thompson
Modified: 2012-01-12 03:07 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Will Thompson 2012-01-12 02:05:44 UTC
danni | wjt: [danni@mendiculus ~]$ ~/src/install/bin/bustle call.bustle 
 danni | bustle: "UnmarshalError \"Invalid signature: \\\"h\\\"\""
 danni | :(

There are really two issues here. The first is that bustle-pcap, which uses GDBus, understands file handles (and hence puts messages containing them into the logs); whereas Bustle itself, which uses dbus-core, does not.

The second is:

  readPcap :: FilePath -> IO (Either IOError [B.DetailedMessage])
  readPcap path = try $ do
      p <- openOffline path
  
      ret <- evalStateT (mapBodies p convert) Map.empty
      -- FIXME: make the error handling less shoddy
      case ret of
          Left e -> error $ show e
          Right xs -> return xs

so Bustle just crashes rather than showing any kind of meaningful diagnostic and recovering.
Comment 1 Will Thompson 2012-01-12 03:07:04 UTC
Fixed in git for 0.3.2. http://cgit.freedesktop.org/bustle/commit/?id=6e4ae56ebdbc6c02e21586fd9360a3a049072d13


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.