This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 166811 - Gdb fails on Open Solaris when starts debugging C++ files
Summary: Gdb fails on Open Solaris when starts debugging C++ files
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All Solaris
: P4 blocker (vote)
Assignee: Susan Morgan
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-09 20:48 UTC by Alexander Pepin
Modified: 2009-09-15 16:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2009-06-09 20:48:59 UTC
It's not a gdb-lite issue! It's rather for release notes.
It's impossible to debug C++ projects on Open Solaris (111b) as GDB itself fails due to segmentation fault. At the same
time C programs can be debugged successfully. So it looks like an issue with C++ specific libraries. Probably the
problem caused by some libraries provided by SunStudio express installed on that machine as GDB works fine on
OpenSolaris build 101b.
Comment 1 soldatov 2009-06-10 17:09:43 UTC
I have same problem. I will investigate this problem. Now I found http://defect.opensolaris.org/bz/show_bug.cgi?id=2759
only.
Comment 2 soldatov 2009-06-11 09:16:32 UTC
#2759 or CR 6520604 is other bug. I think we have such problems on OpenSolaris:
OpenSolaris 2008.11 - gdb doesn't work in 64-bit mode
OpenSolaris 2009.06 - gdb doesn't work in 32-bit and 64-bit modes

Also I want to underline, CR 6520604 (Cannot debug 64-bit applications on Solaris x64 with /usr/sfw/bin/gdb) is filed on
Solaris 10 in 2007-02-02
Comment 3 soldatov 2009-06-11 11:22:24 UTC
OpenSolaris 2009.06 contains two gcc compilers. If you installed gcc-432, then gdb 6.3 will fail on all c++ appications

Workaround
delete these packages:
SUNWgcc432 (bug-8030)                         4.3.2-0.111     installed  ----
SUNWgccruntime432 (bug-8030)                  4.3.2-0.111     installed  ----
developer/gcc/gcc-432                         4.3.2-0.111     installed  ----
developer/gcc/gcc-dev-4                       0.5.11-0.111    installed  ----
developer/gcc/gcc-runtime-432                 4.3.2-0.111     installed  ----

install these packages:
SUNWgcc                                       3.4.3-0.111     installed  ----
SUNWgccruntime                                3.4.3-0.111     installed  ----
Comment 4 Alexander Pepin 2009-07-15 12:32:37 UTC
There is no sense to have this as P2 as we can do nothing with the native gcc/gdb problem
Comment 5 Leonid Lenyashin 2009-07-15 14:13:24 UTC
There is no sense in keeping it even as P4. We just need to document this issue and may be warn user about this issue.
Comment 6 Susan Morgan 2009-07-15 14:24:33 UTC
This issue and workaround is already in the release notes.
http://www.netbeans.org/community/releases/67/relnotes.html#known_issues-cnd
Comment 7 Susan Morgan 2009-09-15 16:06:54 UTC
Closing this, was documented in 6.7