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 194701 - Warn if binary was compiled with the different toolchain
Summary: Warn if binary was compiled with the different toolchain
Status: NEW
Alias: None
Product: cnd
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 7.0
Hardware: PC Other
: P3 normal (vote)
Assignee: Maria Tishkova
URL:
Keywords: PERFORMANCE
: 205817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-01-25 17:31 UTC by Alexander Pepin
Modified: 2016-07-06 14:39 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Pepin 2011-01-25 17:31:43 UTC
If by mistake the code compiled with OSS compilers then debugger fails with a Debugger Error window containing such message "Dwarf Error: Cannot find type of die [in module <path_to executable>]". It would be better if a user was informed about inappropriate compilers. 

gdb console shows:

~"GNU gdb 6.6\n"
~"Copyright (C) 2006 Free Software Foundation, Inc.\n"
~"GDB is free software, covered by the GNU General Public License, and you are\n"
~"welcome to change it and/or distribute copies of it under certain conditions.\n"
~"Type \"show copying\" to see the conditions.\n"
~"There is absolutely no warranty for GDB.  Type \"show warranty\" for details.\n"
~"This GDB was configured as \"i386-pc-solaris2.10\".\n"
&"C:\\Users\\ap153252/.gdbinit: No such file or directory.\n"
(gdb) 
2-gdb-set print repeat 0
3-gdb-set backtrace limit 1024
4-file-exec-and-symbols  "/export/home/tester/.netbeans/remote/vvv-qa/asus_laptop-Windows-x86_64/C/Users/ap153252/Documents/NetBeansProjects/Quote_9/dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9"
2^done
(gdb) 
3^done
(gdb) 
4^done
(gdb) 
5-file-list-exec-source-file
&"Die: DW_TAG_<unknown> (abbrev = 16, offset = 375768)\n"
6cd /export/home/tester/.netbeans/remote/vvv-qa/asus_laptop-Windows-x86_64/C/Users/ap153252/Documents/NetBeansProjects/Quote_9
7-exec-arguments 
&"\thas children: TRUE\n"
8-break-insert -t main
9-exec-run
10info proc
&"\tattributes:\n"
&"\t\tDW_AT_name (DW_FORM_string) string: \"basic_istream\"\n"
&"\t\tDW_AT_<unknown> (DW_FORM_string) string: \"nNbasic_istream3CTACTB_\"\n"
&"\t\tDW_AT_decl_file (DW_FORM_data1) constant: 26\n"
&"\t\tDW_AT_decl_line (DW_FORM_data1) constant: 50\n"
&"Dwarf Error: Cannot find type of die [in module /export/home/tester/.netbeans/remote/vvv-qa/asus_laptop-Windows-x86_64/C/Users/ap153252/Documents/NetBeansProjects/Quote_9/dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9]\n"
5^error,msg="Dwarf Error: Cannot find type of die [in module /export/home/tester/.netbeans/remote/vvv-qa/asus_laptop-Windows-x86_64/C/Users/ap153252/Documents/NetBeansProjects/Quote_9/dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9]"
(gdb) 
&"cd /export/home/tester/.netbeans/remote/vvv-qa/asus_laptop-Windows-x86_64/C/Users/ap153252/Documents/NetBeansProjects/Quote_9\n"
~"Working directory /export/home/tester/.netbeans/remote/vvv-qa/asus_laptop-Windows-x86_64/C/Users/ap153252/Documents/NetBeansProjects/Quote_9.\n"
6^done
(gdb) 
7^done
(gdb) 
&"Die: DW_TAG_<unknown> (abbrev = 16, offset = 375768)\n"
&"\thas children: TRUE\n"
&"\tattributes:\n"
&"\t\tDW_AT_name (DW_FORM_string) string: \"basic_istream\"\n"
&"\t\tDW_AT_<unknown> (DW_FORM_string) string: \"nNbasic_istream3CTACTB_\"\n"
&"\t\tDW_AT_decl_file (DW_FORM_data1) constant: 26\n"
&"\t\tDW_AT_decl_line (DW_FORM_data1) constant: 50\n"
&"Dwarf Error: Cannot find type of die [in module /export/home/tester/.netbeans/remote/vvv-qa/asus_laptop-Windows-x86_64/C/Users/ap153252/Documents/NetBeansProjects/Quote_9/dist/Debug/OracleSolarisStudio-Solaris-x86/quote_9]\n"
8^done
(gdb) 
9^running
(gdb) 
&"warning: Temporarily disabling breakpoints for unloaded shared library \"/usr/lib/ld.so.1\"\n"
Comment 1 Alexander Pepin 2011-01-26 10:47:47 UTC
When the wrong debug session is finished the process on the remote host stays alive and eats 100% CPU.
Comment 2 Egor Ushakov 2011-01-27 14:45:16 UTC
there are two issues here:
1. gdb until 7.1 had a bug and did not kill inferior application when gdb itself was killed (solution - use gdb 7.1 and later)
2. quote application is written the way that it enters infinite loop when streams are closed (fixed in: http://hg.netbeans.org/cnd-main/rev/a2c6a8df8e73)

I believe it is still valuable to warn user that gdb will not work with Studio compiled binaries.
Comment 3 Egor Ushakov 2011-12-02 10:16:40 UTC
*** Bug 205817 has been marked as a duplicate of this bug. ***