After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 473559 - On Solaris use "pstack" to get trace information if gdb is not available.
On Solaris use "pstack" to get trace information if gdb is not available.
Status: RESOLVED WONTFIX
Product: bug-buddy
Classification: Deprecated
Component: general
unspecified
Other Solaris
: Normal enhancement
: 2.26
Assigned To: Bug-buddy Maintainers
Bug-buddy Maintainers
Depends on:
Blocks:
 
 
Reported: 2007-09-04 13:10 UTC by Matt Keenan (IRC:MattMan)
Modified: 2010-08-14 02:37 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Use pstack (4.24 KB, patch)
2007-09-04 13:11 UTC, Matt Keenan (IRC:MattMan)
reviewed Details | Review
Patch combining 473561 and 473559 (9.25 KB, patch)
2008-09-01 15:27 UTC, Matt Keenan (IRC:MattMan)
none Details | Review
re-vised patch (8.49 KB, patch)
2008-09-01 15:31 UTC, Matt Keenan (IRC:MattMan)
reviewed Details | Review

Description Matt Keenan (IRC:MattMan) 2007-09-04 13:10:32 UTC
On solaris, gdb is not always installed/available by default, however pstack
is always available. This is a feature request to use pstack in these 
situations.
Comment 1 Matt Keenan (IRC:MattMan) 2007-09-04 13:11:24 UTC
Created attachment 94922 [details] [review]
Use pstack

Patch to use pstack on solaris if gdb is not available.
Comment 2 André Klapper 2008-08-30 23:52:31 UTC
I'd love to get more comments on this patch and approach, hence CC'ing Brian who attended the Bugsquad BoF at GUADEC and Cosimo who is becoming more and more the defacto maintainer of this unmaintained piece of software named bug-buddy... :-)
Comment 3 Cosimo Cecchi 2008-08-31 00:42:41 UTC
The patch itself, apart from some few coding style nitpicks, looks mostly fine to me.

Some comments on the approach:
- googling around I found it seems that Solaris always ships a debugger called "adb", but I don't know if the information I found is up-to-date. Maybe here someone from Sun can help us; I want to make sure that pstack is really and widely installed in Solaris.
- using pstack or other debuggers if gdb isn't found can be a good idea for Linux as well, so I would remove the Solaris #ifdefs from the patch.

Anyway, I'd like to test it (better if on a Solaris installation) before committing it but I don't know if I'll be able to do this in time for 2.24 as we are already late in this cycle.
Comment 4 Brian Nitz 2008-08-31 20:26:38 UTC
Cosimo,
adb is a very old debugger.  mdb replaced it in Solaris 8 and you probably won't find anyone but dedicated retro hackers attempting to run a modern GNOME on anything before Solaris 10 so it would be safe to use mdb.  But pstack is really the better option for this because it's a simple command line utility which gives you exactly what you want in a remote bug logging system with very little overhead.

Andre,
Thanks for the comment.  I talked to someone on the firefox team about their system where a crash log server fills in details of clients which don't have the source packages.  But it would be much easier to rely on gdb/pstack and make sure the dists have the appropriate source packages.

One thing I would like to do is provide a better way of tagging OS+Dist+Release+Arch in the bugs that bug-buddy automatically logs to make it easier for the dist provider (e.g. me) to triage bugs which they can easily reproduce in their environment.  
Comment 5 Matt Keenan (IRC:MattMan) 2008-09-01 15:27:18 UTC
Created attachment 117778 [details] [review]
Patch combining 473561 and 473559 

Re-generated patch for latest bug-buddy trunk. I've also added patching of 
gnome-breakpad.cc taken from bug 473561, so this bug can record the complete
functionality for enabling pstack usage within bug-buddy for solaris users who
don't have gdb installed.
Comment 6 Matt Keenan (IRC:MattMan) 2008-09-01 15:31:52 UTC
Created attachment 117780 [details] [review]
re-vised patch
Comment 7 Cosimo Cecchi 2008-09-03 00:23:05 UTC
Matt, thanks for the updated patch.
The patch looks mostly fine to me, apart from some style nitpicks.
I am planning to test the patch and commit it to trunk after branching for gnome-2-24, as we're late for new features in this cycle.
Comment 8 Matt Keenan (IRC:MattMan) 2008-09-03 08:32:20 UTC
Thanks Cosimo, let me know if there's anything else I can do.
Comment 9 Fernando Herrera 2010-08-14 02:37:02 UTC
In light of Oracle's decision to discontinue OpenSolaris and focus on Solaris
11, we are closing this bug as WONTFIX -- for lack of a CANTFIX resolution.

If this problem is still reproducible, the reporter is advised to resolve it
downstream.