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 174098 - Project fails after Thread Analyzer
Summary: Project fails after Thread Analyzer
Status: RESOLVED INVALID
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@cnd
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-08 15:45 UTC by soldatov
Modified: 2009-10-09 23:06 UTC (History)
0 users

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 soldatov 2009-10-08 15:45:34 UTC
Project is attached to issue 174070 (http://www.netbeans.org/nonav/issues/showattachment.cgi/89092/races.tar.gz)
Platform - OpenSolaris (amkar)

Scenario:
- Open project
- Select "race2" configuration
- Run it
==> ok
- Stop project
- Launch Thread Analyzer tool
==> project started, but it fails after 3-4 seconds
- Run it again
==> project fails after 3-4 seconds

Workaround: restart IDE
Comment 1 Andrew Krasny 2009-10-08 16:34:50 UTC
This is not valid application. 
It is not true that it fails when started from within IDE only. Try to start it several times in console - you'll get
core as well. Run it several times from within IDE -> sometimes it will not generate core. 
The fact that we get this core more often while using IDE is because of some unlucky (or lucky) timing... 

Comment 2 Andrew Krasny 2009-10-08 16:40:19 UTC
FYI:

Here is the real reason - we are accessing array (3000 length) @ index 216000

=Andrew

tester@amkar:~$ dbx
/export/home/tester/NetBeansProjects/CppApplication_3/dist/test2/SunStudio-Solaris-x86/cppapplication_3 ./core
For information about new features see `help changes'
To remove this message, put `dbxenv suppress_startup_message 7.7' in your .dbxrc
Reading cppapplication_3
dbx: warning: core object name "cppapplication_" matches
object name "cppapplication_3" within the limit of 14. assuming they match
core file header read successfully
Reading ld.so.1
Reading libm.so.2
Reading libc.so.1
t@3 (l@3) terminated by signal SEGV (no mapping at the fault address)
Current function is is_prime
   22               pflag[v] = 0;
(dbx) whatis pflag
int pflag[3000];
(dbx) print v
v = 216000
(dbx) where
current thread: t@3
=>[1] is_prime(v = 216000), line 22 in "pthr_prime.c"
  [2] work(arg = 0x80479b0), line 38 in "pthr_prime.c"
  [3] _thrp_setup(0xfecc0a00), at 0xfeeecd56
  [4] _lwp_start(0x407d1000, 0x1d1, 0x2, 0x0, 0xfeb7efcc, 0x8050d8f), at 0xfeeecfe0
(dbx)

Comment 3 Quality Engineering 2009-10-09 23:06:55 UTC
Integrated into 'main-golden', will be available in build *200910091401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/507b8f6bfe30
User: Maria Tishkova <mromashova@netbeans.org>
Log: IZ#174098 Change icons in profile tools with the correct ones