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.
QA will use this bug report in order to mark test failures as a "known failure". For example "main" function breakpoint doesn't work. Current test environment: OS: OS X 10.11.6 clang++: Apple LLVM version 8.0.0 (clang-800.0.42.1) gdb: GNU gdb (GDB) 7.11 ================================================================================================== $ sudo gdb ./Quote_2/dist/Debug/CLang-MacOSX/quote_2 GNU gdb (GDB) 7.11 ........ Reading symbols from ./Quote_2/dist/Debug/CLang-MacOSX/quote_2...done. (gdb) b main Breakpoint 1 at 0x100003544: main. (2 locations) (gdb) info breakpoints Num Type Disp Enb Address What 1 breakpoint keep y <MULTIPLE> 1.1 y 0x0000000100003544 in operator<<(std::__1::basic_ostream<char, std::__1::char_traits<char> >&, Module const&) at module.cc:126 1.2 y 0x000000010000368d in std::__1::endl<char, std::__1::char_traits<char> >(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:1035 ================================================================================================== $ sudo lldb ./Quote_2/dist/Debug/CLang-MacOSX/quote_2 (lldb) target create "./Quote_2/dist/Debug/CLang-MacOSX/quote_2" Current executable set to './Quote_2/dist/Debug/CLang-MacOSX/quote_2' (x86_64). (lldb) b main Breakpoint 1: where = quote_2`main + 48 at quote.cc:119, address = 0x00000001000036c0 (lldb) r Process 68104 launched: './Quote_2/dist/Debug/CLang-MacOSX/quote_2' (x86_64) Process 68104 stopped * thread #1: tid = 0xd420ca, 0x00000001000036c0 quote_2`main(argc=1, argv=0x00007fff5fbffcf0) + 48 at quote.cc:119, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1 frame #0: 0x00000001000036c0 quote_2`main(argc=1, argv=0x00007fff5fbffcf0) + 48 at quote.cc:119 116 } // End of local namespace 117 118 int main(int argc, char** argv) { -> 119 cout << "Support metric quote program" << endl << endl; 120 121 fetchCustomersList(); 122 (lldb) ==================================================================================================
Other problem: $ sudo gdb ./Quote_2/dist/Debug/CLang-MacOSX/quote_2 GNU gdb (GDB) 7.11 ................... Reading symbols from ./Quote_2/dist/Debug/CLang-MacOSX/quote_2...done. (gdb) b quote.cc:119 Breakpoint 1 at 0x100003560: file quote.cc, line 119. (gdb) r Starting program: /Users/tester/NetBeansProjects/Quote_2/dist/Debug/CLang-MacOSX/quote_2 Breakpoint 1, std::__1::operator<< <std::__1::char_traits<char> > (__os=..., __str= 0x100009909 <std::__1::__pad_and_output<char, std::__1::char_traits<char> >(std::__1::ostreambuf_iterator<char, std::__1::char_traits<char> >, char const*, char const*, char const*, std::__1::ios_base&, char)+1481> "Support metric quote program") at /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/ostream:894 894 return _VSTD::__put_character_sequence(__os, __str, _Traits::length(__str)); (gdb) c Continuing. Program received signal SIGSEGV, Segmentation fault. 0x00007fff82d5797e in std::__1::basic_ostream<char, std::__1::char_traits<char> >::sentry::sentry(std::__1::basic_ostream<char, std::__1::char_traits<char> >&) () from /usr/lib/libc++.1.dylib