[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wireshark-bugs
Subject:    [Wireshark-bugs] [Bug 12582] (Qt5) app menus won't pull down
From:       bugzilla-daemon () wireshark ! org
Date:       2016-07-31 18:29:52
Message-ID: bug-12582-15-39cUiZbD12 () https ! bugs ! wireshark ! org/bugzilla/
[Download RAW message or body]

--1469989798.7Cf42.3087
Date: Sun, 31 Jul 2016 18:29:58 +0000
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id582

--- Comment #5 from Gerald Combs <gerald@wireshark.org> ---
If I copy the "open" command to /tmp (so as to avoid System Integrity
Protection) and run

    sudo dtruss -s /tmp/open run/Wireshark.app

It looks like "open" uses Launch Services to open the application bundle
instead of simply forking+execing Wireshark.app/Contents/MacOS/Wireshark:

workq_kernreturn(0x20, 0x0, 0x1)         = 0 0

              libsystem_kernel.dylib`__workq_kernreturn+0xa
              libdispatch.dylib`_dispatch_queue_wakeup_global_slow+0x3c
              libdispatch.dylib`_dispatch_queue_wakeup_with_qos_slow+0x7e
              libxpc.dylib`xpc_connection_resume+0x98
              SharedFileList`-[SFLListManager _connection]+0x1d8
              SharedFileList`__37-[SFLListManager
listWithIdentifier:]_block_invoke+0x175
              libdispatch.dylib`_dispatch_client_callout+0x8
              libdispatch.dylib`_dispatch_barrier_sync_f_invoke+0x4a
              SharedFileList`-[SFLListManager listWithIdentifier:]+0x108
              SharedFileList`LSSharedFileListCreate+0xf7
              LaunchServices`_LSGetRecentItemsSharedList(short, unsigned
int**)+0x57
              LaunchServices`_LSGetRecentItemCount+0x19
              LaunchServices`_LSOpenItemsWithHandler_CFDictionaryApplier(void
const*, void const*, void*)+0x1748
              CoreFoundation`__CFDictionaryApplyFunction_block_invoke+0x16
              CoreFoundation`CFBasicHashApply+0x80
              CoreFoundation`CFDictionaryApplyFunction+0xba
              LaunchServices`_LSOpenStuffCallLocal+0x163c
              LaunchServices`_LSOpenStuff+0x7e
              LaunchServices`_LSOpenURLsWithRole_Common(__CFArray const*,
unsigned int, AEKeyDesc const*, LSApplicationParameters_V1 const*,
ProcessSerialNumber*, long, __CFURL const**)+0x183
              LaunchServices`LSOpenURLsWithRole+0x20

It would be nice to know what LSOpenURLsWithRole does that fork+exec doesn't.

--
You are receiving this mail because:
You are watching all bug changes.

--1469989798.7Cf42.3087
Date: Sun, 31 Jul 2016 18:29:58 +0000
MIME-Version: 1.0
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<html>
    <head>
      <base href="https://bugs.wireshark.org/bugzilla/" />
      <style>
        body, th, td {
            font-size: 12px;
            font-family: Arial, Helvetica, sans-serif; }
        p, pre { margin-top: 1em; }
        pre {
            font-family: Bitstream Vera Sans Mono, Consolas, Lucida Console, \
monospace;  white-space: pre-wrap;
	}
        table { border: 0; border-spacing: 0; border-collapse: collapse; }
        th, td {
            padding: 0.25em;
            padding-left: 0.5em;
            padding-right: 0.5em;
        }
        th { background: rgb(240, 240, 240); }
        th.th_top { border-bottom: 1px solid rgb(116, 126, 147); }
        th.th_left { border-right: 1px solid rgb(116, 126, 147); }
        td.removed { background-color: #ffcccc; }
        td.added { background-color: #e4ffc7; }
      </style>
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - (Qt5) app menus won't pull down"
   href="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=12582#c5">Comment # \
5</a>  on <a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - (Qt5) app menus won't pull down"
   href="https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=12582">bug 12582</a>
              from <span class="vcard"><a class="email" \
href="mailto:gerald&#64;wireshark.org" title="Gerald Combs \
&lt;gerald&#64;wireshark.org&gt;"> <span class="fn">Gerald Combs</span></a> \
                </span></b>
        <pre>If I copy the &quot;open&quot; command to /tmp (so as to avoid System \
Integrity Protection) and run

    sudo dtruss -s /tmp/open run/Wireshark.app

It looks like &quot;open&quot; uses Launch Services to open the application bundle
instead of simply forking+execing Wireshark.app/Contents/MacOS/Wireshark:

workq_kernreturn(0x20, 0x0, 0x1)         = 0 0

              libsystem_kernel.dylib`__workq_kernreturn+0xa
              libdispatch.dylib`_dispatch_queue_wakeup_global_slow+0x3c
              libdispatch.dylib`_dispatch_queue_wakeup_with_qos_slow+0x7e
              libxpc.dylib`xpc_connection_resume+0x98
              SharedFileList`-[SFLListManager _connection]+0x1d8
              SharedFileList`__37-[SFLListManager
listWithIdentifier:]_block_invoke+0x175
              libdispatch.dylib`_dispatch_client_callout+0x8
              libdispatch.dylib`_dispatch_barrier_sync_f_invoke+0x4a
              SharedFileList`-[SFLListManager listWithIdentifier:]+0x108
              SharedFileList`LSSharedFileListCreate+0xf7
              LaunchServices`_LSGetRecentItemsSharedList(short, unsigned
int**)+0x57
              LaunchServices`_LSGetRecentItemCount+0x19
              LaunchServices`_LSOpenItemsWithHandler_CFDictionaryApplier(void
const*, void const*, void*)+0x1748
              CoreFoundation`__CFDictionaryApplyFunction_block_invoke+0x16
              CoreFoundation`CFBasicHashApply+0x80
              CoreFoundation`CFDictionaryApplyFunction+0xba
              LaunchServices`_LSOpenStuffCallLocal+0x163c
              LaunchServices`_LSOpenStuff+0x7e
              LaunchServices`_LSOpenURLsWithRole_Common(__CFArray const*,
unsigned int, AEKeyDesc const*, LSApplicationParameters_V1 const*,
ProcessSerialNumber*, long, __CFURL const**)+0x183
              LaunchServices`LSOpenURLsWithRole+0x20

It would be nice to know what LSOpenURLsWithRole does that fork+exec doesn't.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>

--1469989798.7Cf42.3087--



___________________________________________________________________________
Sent via:    Wireshark-bugs mailing list <wireshark-bugs@wireshark.org>
Archives:    https://www.wireshark.org/lists/wireshark-bugs
Unsubscribe: https://wireshark.org/mailman/options/wireshark-bugs
             mailto:wireshark-bugs-request@wireshark.org?subject=unsubscribe

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic