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 200322

Summary: OS X 10.7: Kernel Panic: "Negative open count?" spec_vnops.c
Product: cnd Reporter: akae
Component: TerminalemulatorAssignee: Andrew Krasny <akrasny>
Status: RESOLVED INCOMPLETE    
Severity: normal CC: apepin, Dulci88, mmirilovic, pjiricka
Priority: P2    
Version: 7.0.1   
Hardware: Macintosh (x86)   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:
Attachments: Mac OS X Panic Report

Description akae 2011-07-22 21:13:37 UTC
After upgrading to Mac OS X 10.7 "Lion" I've encountered several kernel panics when working on C++ projects. Building seems to work fine, but approximately 1 of 10 runs results in a system crash (even with very small projects). This is true for both the 7.0 release and the 7.1 release candidate. The Mac OS X kernel panic report is attached to this bug.

The problem mentioned here looks very similar: http://comments.gmane.org/gmane.comp.terminal-emulators.tmux.user/1852 . That's why I've chosen the Terminal emulation category. But this assumption might be wrong.

I've classified this bug P1 as it seems to be a real showstopper for C/C++ development with netbeans on Mac OS X.

I don't know what additional diagnostic information might be of interest, but I'd be happy to provide them.
Comment 1 akae 2011-07-22 21:25:50 UTC
Created attachment 109581 [details]
Mac OS X Panic Report
Comment 2 soldatov 2011-07-23 10:17:14 UTC
Why you think your link better than https://discussions.apple.com/message/15703026#15703026 (kernel panic every shutdown?
Comment 3 akae 2011-07-23 14:25:09 UTC
I was not aware of your link. Looks similar, although I've never encountered this issue during system shutdown.
Comment 4 Alexander Pepin 2011-07-25 14:28:35 UTC
Mac OS X 10.7 "Lion" is not a supported platform for 7.0.1 release.
As a workaround user can try to use an external terminal (need to choose it in project properties).
Comment 5 Andrew Krasny 2011-10-12 12:26:35 UTC
Looks like the same problem is reported here:
http://lists.apple.com/archives/java-dev/2011/Aug/msg00017.html

But this time user says that this happens after many hours of work... 

Here:
http://netbeans-org.1045718.n5.nabble.com/Lion-panic-in-NetBeans-7-0-7-0-1-td4675008.html
user experiences the same problem with NB, but this has nothing to do with CND...
And finally it turned out that the problem was caused by an application called Little Snitch... 

Quote:
Not surprisingly, this was not a NetBeans or Maven or Java problem, although it showed up in NetBeans. I use an application called Little Snitch, which monitors network addresses called from your machine. This was causing kernel panics in Lion (but has now been fixed). Presumably, NetBeans or Maven was triggering something in Little Snitch.
Comment 6 akae 2011-10-14 17:24:36 UTC
Well this problem is definitely not related to Little Snitch. This software was never installed on my system. I've used Alexander Pepin's workaround since reporting this problem back in July and haven't encountered a single kernel panic ever since. But it came back immediately after switching back to the default settings a few minutes ago.

I don't care whether it is a Netbeans or a kernel bug, but this issue is not resolved and in my view it's a major show stopper for C/C++ development with Netbeans Mac OS X.
Comment 7 Marian Mirilovic 2012-05-27 14:58:36 UTC
*** Bug 213041 has been marked as a duplicate of this bug. ***
Comment 8 akae 2012-05-27 15:33:52 UTC
This problem still persists and was NEVER solved (as you can see in Bug 213041). Marking new bugs as a duplicate of this, which was misleadingly marked as SOLVED, will definitely not fix the problem.


My current Configuration is:

Product Version: NetBeans IDE 7.1.2 (Build 201204101705)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
System: Mac OS X version 10.7.4 running on x86_64; MacRoman; en_US (nb)
User directory: /Users/ak/.netbeans/7.1.2
Cache directory: /Users/ak/.netbeans/7.1.2/var/cache
Comment 9 Andrew Krasny 2012-05-29 16:31:34 UTC
akae, Dulci88

I cannot reproduce this problem on MacMini with the same versions of MacOS/jdk ;(

What kind of project you are working on? Does executable produce intensive I/O? Or intensively uses cpu?  What FileSystem you are on? Is it local or remote run? 

Could you, also try this in Terminal:

$ cd ${NB}/ide/bin/nativeexecution/MacOSX_64/
$ while ( true ); do ./pty ls; done

Will this trigger a panic? And what if run your application instead of ls?

But in any case.. this is OS problem and likely cannot be fixed on our side (we can change defaults for MacOS though... )
Comment 10 Dulci88 2012-05-30 17:46:49 UTC
     What kind of project you are working on? Does executable produce intensive I/O?

Yes my program produce intensive I/O because I print on screen a lot of number to debug the program.

     Or intensively uses cpu?  What FileSystem you are on? Is it local or remote
run? 
     I don't think is a problem of intensively use of cpu. I write program that resolve alghoritms problem on number or charachter. The program use the fstream library but I think that the problem is when I add more cout in my code.

Can you help me to see what FileSystem I'm on? I think it's run in local. 
Do you think that I've to run netbeans on virtualmachine?

  Could you, also try this in Terminal:

  $ cd ${NB}/ide/bin/nativeexecution/MacOSX_64/
  $ while ( true ); do ./pty ls; done

Can you tell me what is {NB}. I try tu run this in terminal but i don't find the commanda $S

  Will this trigger a panic? And what if run your application instead of ls?
  But in any case.. this is OS problem and likely cannot be fixed on our  
  side (we can change defaults for MacOS though... )

Excuse me for my English. I'm from Italy. 

Thank you very much. 

Write soon.
Comment 11 akae 2012-05-30 18:07:35 UTC
> What kind of project you are working on? Does executable produce intensive I/O?
Or intensively uses cpu?  What FileSystem you are on? Is it local or remote
run? 

Definitely no intensive I/O in my project. It's sufficient to create a one-line 'HelloWorld' application (new project) to reproduce the problem. Everything is local on a 'Mac OS Extended (Journaled)' (HFS+) filesystem.

> Could you, also try this in Terminal:
> 
> $ cd ${NB}/ide/bin/nativeexecution/MacOSX_64/
> $ while ( true ); do ./pty ls; done

> Will this trigger a panic? And what if run your application instead of ls?

My computer did not crash so far while running these tests. I'll continue running these tests from time to time an let you know if it ever crashes. Netbeans usually crashes in about 1 out of 10 runs of the 'HelloWorld' application mentioned above.

To Dulci88:
${NB} needs to be substituted with the location where your Netbeans installation resides. If you haven't changed the default location the command to enter most likely is:

cd /Applications/NetBeans/NetBeans\ 7.1.2.app/Contents/Resources/NetBeans/ide/bin/nativeexecution/MacOSX-x86_64/

This is one single command and needs to be entered without any new line characters.
Comment 12 Dulci88 2012-05-30 18:18:34 UTC
thank you very much akae.

 I've tried the command. But that's not reproduce the kernel panic.

I think that my fileSystem is the same of akae:
   Mac OS Extended (Journaled)' (HFS+) filesystem.
Comment 13 marthasimons2 2018-11-07 07:44:30 UTC
thanks for help? now worked on my Mac
I do not know, but on the contrary, an operating system update helped me

---
#200322 https://goo.gl/nMnd46