Last Comment Bug 312013 - Sort out the Talkback Client issue on Intel Macs
: Sort out the Talkback Client issue on Intel Macs
: fixed1.8.0.2, fixed1.8.1
Product: Core Graveyard
Classification: Graveyard
Component: Talkback Client (show other bugs)
: Trunk
: PowerPC Mac OS X
: -- major (vote)
: ---
Assigned To: J. Paul Reed [:preed]
: chris hofmann
: 331280 (view as bug list)
Depends on:
  Show dependency treegraph
Reported: 2005-10-10 23:40 PDT by Mano (::mano, needinfo? for any questions; not reading general bugmail)
Modified: 2009-05-27 10:47 PDT (History)
15 users (show)
darin.moz: blocking1.8.1+
mozmail: blocking1.8.0.2+
See Also:
QA Whiteboard:
Iteration: ---
Points: ---

Josh's patch to disable talkback under Rosetta (1.05 KB, patch)
2006-03-24 12:56 PST, J. Paul Reed [:preed]
dbaron: review+
Details | Diff | Splinter Review
Josh's patch + additional includes (1.12 KB, patch)
2006-03-24 15:25 PST, J. Paul Reed [:preed]
no flags Details | Diff | Splinter Review

Description Mano (::mano, needinfo? for any questions; not reading general bugmail) 2005-10-10 23:40:52 PDT
Since we don't have its source code, mactel builds aren't going to have a
working talkback client.
Comment 1 Simon Fraser 2005-10-11 09:39:01 PDT
Talkback also seems to be unable to get a stack trace when tracing a PPC build
running on intel (under Rosetta).
Comment 2 Greg K. 2005-10-28 01:43:42 PDT
Dependant on Bug 216827?
Comment 3 Mano (::mano, needinfo? for any questions; not reading general bugmail) 2006-01-13 11:32:23 PST
<josh>	Mano: we have decided to ship Intel with no talkback
<josh> if possible we will enable talkback for PPC and include PPC-only talkback with the app
<josh> should be possible
<josh> if possible we will enable talkback for PPC and include PPC-only talkback with the app
Comment 4 Smokey Ardisson (offline for a while; not following bugs - do not email) 2006-01-16 21:46:07 PST
When sorting this out ;) it would be good to also fix bug 315616, bug 187107, bug 244672 (Camino's Talkback still calls the app "Mozilla"), and at least look at bug 295976 (which maybe can't be fixed at all)--not only for Intel but also for PPC.
Comment 5 Dave Liebreich [:davel] 2006-03-21 19:22:04 PST
*** Bug 331280 has been marked as a duplicate of this bug. ***
Comment 6 Dave Liebreich [:davel] 2006-03-21 19:24:53 PST
nominating for 1.8.0.[23] blocking, so we'll remember to discuss this in the release team meeting.

Right now, Firefox running under rosetta on an intel mac does not crash; instead, it hangs with spinning beachball.

steps to reproduce: start firefox, then send firefox-bin process SEGV signal
Comment 7 Mark Mentovai 2006-03-21 19:43:37 PST
I had initially written this as a comment to go along with duping 331280 to here, but davel managed to catch the dupe first.

From what I understand, you guys (Moz) do have something worked out to port Talkback internally, but this might not get any real traction until something like  bug 216827, where I'm also on the case.

Talkback under Rosetta will never work, period.  One easy thing I can recommend is checking to see if the app is running under Rosetta and NOT installing the signal handlers if it is.  I can't touch or look at Talkback source because I don't have a license, but this should be a simple change to make.  The Rosetta check is simple, here's an example:

#include <sys/sysctl.h>

int isNative = 0;
size_t sz = sizeof(isNative);
if (sysctlbyname("sysctl.proc_native", &isNative, &sz, NULL, 0) != 0 ||
    isNative) {
  // running natively (not translated)
  // if the sysctl failed, it doesn't exist, so the app must be running native
  // if the sysctl succeeded, check isNative
Comment 8 Dave Liebreich [:davel] 2006-03-22 20:52:43 PST
blocking1.8.0.2+ for drivers, as per email and irc discussions.  Josh is working on the patch to disable talkback if firefox is running under rosetta (on x86 mac).
Comment 9 Josh Aas 2006-03-22 22:31:11 PST
I have a patch, but I don't think I can post it publicly as it is against talkback glue code. I'm still testing it.
Comment 10 Dave Liebreich [:davel] 2006-03-22 23:12:19 PST
Hi Josh,

I'm confused - why did you revert this bug to blocking? from blocking+?  My understanding of the blocking flag is that it indicates we are holding the release for the resolution of this bug.

To all - What have we done with talkback patches in the past, if we could not post them in bugzilla open bugs?
Comment 11 Josh Aas 2006-03-22 23:18:32 PST
I didn't mean to revert the blocking flag - my browser must have messed it up when I reloaded the page to post my comment.
Comment 12 Dave Liebreich [:davel] 2006-03-23 07:19:31 PST
restoring blocking+ flag
Comment 13 Dave Liebreich [:davel] 2006-03-23 15:05:32 PST
removing blocking flag for 1802, as per schrep:

Josh has a patch for the TB binary - but it looks as if it has been some
time (many years) since we have rebuilt that binary.  Given the phase of the
schedule we are in, and the impact of this bug (i.e. hang when crash only
under Rosetta).  I recommend we release note it and tackle it next go
around.   I'd hate to add extra risk/work for build/qa at this phase.
Comment 14 Mark Mentovai 2006-03-24 07:46:41 PST
Josh said his patch was to nsQfaServices.cpp, the Moz component and not the Talkback binary proper.  The component is rebuilt with each and every release build:

(search for nsQfaServices.cpp)
Comment 15 J. Paul Reed [:preed] 2006-03-24 12:56:16 PST
Created attachment 216146 [details] [diff] [review]
Josh's patch to disable talkback under Rosetta

Josh's patch to stop Talkback from running under Rosetta; posting this for him, since he's on a plane today.
Comment 16 J. Paul Reed [:preed] 2006-03-24 14:13:57 PST
Doing a test build with this patch now.

Taking from Josh, since I'll be checking it in for 'im.
Comment 17 J. Paul Reed [:preed] 2006-03-24 15:25:51 PST
Created attachment 216161 [details] [diff] [review]
Josh's patch + additional includes

Josh said these includes are needed as well; verified by the test build.
Comment 18 J. Paul Reed [:preed] 2006-03-24 15:34:57 PST
Checked in (on the MOZILLA_1_8_0_BRANCH):

Checking in nsQfaServices.cpp;
/mofo/talkback/fullsoft/qfa/src/nsQfaServices.cpp,v  <--  nsQfaServices.cpp
new revision:; previous revision:

Leaving open, for Josh to resolve, in case he wanted to do anything else on this.
Comment 19 Mark Mentovai 2006-03-24 17:44:25 PST
Was this also checked in on the 1_8 branch and trunk?
Comment 20 J. Paul Reed [:preed] 2006-03-24 17:46:20 PST
(In reply to comment #19)
> Was this also checked in on the 1_8 branch and trunk?

No; I wanted to get a build with it for QA to test before porting it all over the tree.

It turns out that Dep builds don't rebuild the Talkback component (which isn't all that surprising... it changes what... once every couple of years?), so I had to do a full build, which is currently building:
Comment 21 Dave Liebreich [:davel] 2006-03-24 20:21:33 PST
Since I'm testing a candidate build that includes this fix and I want some canned bugzilla queries to include this bug, I've changed the blocking flags and added the fixed1.8.0.2 keyword.

I've tested this fix on an intel mac running native and running under rosetta, and sending SIGSEGV to the firefox-bin process.  In both cases, firefox exited cleanly.

I'm about to test this build on ppc macs, to make sure talkback fires and logs crash data to the server.
Comment 22 Dave Liebreich [:davel] 2006-03-24 21:01:12 PST
talkback fires and sends crash data when firefox is sent SIGSEGV on ppc mac running 10.4.5 and 10.3.9

See <> for talkback incidents.

We still need to test this on 10.2 for completeness, but I think the risk of breakage is low.
Comment 23 David Baron :dbaron: ⌚️UTC-10 2006-06-13 14:37:27 PDT
Has this been fixed for the 1.8 branch?  It has a blocking1.8.1? nomination, but no fixed1.8.1, so it's showing up on our queries.
Comment 24 Darin Fisher 2006-06-28 18:45:08 PDT
-> josh
Comment 25 Josh Aas 2006-06-28 19:28:28 PDT
I wrote the patch for this, but I didn't check it in and I don't know how we deal with the repository the patch got checked in to (was it branched with the 1.8 branch? where do the 1.8 branch tinderboxes get their talkback glue code from?).

-> preed since he's more likely to know if/how this made it onto the 1.8 branch
Comment 26 J. Paul Reed [:preed] 2006-07-05 13:11:03 PDT
v2 of the patch (Josh's patch + additional includes) now checked in on the 1.8 branch and the trunk.

Note You need to log in before you can comment on or make changes to this bug.