home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / os / linux / 6773 < prev    next >
Encoding:
Text File  |  1992-07-27  |  17.8 KB  |  490 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!psinntp!dg-rtp!usenet
  3. From: welshm@snail.rtp.dg.com (Matt Welsh)
  4. Subject: ibug, Linux Bug Reporting program
  5. Message-ID: <1992Jul27.131434.9409@dg-rtp.dg.com>
  6. Sender: usenet@dg-rtp.dg.com (Usenet Administration)
  7. Date: Mon, 27 Jul 92 13:14:34 GMT
  8. Reply-To: welshm@dg-rtp.dg.com
  9. Organization: Data General Corporation, RTP, NC.
  10. Lines: 478
  11.  
  12. It's here: This is "ibug", the bug reporting program that I've
  13. written to handle reporting of bugs for Linux over e-mail.
  14. I know that most of the bugs for Linux aren't kernel-specific,
  15. but there are some cases in which functionality is missing 
  16. in tools ported to Linux. Hopefully, with the advent of 1.0, 
  17. we won't have many "bugs" to report. But in the meantime, here goes:
  18.  
  19.  
  20. How to report bugs for Linux: 
  21.  
  22. If you have a problem with Linux that you think MIGHT be a bug,
  23. post a description of the problem to comp.os.linux and get readers
  24. of the group to VERIFY that it is indeed a bug (and not just a
  25. problem with your own system). Be very specific in this description.
  26. Please include the word "BUG" or "LINUX BUG" in your subject
  27. line so they're easy to spot. 
  28.  
  29. If the problem is indeed a bug, use this ibug program to fill out
  30. the bug report template "linux.temp" and mail it to 
  31. ml-linux-bugs@dg-rtp.dg.com. If you're NOT on a UNIX system, just extract 
  32. the bug report template from this file and fill it out and mail it by hand 
  33. (sorry, VMS users). All ibug really does is fill in the date and fixes
  34. a few of the fields in the bug report template-- use it whenever
  35. possible, but if you can't, just do it by hand. 
  36.  
  37. I will compile a short and long list of reported bugs and post
  38. it every week. I'll also upload the bug list to the major ftp sites
  39. with the name BugReport_<date>. 
  40.  
  41. If you have a BUG FIX or a workaround for a bug in the weekly
  42. BugReport posting, use ibug (or fill out by hand) the template
  43. 'linux.fix.temp' to report the bug fix. Use the SAME "Summary:"
  44. line as in the original bug report! 
  45.  
  46. The ibug program has been uploaded to tsx-11.mit.edu:/pub.incoming/ibug.tar.Z
  47. and banjo.concert.net:/pub/Linux/Incoming/ibug.tar.Z. The shell
  48. archive is included below. If you have ANY problems with this program
  49. please mail them to me (welshm@dg-rtp.dg.com). Also, if you can't
  50. get the 'linux.temp' or 'linux.fix.temp' files out of the archive
  51. (if you're not on a UNIX system, for instance) just send mail to me and
  52. I'll send them to you. 
  53.  
  54. PLEASE use the templates 'linux.temp' and 'linux.fix.temp' when reporting
  55. bugs or bug fixes; my scripts require the fields in those files to be
  56. intact.
  57.  
  58. Thanks a lot, and please send me any problems or suggestions!
  59.  
  60. cheers,
  61. mdw
  62.  
  63. BEGIN------->8----CUT HERE----ibug.shar------------>8-----------------------
  64. #! /bin/sh
  65. # This is a shell archive.  Remove anything before this line, then feed it
  66. # into a shell via "sh file" or similar.  To overwrite existing files,
  67. # type "sh file -c".
  68. # The tool that generated this appeared in the comp.sources.unix newsgroup;
  69. # send mail to comp-sources-unix@uunet.uu.net if you want that tool.
  70. # If this archive is complete, you will see the following message at the end:
  71. #        "End of shell archive."
  72. # Contents:  README README.LINUX ibug bfile linux.temp linux.fix.temp
  73. # Wrapped by welshm@snail on Mon Jul 20 09:34:37 1992
  74. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  75. if test -f 'README' -a "${1}" != "-c" ; then 
  76.   echo shar: Will not clobber existing file \"'README'\"
  77. else
  78. echo shar: Extracting \"'README'\" \(1586 characters\)
  79. sed "s/^X//" >'README' <<'END_OF_FILE'
  80. XThis is ibug, a quick and dirty bug-reporting program. All it does
  81. Xis edit a given template file and mail it off (using sendmail,
  82. Xdirectly) to whoever is on the To: line in the template file.
  83. X
  84. XThe usage is:
  85. X
  86. X  ibug [template-file]
  87. X
  88. XWhere <template-file> is the name of the bug report template. If not given,
  89. Xibug uses the default file $HOME/.ibugtemp. ibug invokes 'vi' to edit the
  90. Xfile, adds the lines #BEGIN and #END to the completed bug report, and
  91. Xthen runs sendmail with the address on the line To: in the bug report
  92. Xtemplate. Your completed bug report is saved to the file $HOME/.ibugrpt
  93. Xin case the mail bounces for some reason.
  94. X
  95. XAs you can see, this can be used for many purposes; it was just a quick
  96. Xhack to give the Linux project some bug-reporting capability. You can
  97. Xeasily write an awk script to grok the bug reports (i.e. the actual
  98. Xreport is between the lines "### BEGIN" and "### END", added to the
  99. Xreport by ibug) and produce one "big" report based on all of the individual 
  100. Xreports. 
  101. X
  102. X*** See the file README.LINUX for information on using this program to
  103. X*** report Linux bugs.
  104. X
  105. X'bfile' is a filter you can use from inside mail to save the bug 
  106. Xreport to a file (the default is $HOME/Bugs/Bugrpt) and reply to the
  107. Xsender of the message. Just pipe the message from mail into bfile.
  108. XBfile takes everything between the "###BEGIN" and "###END" lines and
  109. Xsticks it in the named file. Edit this script to fit your needs; it's
  110. Xbasically useful if you're the one gathering bugs from ibug.
  111. X
  112. XPlease send any suggestions or bugs (on ibug!) to welshm@dg-rtp.dg.com.
  113. XThanks!
  114. X
  115. Xmdw
  116.  
  117. END_OF_FILE
  118. echo shar: NEWLINE appended to \"'README'\"
  119. if test 1587 -ne `wc -c <'README'`; then
  120.     echo shar: \"'README'\" unpacked with wrong size!
  121. fi
  122. # end of 'README'
  123. fi
  124. if test -f 'README.LINUX' -a "${1}" != "-c" ; then 
  125.   echo shar: Will not clobber existing file \"'README.LINUX'\"
  126. else
  127. echo shar: Extracting \"'README.LINUX'\" \(5206 characters\)
  128. sed "s/^X//" >'README.LINUX' <<'END_OF_FILE'
  129. X**** GUIDELINES FOR REPORTING LINUX BUGS ****
  130. X
  131. XLast updated: 20 Jul 92
  132. X
  133. X*** This file specifies how you should file bug reports and bug report
  134. X*** updates (such as fixes and workaround reports). PLEASE READ before
  135. X*** you do anything!! 
  136. X
  137. XIf you are having problems with Linux, the first thing you should do is
  138. XPOST your problem or possible bug to comp.os.linux or send it out on
  139. Xone of the several mailing lists. In this way, others can verify your
  140. Xproblem and find out if it's actually a bug. 
  141. X
  142. XIf it's determined that your problem is a bug specific to Linux, or
  143. Xis a problem caused by a certain setup that others should be aware of,
  144. Xuse the 'ibug' program along with the 'linux.temp' template which will
  145. Xmail the bug report to "ml-linux-bugs@dg-rtp.dg.com". Ibug is
  146. Xavailable on the major Linux ftp sites and has been posted to comp.os.linux.
  147. X
  148. XIf your problem is indeed a bug, PLEASE SUBMIT IT using ibug whether or
  149. Xnot there is a workaround. A list of all verified bug reports will be
  150. Xperiodically posted to comp.os.linux to let users know what the
  151. Xknown bugs are.
  152. X
  153. XNote: Ibug is NOT a program for use with Linux, as Linux does not
  154. Xsupport mailing over the internet (yet). It's meant to be used on your
  155. X"other" UNIX machine(s) to report bugs for the Linux project. Whenever
  156. XLinux lets you mail onto the Internet, feel free to use it!
  157. X
  158. XIF YOUR NET CONNECTION IS NOT A UNIX SYSTEM, the ibug program won't work. 
  159. XSimply grab the "linux.temp" template, fill it out, and mail it to 
  160. Xml-linux-bugs@dg-rtp.dg.com.
  161. X
  162. XIF YOU HAVE PROBLEMS getting mail to the ml-linux-bugs, send the report
  163. Xdirectly to me (welshm@dg-rtp.dg.com). 
  164. X
  165. XUse ibug to fill out and mail the linux.temp bug report template. 
  166. XPlease don't mangle the header lines such as From: and Revision: 
  167. Xbecause that may cause the report generation scripts to break. 
  168. X
  169. X
  170. X
  171. X
  172. XYou need to fill out the following information in the template:
  173. X
  174. XFrom: your complete email address, so I can get back to you. My scripts
  175. X  won't pay much attention to the information that sendmail puts in the
  176. X  header. This should be the email address that we can use to respond to
  177. X  you.
  178. X
  179. XSubject: don't edit. Should read "LINUX BUG REPORT".
  180. X
  181. XRevision: one line, the revision and patch level of the Linux kernel/release
  182. X  that you're under. Also include any patches that you've applied.
  183. X
  184. XSetup: One line, brief description of your system's setup. e.g. "386SX, 4Megs
  185. X  Ram, SVGA, 105MB IDE HD". You can expound in the Description: section below.
  186. X
  187. XFile: The name of the file (full pathname) or program (along with the version
  188. X  of that program) that's causing problems. You can also use well-known
  189. X  terms such as "kernel" or "bootimage", etc. 
  190. X
  191. XSummary: a BRIEF one line summary of the problem, e.g. "X11 crashes when 
  192. X  exiting xterm" or something like that.
  193. X
  194. XDescription: The complete description of the problem or bug. Be as verbose
  195. X  as you want. Please include the following information:
  196. X   
  197. X     - If it's a program you've compiled or that you're trying to compile,
  198. X       specify where you got it from (site and directory), the version of
  199. X       the compiler you're using, and any changes/patches you've made.
  200. X     - If it's a binary, specify where you got it from, and how big it
  201. X       is. 
  202. X     - If there's any error message, reproduce it accurately! If possible,
  203. X       write it to a file and upload it to the system you want to report
  204. X       the bug from.
  205. X     - Be very specific as to the results: don't just say "nothing happens"--
  206. X       that could man "program stops and waits for something", "program
  207. X       enters an infinite loop", or any number of other things.
  208. X     - Always include the command lines and setup that you went through
  209. X       to produce this bug. Also mention how you verified the bug (i.e.
  210. X       if you verified that you didn't do something stupid, mention it
  211. X     - If there is a workaround (or possible workaround) for the problem,
  212. X       PLEASE INCLUDE IT in this section!
  213. X     - You can expound on any other information in the other report
  214. X       fields in this section as well.
  215. X
  216. X  ALWAYS reproduce the bug BEFORE you report it! It could have been due to
  217. X  the auras of Linus and the UNIX deities being out of sync (a rare 
  218. X  occurrence, of course). And always try to verify the bug as much as
  219. X  possible, and isolate it to a single problem. If you have already verified
  220. X  that you didn't do something stupid, mention it. For example, make
  221. X  sure that you transferred your files using binary format in ftp, and so on.
  222. X
  223. X*** If you have an UPDATE to the bug report (i.e. that a bug is fixed,
  224. Xthere's a patch or workaround for it, etc.) you should fill out the 
  225. X"linux.fix.temp" template using ibug and mail it to 
  226. Xml-linux-bugs@dg-rtp.dg.com. This template should contain the SAME 
  227. X"Summary" line as the original bug report along with a description of
  228. Xthe fix or update. This way I can modify the original bug report
  229. Xso the report and its fix will go together.
  230. X
  231. X
  232. XThanks, and please send me (welshm@dg-rtp.dg.com) any suggestions or problems! 
  233. XThanks for magidj@marimba.cellbio.duke.edu for testing, to 
  234. Xalmesber@nessie.cs.id.ethz.ch for providing guidelines for the report 
  235. Xtemplate, and to marks@tunl.duke.edu for testing and ideas.
  236. X
  237. X--mdw
  238.  
  239. END_OF_FILE
  240. echo shar: NEWLINE appended to \"'README.LINUX'\"
  241. if test 5207 -ne `wc -c <'README.LINUX'`; then
  242.     echo shar: \"'README.LINUX'\" unpacked with wrong size!
  243. fi
  244. # end of 'README.LINUX'
  245. fi
  246. if test -f 'ibug' -a "${1}" != "-c" ; then 
  247.   echo shar: Will not clobber existing file \"'ibug'\"
  248. else
  249. echo shar: Extracting \"'ibug'\" \(2073 characters\)
  250. sed "s/^X//" >'ibug' <<'END_OF_FILE'
  251. X#!/bin/sh
  252. X##############################################################################
  253. X### 
  254. X### ibug: Quick and dirty bug-report mailing program over the Internet.
  255. X### Basically edits a template and mails it to whoever's in the To: 
  256. X### line in the file. Can be put to other uses, I suppose...
  257. X###
  258. X### Matt Welsh (welshm@dg-rtp.dg.com)
  259. X###
  260. X### $Id: ibug,v 1.15 1992/07/17 18:09:58 welshm Exp $
  261. X### $What: <@(#) ibug,v    1.15> $
  262. X###
  263. X##############################################################################
  264. X
  265. XSENDMAIL=/usr/lib/sendmail
  266. Xdefeditor=/usr/bin/vi
  267. X
  268. Xif [ "$#" != "1" ]
  269. Xthen
  270. X  tempfile="$HOME/.ibugtemp"
  271. X  if [ ! -r "$tempfile" ]
  272. X  then
  273. X    echo "ibug: usage"
  274. X    echo "  ibug [template-file]"
  275. X    echo "\$HOME/.ibugtemp is the default template file."
  276. X    exit 1
  277. X  fi
  278. Xelse
  279. X  tempfile="$1"
  280. Xfi
  281. X
  282. Xif [ ! -r "$tempfile" ]
  283. Xthen
  284. X  echo "ibug: cannot open template $tempfile."
  285. X  exit 1
  286. Xfi
  287. X
  288. XTMP="/tmp/ibug.$$"
  289. XTMP2="/tmp/ibug2.$$"
  290. X
  291. Xrm -rf $TMP $TMP2 > /dev/null 2>&1
  292. X
  293. X### Throw in the date if there's a place on the template for it
  294. Xcat  $tempfile | sed -e "s/Date:/Date: `date`/g" > $TMP
  295. X
  296. Xecho "Editor [${VISUAL-${EDITOR-$defeditor}}]: \c"
  297. Xread reply
  298. Xcase $reply in
  299. X  '') ;;
  300. X  *) VISUAL=$reply
  301. X     export VISUAL
  302. X     ;;
  303. Xesac
  304. X
  305. X${VISUAL-${EDITOR-$defeditor}} $TMP
  306. X
  307. Xsendto=`egrep "^To:" $TMP | cut -c5- | head -1`
  308. Xsubject=`egrep "^Subject:" $TMP | cut -c10- | head -1`
  309. X
  310. Xif [ "$sendto" = "" ]
  311. Xthen
  312. X  echo "ibug: no To: line found, or line corrupt in template $tempfile."
  313. X  echo " You need to have a To: line in your report specifying"
  314. X  echo " the recipient of the bug report."
  315. X  cp $TMP $HOME/.ibugrpt
  316. X  echo "ibug: report saved to $HOME/.ibugrpt."
  317. X  exit 1
  318. Xfi
  319. X
  320. Xecho "To: $sendto" > $TMP2
  321. Xecho "Subject: $subject" >> $TMP2
  322. Xecho "###BEGIN" >> $TMP2
  323. X### Kill off lines beginning with a '#' in the input
  324. Xcat $TMP | egrep -v '^#.*'  >> $TMP2
  325. Xecho "###END" >> $TMP2
  326. Xrm -f $TMP > /dev/null 2>&1
  327. X
  328. Xecho "ibug: mailing bug report to $sendto."
  329. Xcat $TMP2 | $SENDMAIL -i $sendto
  330. X
  331. Xcp $TMP2 "$HOME/.ibugrpt"
  332. Xecho "ibug: bug report saved to $HOME/.ibugrpt."
  333. X
  334. Xrm -f $TMP2 > /dev/null 2>&1
  335.  
  336. END_OF_FILE
  337. echo shar: NEWLINE appended to \"'ibug'\"
  338. if test 2074 -ne `wc -c <'ibug'`; then
  339.     echo shar: \"'ibug'\" unpacked with wrong size!
  340. fi
  341. chmod +x 'ibug'
  342. # end of 'ibug'
  343. fi
  344. if test -f 'bfile' -a "${1}" != "-c" ; then 
  345.   echo shar: Will not clobber existing file \"'bfile'\"
  346. else
  347. echo shar: Extracting \"'bfile'\" \(1633 characters\)
  348. sed "s/^X//" >'bfile' <<'END_OF_FILE'
  349. X#!/bin/sh
  350. X##############################################################################
  351. X### bfile: take a bug report, strip between ###BEGIN and ###END lines,
  352. X### stick in a file. Nice way to pipe messages from mail to a raw report.
  353. X### Also replies to the sender of the message if possible.
  354. X###
  355. X### $Id: bfile,v 1.5 1992/07/17 18:13:26 welshm Exp $
  356. X### $What: <@(#) bfile,v    1.5> $
  357. X##############################################################################
  358. X
  359. X### Please edit this script to your heart's content, to fit your needs.
  360. X### This works in a generic way.
  361. X
  362. XSAVEFILE=$HOME/Bugs/Bugrpt
  363. XTMPFILE=/tmp/bfile.$$
  364. XTMPFILE2=/tmp/bfile2.$$
  365. X
  366. Xif [ $# -ge 1 ]
  367. Xthen
  368. X  SAVEFILE=$1
  369. Xfi
  370. X
  371. Xcat >> $TMPFILE
  372. X
  373. X### Reply to sender of the message (comment out sendmail line if you want
  374. X### this to be turned off!)
  375. XSENDMAIL=/usr/lib/sendmail
  376. XTO=""
  377. X
  378. XFROM=`egrep '^From:' $TMPFILE | cut -f2 -d' ' | head -1`
  379. XREPLY_TO=`egrep '^Reply-To:' $TMPFILE | cut -f2 -d' ' | head -1`
  380. XSUBJECT=`egrep '^Subject:' $TMPFILE | cut -c10- | head -1`
  381. X
  382. XTO="${REPLY_TO:-$FROM}"
  383. Xif [ "$TO" = "" ]
  384. Xthen
  385. X  echo "bfile: no one to reply to!"
  386. Xelse
  387. X  echo "bfile: replying to $TO."
  388. X  echo "Subject: Re: $SUBJECT" >> $TMPFILE2
  389. X  echo "This is an automated reply." >> $TMPFILE2
  390. X  echo "Your bug report has been received and filed" >> $TMPFILE2
  391. X  echo "on `date`." >> $TMPFILE2
  392. X  echo "Thanks!" >> $TMPFILE2
  393. X  echo " " >> $TMPFILE2
  394. X  echo 'Love, $What: <@(#) bfile,v    1.5> $' >> $TMPFILE2
  395. X  cat $TMPFILE2 | $SENDMAIL -i $TO
  396. X  rm -f $TMPFILE2
  397. Xfi
  398. X
  399. Xecho "bfile: Saving report to $SAVEFILE."
  400. Xcat $TMPFILE | awk '/###BEGIN/,/###END/' >> $SAVEFILE
  401. Xecho " " >> $SAVEFILE
  402. X
  403. Xrm -f $TMPFILE
  404. X
  405.  
  406. END_OF_FILE
  407. echo shar: NEWLINE appended to \"'bfile'\"
  408. if test 1634 -ne `wc -c <'bfile'`; then
  409.     echo shar: \"'bfile'\" unpacked with wrong size!
  410. fi
  411. chmod +x 'bfile'
  412. # end of 'bfile'
  413. fi
  414. if test -f 'linux.temp' -a "${1}" != "-c" ; then 
  415.   echo shar: Will not clobber existing file \"'linux.temp'\"
  416. else
  417. echo shar: Extracting \"'linux.temp'\" \(598 characters\)
  418. sed "s/^X//" >'linux.temp' <<'END_OF_FILE'
  419. X### Lines beginning with a '#' will be removed in the bug report.
  420. X### Please post your problem to comp.os.linux and/or verify the problem as
  421. X### a bug yourself before submission.
  422. X
  423. XTo: ml-linux-bugs@dg-rtp.dg.com
  424. XSubject: LINUX BUG REPORT
  425. XDate:
  426. X
  427. XFrom:       <your complete e-mail address>
  428. XRevision:   <replace with rev and patchlevel of Linux kernel>
  429. XSetup:      <one line description of your system's setup>
  430. XFile:       <program or file, along with revision, that's causing problems>
  431. X
  432. XSummary:    <one line summary of problem>
  433. X
  434. XDescription:
  435. X
  436. X  <Description of problem, as many lines as you want>
  437. X
  438. X
  439.  
  440. END_OF_FILE
  441. echo shar: NEWLINE appended to \"'linux.temp'\"
  442. if test 599 -ne `wc -c <'linux.temp'`; then
  443.     echo shar: \"'linux.temp'\" unpacked with wrong size!
  444. fi
  445. # end of 'linux.temp'
  446. fi
  447. if test -f 'linux.fix.temp' -a "${1}" != "-c" ; then 
  448.   echo shar: Will not clobber existing file \"'linux.fix.temp'\"
  449. else
  450. echo shar: Extracting \"'linux.fix.temp'\" \(795 characters\)
  451. sed "s/^X//" >'linux.fix.temp' <<'END_OF_FILE'
  452. X### Lines beginning with a '#' will be removed in the bug report.
  453. X### This template is to be used as an update to a previous bug report
  454. X### (i.e. to report fixes, patches, or workarounds).Please set the "Summary" 
  455. X### line to the SAME summary as the bug report you are updating!
  456. X### You can make changes to the File: line. Include Setup and Revision info
  457. X### in the description, as this will just be appended to the original bug
  458. X### report (not filed as a seperate report).
  459. X
  460. XTo: ml-linux-bugs@dg-rtp.dg.com
  461. XSubject: LINUX BUG REPORT *UPDATE*
  462. XDate:
  463. X
  464. XFrom:       <your complete e-mail address>
  465. XFile:       <program or file, along with revision, that's causing problems>
  466. X
  467. XSummary:    <same summary line as original bug report>
  468. X
  469. XDescription:
  470. X
  471. X  <Description of problem, as many lines as you want>
  472. X
  473. X
  474.  
  475. END_OF_FILE
  476. echo shar: NEWLINE appended to \"'linux.fix.temp'\"
  477. if test 796 -ne `wc -c <'linux.fix.temp'`; then
  478.     echo shar: \"'linux.fix.temp'\" unpacked with wrong size!
  479. fi
  480. # end of 'linux.fix.temp'
  481. fi
  482. echo shar: End of shell archive.
  483. exit 0
  484. END--------->8----CUT HERE----ibug.shar------------>8-----------------------
  485.  
  486.  
  487. Matt Welsh    welshm@dg-rtp.dg.com        ...!mcnc!rti!dg-rtp!welshm
  488. UNIX-SQA, Data General Corporation RTP        Office: +1 919 248 6070
  489.   "Do not taunt Happy Fun Ball."
  490.