home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / gnu / gdb / bug / 879 < prev    next >
Encoding:
Text File  |  1992-07-23  |  3.6 KB  |  95 lines

  1. Newsgroups: gnu.gdb.bug
  2. Path: sparky!uunet!cis.ohio-state.edu!foxtrot.ccmrc.ucsb.edu!doug
  3. From: doug@foxtrot.ccmrc.ucsb.edu (Douglas Scott)
  4. Subject: Segv in gdb 4.6 on Sun 4/330
  5. Message-ID: <9207201746.AA12853@foxtrot.ccmrc.ucsb.edu>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Mon, 20 Jul 1992 17:46:05 GMT
  10. Approved: bug-gdb@prep.ai.mit.edu
  11. Lines: 82
  12.  
  13. System:  Sun 4/330 running SunOS 4.1
  14. Compiler:  gcc/g++ 2.2.2
  15. Gdb Version: 4.6 with patch for gcc, compiled with native Sun compiler
  16. Code being debugged:  C++ code compiled -ggdb, no optimization
  17.  
  18. Transcript of session:
  19.  
  20. tango> gdb ./gdb
  21. GDB is free software and you are welcome to distribute copies of it
  22.  under certain conditions; type "show copying" to see the conditions.
  23. There is absolutely no warranty for GDB; type "show warranty" for details.
  24. GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
  25. Setting up the environment for debugging gdb.
  26. During symbol reading, bad block start address patched.
  27. Breakpoint 1 at 0x3a1d8: file utils.c, line 279.
  28. Breakpoint 2 at 0x4a54: file main.c, line 1658.
  29. (top-gdb) cd /home/doug/C++
  30. Working directory /home/doug/C++.
  31. (top-gdb) run mxv
  32. Starting program: /usr/local/bin/gdb mxv
  33. GDB is free software and you are welcome to distribute copies of it
  34.  under certain conditions; type "show copying" to see the conditions.
  35. There is absolutely no warranty for GDB; type "show warranty" for details.
  36. GDB 4.6, Copyright 1992 Free Software Foundation, Inc...
  37. (gdb) break proc_request.c:69
  38. Breakpoint 1 at 0x58b40: file ./proc_request.c, line 69.
  39. (gdb) run test.snd
  40. Starting program: /home/doug/C++/mxv test.snd
  41.  
  42. Breakpoint 1, SingleFactorFunction::queryForParameters (this=0xf7fff2b0, 
  43.  
  44.     c=0x141ac8) at ./proc_request.c:69
  45. 69                      setFactor(v.doubleValue());
  46. Warning: the current language does not match this frame.
  47. (gdb) print v.doubleValue()
  48.  
  49. Program received signal 11, Segmentation fault
  50. During symbol reading, bad block start address patched.
  51. 0x13fc0 in value_primitive_field (arg1=0x4a5c48, offset=0, fieldno=0, 
  52.  
  53.     arg_type=0x3fd0a8) at values.c:856
  54. 856       type = TYPE_FIELD_TYPE (arg_type, fieldno);
  55. (top-gdb) bt
  56. #0  0x13fc0 in value_primitive_field (arg1=0x4a5c48, offset=0, fieldno=0, 
  57.  
  58.     arg_type=0x3fd0a8) at values.c:856
  59. #1  0x14170 in value_field (arg1=0x4a5c48, fieldno=0) at values.c:898
  60. #2  0x143d4 in value_virtual_fn_field (arg1=0x154188, f=0x4a8bf0, j=0, 
  61.  
  62.     type=0x4a8918) at values.c:980
  63. #3  0x1a6cc in search_struct_method (name=0x154530 "doubleValue", 
  64.  
  65.     arg1=0x154388, args=0xf7fff7c4, offset=0, static_memfuncp=0xf7fff7f0, 
  66.  
  67.     type=0x4a8918) at valops.c:1095
  68. #4  0x1ad8c in value_struct_elt (argp=0xf7fff7ec, args=0xf7fff7c4, 
  69.  
  70.     name=0x154530 "doubleValue", static_memfuncp=0xf7fff7f0, 
  71.  
  72.     err=0x10657a "structure") at valops.c:1222
  73. #5  0x1604c in evaluate_subexp (expect_type=0x0, exp=0x154508, pos=0xf7fff86c, 
  74.  
  75.     noside=EVAL_NORMAL) at eval.c:389
  76. #6  0x1565c in evaluate_expression (exp=0x154508) at eval.c:142
  77. #7  0x24dcc in print_command_1 (exp=0x14500e "v.doubleValue()", inspect=0, 
  78.  
  79.     voidprint=1) at printcmd.c:752
  80. #8  0x24fcc in print_command (exp=0x14500e "v.doubleValue()", from_tty=1)
  81.     at printcmd.c:803
  82. #9  0x361c in execute_command (p=0x14500e "v.doubleValue()", from_tty=1)
  83.     at main.c:915
  84. #10 0x38c0 in command_loop () at main.c:976
  85. #11 0x33c0 in main (argc=2, argv=0xf7fffbd4) at main.c:853
  86.  
  87. If you need the source code, or more information, please let me know.
  88.  
  89. ---
  90. Douglas Scott                              (805)893-8352
  91. Center for Computer Music Research and Composition
  92. University of California, Santa Barbara
  93. Internet: (NeXTMail ok)   <doug@foxtrot.ccmrc.ucsb.edu>
  94.  
  95.