linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* bugreporting script - second try
@ 2001-01-10 20:43 Matthias Juchem
  2001-01-10 21:18 ` Richard Torkar
  2001-01-10 21:47 ` Mr. James W. Laferriere
  0 siblings, 2 replies; 9+ messages in thread
From: Matthias Juchem @ 2001-01-10 20:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: Keith Owens, Ulrich Drepper

[-- Attachment #1: Type: TEXT/PLAIN, Size: 481 bytes --]

Hi there.

I rewrote my previous bugreport.pl in bash. I would appreciate it if you
had a look on this one. Run it once and give me feedback if you like.

If the formatting is overloaded please let me know.

If this one is ok, I will probably add the possibility to check
the version recommendations in Documentation/Changes (Keith posted it).

To Ulrich: I think I have the library checking part ok now (libg++ will
also be checked via ldconfig in the next version).

 Matthias



[-- Attachment #2: Type: APPLICATION/x-sh, Size: 11626 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-10 20:43 bugreporting script - second try Matthias Juchem
@ 2001-01-10 21:18 ` Richard Torkar
  2001-01-10 21:26   ` Richard Torkar
                     ` (2 more replies)
  2001-01-10 21:47 ` Mr. James W. Laferriere
  1 sibling, 3 replies; 9+ messages in thread
From: Richard Torkar @ 2001-01-10 21:18 UTC (permalink / raw)
  To: Matthias Juchem; +Cc: linux-kernel, Keith Owens, Ulrich Drepper

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Matthias Juchem wrote:

> Hi there.
>
> I rewrote my previous bugreport.pl in bash. I would appreciate it if you
> had a look on this one. Run it once and give me feedback if you like.
>

Well it certantly works here. Almost everything is extracted correctly. I
could not btw test the ksymoops "feature" unfortunately.

What I did notice was the following.
This was checking "b) software" in the output file.

 GNU C                  2.96
 Modutils               2.4.1
 GNU make               3.79.1,
 Binutils               2.10.90
 Linux libc5 C Library  not found
 Linux libc6 C Library  2.2,
 Linux C++ library      2.7.2.8
 Dynamic linker         2.2
 Procps                 2.0.7
 Procinfo
 Psmisc                 19
 Net-tools              1.56
 PPP                    command
 Kdb
 Sh-utils               2.0
 Util-linux             2.10m
 E2fsprogs              1.19,
 Bash                   2.04.11(1)-release


I do not have any PPP, and no kdb installed on that machine, neither do I
have procinfo. Shouldn't it say N/A or not found instead of the above? The
ppp part is not true ;-).

Other thing I thought about was the Ctrl-D thingy when entering text.
What if ppl don't have any text to enter? Shouldn't is say on each line
that if you don't have anything to write then just write N/A and press
Ctrl-D? Because pressing Ctrl-D directly doesn't do any good.

Sorry to just be a pain in the ass, and *very* sorry for not having the
time to make a patch for you :)

But you did a good job. I think this is really good for new kernel ppl.
This could be very appreciated!


/Richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6XNHAUSLExYo23RsRAlMtAJ9Mo8B0LmaelPoG3zNU0NJccysZ/gCgiQDe
uaL2e9JaBbU3XCX5dLANsnQ=
=GKCp
-----END PGP SIGNATURE-----


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-10 21:18 ` Richard Torkar
@ 2001-01-10 21:26   ` Richard Torkar
  2001-01-10 21:33   ` Matthias Juchem
  2001-01-11 12:12   ` Matthias Juchem
  2 siblings, 0 replies; 9+ messages in thread
From: Richard Torkar @ 2001-01-10 21:26 UTC (permalink / raw)
  To: linux-kernel

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Richard Torkar wrote:

> Matthias Juchem wrote:
>
> > Hi there.
> >
> > I rewrote my previous bugreport.pl in bash. I would appreciate it if you
> > had a look on this one. Run it once and give me feedback if you like.
> >
>
> Well it certantly works here. Almost everything is extracted correctly. I
> could not btw test the ksymoops "feature" unfortunately.
>
> What I did notice was the following.
> This was checking "b) software" in the output file.
>
>  GNU C                  2.96
>  Modutils               2.4.1
>  GNU make               3.79.1,
>  Binutils               2.10.90
>  Linux libc5 C Library  not found
>  Linux libc6 C Library  2.2,
>  Linux C++ library      2.7.2.8
>  Dynamic linker         2.2
>  Procps                 2.0.7
>  Procinfo
>  Psmisc                 19
>  Net-tools              1.56
>  PPP                    command
>  Kdb
>  Sh-utils               2.0
>  Util-linux             2.10m
>  E2fsprogs              1.19,
>  Bash                   2.04.11(1)-release
>
>
> I do not have any PPP, and no kdb installed on that machine, neither do I
> have procinfo. Shouldn't it say N/A or not found instead of the above? The
> ppp part is not true ;-).
>


Oohh btw when doing a pppd --version on my system I get.
[xxxx@~]$ pppd --version
bash: pppd: command not found



/Richard
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD4DBQE6XNOKUSLExYo23RsRApaPAJdFPBwbJ3cjbPEeSe9sF4bv95P1AJsElLpE
sCnH3COXAqy2B4XzcML+FQ==
=U2Yp
-----END PGP SIGNATURE-----


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-10 21:18 ` Richard Torkar
  2001-01-10 21:26   ` Richard Torkar
@ 2001-01-10 21:33   ` Matthias Juchem
  2001-01-11 12:12   ` Matthias Juchem
  2 siblings, 0 replies; 9+ messages in thread
From: Matthias Juchem @ 2001-01-10 21:33 UTC (permalink / raw)
  To: Richard Torkar; +Cc: Matthias Juchem, linux-kernel, Keith Owens, Ulrich Drepper

On Wed, 10 Jan 2001, Richard Torkar wrote:

> I do not have any PPP, and no kdb installed on that machine, neither do I
> have procinfo. Shouldn't it say N/A or not found instead of the above? The
> ppp part is not true ;-).

Sure. I forgot to convert some function calls... But I'll have to rewrite
that part anyway, I don't like it.

> Other thing I thought about was the Ctrl-D thingy when entering text.
> What if ppl don't have any text to enter? Shouldn't is say on each line
> that if you don't have anything to write then just write N/A and press
> Ctrl-D? Because pressing Ctrl-D directly doesn't do any good.

You are right. I will change this...

> Sorry to just be a pain in the ass, and *very* sorry for not having the
> time to make a patch for you :)

That's fine, I *need* comments.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-10 20:43 bugreporting script - second try Matthias Juchem
  2001-01-10 21:18 ` Richard Torkar
@ 2001-01-10 21:47 ` Mr. James W. Laferriere
  1 sibling, 0 replies; 9+ messages in thread
From: Mr. James W. Laferriere @ 2001-01-10 21:47 UTC (permalink / raw)
  To: Matthias Juchem; +Cc: linux-kernel, Keith Owens, Ulrich Drepper


	Hello Matthias ,  When I run your script under a -very- old
	release of slackare (See after .sig) I get the below .
	my ldd is ancient .

root@filesrv1:~# ~/bin/bugreport.sh asdfasdfasdf
/usr/local/sbin:/usr/sbin:/sbin:/root/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/openwin/bin:/usr/games:/opt/schily/bin:/etc/rc.d/init.d:/sbin:/usr/sbin

bugreport.sh - Linux Kernel Problem Report Generator v0.3
=========================================================
       written by Matthias Juchem <matthias@brightice.de>

Directory with kernel sources  [/usr/src/linux]:
dirname /usr/i386-slackware-linux-gnulibc1/lib/libc.so.5
/root/bin/bugreport.sh: [: too many arguments
ls: /usr/lib/libg++.so.*: No such file or directory
ldd: invalid option -- -
ldd: invalid option -- e
ldd: invalid option -- s
ldd: invalid option -- i
ldd: invalid option -- o
ldd: invalid option -- n
/root/bin/bugreport.sh: $4: unbound variable

       +----------------------------------------------------------------+
       | James   W.   Laferriere | System  Techniques | Give me VMS     |
       | Network        Engineer | 25416      22nd So |  Give me Linux  |
       | babydr@baby-dragons.com | DesMoines WA 98198 |   only  on  AXP |
       +----------------------------------------------------------------+
-- Versions installed: (if some fields are empty or looks
-- unusual then possibly you have very old versions)
Slackware-7.0.0
Linux filesrv1 2.2.18pre15 #1 Sat Oct 14 15:58:46 PDT 2000 i686 unknown
Kernel modules         2.1.121
Gnu C                  egcs-2.91.66
Binutils               2.9.1.0.25
Make version           3.77
Linux C Library 6 -    libc-2.1.2
Dynamic Linker (ld.so) 1.9.9
Linux C++ Library      Notfound
Procps                 2.0.2
Mount                  2.9v
Net-tools              1.57
Sh-utils               1.16
Flex                   2.5.4
E2fsprogs              1.15

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-10 21:18 ` Richard Torkar
  2001-01-10 21:26   ` Richard Torkar
  2001-01-10 21:33   ` Matthias Juchem
@ 2001-01-11 12:12   ` Matthias Juchem
  2001-01-11 14:14     ` Rafael E. Herrera
  2001-01-11 22:28     ` David Ford
  2 siblings, 2 replies; 9+ messages in thread
From: Matthias Juchem @ 2001-01-11 12:12 UTC (permalink / raw)
  To: Richard Torkar; +Cc: Matthias Juchem, linux-kernel



On Wed, 10 Jan 2001, Richard Torkar wrote:

> I do not have any PPP, and no kdb installed on that machine, neither do I
> have procinfo. Shouldn't it say N/A or not found instead of the above? The
> ppp part is not true ;-).

> Other thing I thought about was the Ctrl-D thingy when entering text.
> What if ppl don't have any text to enter? Shouldn't is say on each line
> that if you don't have anything to write then just write N/A and press
> Ctrl-D? Because pressing Ctrl-D directly doesn't do any good.

Could you please check the new version here:

  http://www.brightice.de/src/bugreport.sh

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-11 12:12   ` Matthias Juchem
@ 2001-01-11 14:14     ` Rafael E. Herrera
  2001-01-11 14:27       ` Matthias Juchem
  2001-01-11 22:28     ` David Ford
  1 sibling, 1 reply; 9+ messages in thread
From: Rafael E. Herrera @ 2001-01-11 14:14 UTC (permalink / raw)
  To: Matthias Juchem; +Cc: linux-kernel

Matthias Juchem wrote:
>   http://www.brightice.de/src/bugreport.sh

I have a suggestion, there is a kernel patch to add a config.gz entry in
the /proc fs. It reflects the configuration used in building the running
kernel, which may differ from the one you have in /usr/src/linux. It's
part of the suse distribution. The attached patch will use it, although
you may want to add code to ask the user which one to use.

--- bugreport.sh        Thu Jan 11 09:09:00 2001
+++ bugreport.sh_orig   Thu Jan 11 08:53:21 2001
@@ -478,16 +478,11 @@
 
 
     # kernel config
-    if [ -f "/proc/config.gz" ]
+    if [ -f "$krn_srcdir/.config" ]
     then
-        dot_config=`gzip -d < /proc/config.gz|grep -v "^#"|grep CONFIG`
+        dot_config=`cat $krn_srcdir/.config|grep -v "^#"|grep CONFIG`
     else
-        if [ -f "$krn_srcdir/.config" ]
-        then
-            dot_config=`cat $krn_srcdir/.config|grep -v "^#"|grep
CONFIG`
-        else
-           dot_config="not found"
-        fi
+       dot_config="not found"
     fi
 }

-- 
     Rafael
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-11 14:14     ` Rafael E. Herrera
@ 2001-01-11 14:27       ` Matthias Juchem
  0 siblings, 0 replies; 9+ messages in thread
From: Matthias Juchem @ 2001-01-11 14:27 UTC (permalink / raw)
  To: Rafael E. Herrera; +Cc: linux-kernel

On Thu, 11 Jan 2001, Rafael E. Herrera wrote:

> I have a suggestion, there is a kernel patch to add a config.gz entry in
> the /proc fs. It reflects the configuration used in building the running
> kernel, which may differ from the one you have in /usr/src/linux. It's
> part of the suse distribution. The attached patch will use it, although
> you may want to add code to ask the user which one to use.

I have added your suggestion. If gzip and /proc/config.gz exist, the
latter is used.
I think /proc/config.gz is always the one. (There are many places where
the script assumes that you are running the kernel which caused the
problem.)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bugreporting script - second try
  2001-01-11 12:12   ` Matthias Juchem
  2001-01-11 14:14     ` Rafael E. Herrera
@ 2001-01-11 22:28     ` David Ford
  1 sibling, 0 replies; 9+ messages in thread
From: David Ford @ 2001-01-11 22:28 UTC (permalink / raw)
  To: Matthias Juchem; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1990 bytes --]


Matthias Juchem wrote:

> On Wed, 10 Jan 2001, Richard Torkar wrote:
>
> > I do not have any PPP, and no kdb installed on that machine, neither do I
> > have procinfo. Shouldn't it say N/A or not found instead of the above? The
> > ppp part is not true ;-).
>
> > Other thing I thought about was the Ctrl-D thingy when entering text.
> > What if ppl don't have any text to enter? Shouldn't is say on each line
> > that if you don't have anything to write then just write N/A and press
> > Ctrl-D? Because pressing Ctrl-D directly doesn't do any good.
>
> Could you please check the new version here:
>
>   http://www.brightice.de/src/bugreport.sh

problem: exits top level shell if no filename is specified, annoyance
aesthetics: cat: /proc/scsi/scsi: No such file or directory, simple
aesthetics:  GNU make               3.79.1,
problem:  Linux libc5 C Library  5@..
aesthetics:  Linux libc6 C Library  2.2,
problem:  Linux C++ library      27@..
problem:  Net-tools
problem:  PPP                    file
aesthetics: .config, recommend stripping the ^CONFIG_ and =, combine all 'y'
and 'm'

example fix for C library:
   sed \
     '/C [lL]ibrary /!d; s/[^0-9]*\([0-9.]*\).*/\1/' \
     /lib/libc.so.6

example fix for C++ library:
   basename $(/usr/bin/ls -f /usr/i486-linux-libc5/lib/libg++.so.27 \
     |gawk '{print $NF}')

example fix for GNU make:
   make --version|sed '/version/!d; s/[^0-9]*\([0-9.]*\).*/\1/'

example fix for net-tools:
   1) hostname from sh-utils:
       hostname --version|sed '/GNU sh/!d; s/[^0-9]*\([0-9.]*\).*/\1/'
   2) ifconfig from net-tools:
      ifconfig --version 2>&1|sed '/net\-tools/!d; s/[^0-9]*\([0-9.]*\).*/\1/'

pppd requires a proper /etc/ppp/options file before printing the version, if
you have devfs and a disconnecting modem, i.e. usb modem, it must be
attached for the /dev entry or pppd will refuse to run.

I prefer using e2fsck to report the version:
   e2fsck -V 2>&1 |sed '/e2fsck/!d; s/e2fsck [^0-9]*\([0-9.]*\).*/\1/'


---
-d


[-- Attachment #2: Card for David Ford --]
[-- Type: text/x-vcard, Size: 274 bytes --]

begin:vcard 
n:Ford;David
x-mozilla-html:TRUE
url:www.blue-labs.org
adr:;;;;;;
version:2.1
email;internet:david@blue-labs.org
title:Blue Labs Developer
note;quoted-printable:GPG key: http://www.blue-labs.org/david@nifty.key=0D=0A
x-mozilla-cpt:;9952
fn:David Ford
end:vcard

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2001-01-11 22:28 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-10 20:43 bugreporting script - second try Matthias Juchem
2001-01-10 21:18 ` Richard Torkar
2001-01-10 21:26   ` Richard Torkar
2001-01-10 21:33   ` Matthias Juchem
2001-01-11 12:12   ` Matthias Juchem
2001-01-11 14:14     ` Rafael E. Herrera
2001-01-11 14:27       ` Matthias Juchem
2001-01-11 22:28     ` David Ford
2001-01-10 21:47 ` Mr. James W. Laferriere

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).