Bug 44714

Summary: Crashes on encountering messages with file handles in them.
Product: Bustle Reporter: Will Thompson <will>
Component: GeneralAssignee: Will Thompson <will>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: danielle
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

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.