All of lore.kernel.org
 help / color / mirror / Atom feed
* Debugging
@ 2005-05-14  0:05 Scott Becker
  2005-05-17  2:11 ` Debugging Hollis Blanchard
  0 siblings, 1 reply; 20+ messages in thread
From: Scott Becker @ 2005-05-14  0:05 UTC (permalink / raw)
  To: grub-devel

On the two servers I've installed RHEL 4 on, I've had trouble with grub. 
It's the combination of grub and the new I2O_block driver. I suspect the 
grub patch to support I2O is lacking.

I was wondering if Grub 0.95 or 2.0 has a facility to trace the changes 
being made when grub-install is being ran. After an install or an update 
I had to run grub-install to get it to boot again. In theory, this 
shouldn't be neccessary. Since it was, I thought it would be useful to 
be able to compare the areas of the disk written to during grub-install 
with what was written there before so that I could trace down the problem.

    thanks
    scottb




^ permalink raw reply	[flat|nested] 20+ messages in thread
* Debugging
@ 2006-01-29  6:21 James Colannino
  2006-01-29 16:21 ` Debugging Steve Graegert
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: James Colannino @ 2006-01-29  6:21 UTC (permalink / raw)
  To: linux-c-programming

Hey everyone.  I have a small program that I had written a while ago in 
C to help me study for my Spanish class.  I decided to rewrite some code 
recently being that I have a little more experience, and found that the 
program does not function properly when I compile with -O2 optimizations 
(I'm using GCC.)  It works as it should, however, when there are no 
optimizations.  How exactly should I go about debugging this and 
figuring out what code is causing the problem?  I could compile it with 
the -g option and feed it to GDB, but then doesn't debugging not work 
very well when you've done optimizations?  Is -O2 a low enough level of 
optimization that I shouldn't have a problem?  Debugging is one of the 
many things I know extremely little about, so I'm very in the dark 
here.  Any input would be greatly appreciated :)  Thanks very much in 
advance.

James

-- 
My blog: http://www.crazydrclaw.com/
My homepage: http://james.colannino.org/

"If Carpenters made houses the way programmers design programs, the first woodpecker to come along would destroy all of civilization." --Computer Proverb


^ permalink raw reply	[flat|nested] 20+ messages in thread
* Debugging
@ 2005-09-09 12:40 Lares Moreau
  2005-09-09 15:30 ` Debugging Randy.Dunlap
  0 siblings, 1 reply; 20+ messages in thread
From: Lares Moreau @ 2005-09-09 12:40 UTC (permalink / raw)
  To: linux-kernel

OKay this is a noobie question,

I have all the kernel debugging options turned.  Now how do I change the
kernel logging level from prompt?  Or do I?

I have 'loglevel=7' appended to my kernel line in grub.  Is that all I
need or is there more to it?

Worry not I have syslog-ng setup properly

-Lares


^ permalink raw reply	[flat|nested] 20+ messages in thread
[parent not found: <09B04A55822EFF4DA48D2E0BB2941D4A15C51F@wardrive.citadelcomputer.com.au>]
* RE: Debugging
@ 2003-10-19 22:45 Daniel Chemko
  0 siblings, 0 replies; 20+ messages in thread
From: Daniel Chemko @ 2003-10-19 22:45 UTC (permalink / raw)
  To: techmail, netfilter

This is a redhat bug, not netfilter.

If you are adept at bash scripting, you may want to try bash -x service firewall start.

Enjoy!



-----Original Message-----
From:	techmail@safe2surf.nl [mailto:techmail@safe2surf.nl]
Sent:	Sun 10/19/2003 3:24 PM
To:	netfilter@lists.netfilter.org
Cc:	
Subject:	Debugging
Hi,

 

Perhaps this is a stupid question which has been asked too many times,
but I wasn't able to find it.

 

If I do "service iptables start" nothing happens, so when I do "service
iptables status" it says "Firewall is stopped."

 

Because I want to know where in the process the error is I'd like to
know how to debug it. Is there any information on debugging to see what
error it displays?

 

Kind regards,

 

Robert Hazenveld






^ permalink raw reply	[flat|nested] 20+ messages in thread
* Debugging
@ 2003-10-19 22:24 techmail
  0 siblings, 0 replies; 20+ messages in thread
From: techmail @ 2003-10-19 22:24 UTC (permalink / raw)
  To: netfilter

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

Hi,

 

Perhaps this is a stupid question which has been asked too many times,
but I wasn't able to find it.

 

If I do "service iptables start" nothing happens, so when I do "service
iptables status" it says "Firewall is stopped."

 

Because I want to know where in the process the error is I'd like to
know how to debug it. Is there any information on debugging to see what
error it displays?

 

Kind regards,

 

Robert Hazenveld


[-- Attachment #2: Type: text/html, Size: 2663 bytes --]

^ permalink raw reply	[flat|nested] 20+ messages in thread
* debugging..
@ 2003-10-09  7:23 Ingo Flaschberger
  0 siblings, 0 replies; 20+ messages in thread
From: Ingo Flaschberger @ 2003-10-09  7:23 UTC (permalink / raw)
  To: linux-mtd

Hey...

i have a system where i can't set the kernel command-line... searching for
"debug" about an hour did not help..(

how else could i get debugging infos (i have already modified
kernel/printk.c).

thnx & bye, Ingo

--
we own the fibre; 9.6.98 illiad

^ permalink raw reply	[flat|nested] 20+ messages in thread
* bug in asm-ppc/div64.h
@ 2003-03-11 11:05 Bastien Nocera
  2003-03-11 14:21 ` Debugging Giuliano Pochini
  0 siblings, 1 reply; 20+ messages in thread
From: Bastien Nocera @ 2003-03-11 11:05 UTC (permalink / raw)
  To: linuxppc-dev

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

Hello,

While chasing a date bug in smbfs with Urban Widmark, it so happened
that we stumbled across a bug in do_div on PPC 32bit, ie. it doesn't
work.

I attached a test case, provided by Urban. do_div is used in quite a few
places like vsprintf, the matrox fb code, etc.

When running on x86:
now: 1047238073
adjusted: 24edd64059e100
/ 10000000: 3df4e80a
1039460362

Check the run on PPC. It's wrong by quite a scale.

Any ideas on how to solve this properly ?

Cheers

--
/Bastien Nocera
http://www.redhat.com

Perfection is reached, not when there is no longer anything to add, but
when there is no longer anything to take away.
                                                Antoine de Saint-Exupery
--
/Bastien Nocera
http://hadess.net

#2  0x4205a2cc in printf ("Oh my %s\n", preferred_deity) from
/lib/i686/libc.so.6 printf ("Oh my %s\n", preferred_deity);
Segmentation fault

[-- Attachment #2: smbfs-time.c --]
[-- Type: text/x-c, Size: 550 bytes --]

#include <stdio.h>
#include <time.h>
#include <asm/types.h>
#include <asm/div64.h>

typedef  __u64 u64;

#define NTFS_TIME_OFFSET ((u64)(369*365 + 89) * 24 * 3600 * 10000000)

static time_t
smb_ntutc2unixutc(u64 ntutc)
{
	u64 t = ntutc - NTFS_TIME_OFFSET;
	printf("adjusted: %Lx\n", t);

	do_div(t, 10000000);
	printf("/ 10000000: %Lx\n", t);

	return (time_t)t;
}

int main()
{
    time_t t;

    t = time(NULL);
    printf("now: %ld\n", t);

    t = smb_ntutc2unixutc(0x01c29fb515986100LL);
    printf("%ld\n", t);
}

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

end of thread, other threads:[~2006-01-30 19:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-14  0:05 Debugging Scott Becker
2005-05-17  2:11 ` Debugging Hollis Blanchard
2005-05-18 15:59   ` Debugging Scott Becker
2005-08-29 15:12     ` Debugging pjones
  -- strict thread matches above, loose matches on Subject: below --
2006-01-29  6:21 Debugging James Colannino
2006-01-29 16:21 ` Debugging Steve Graegert
2006-01-29 18:14 ` Debugging Glynn Clements
2006-01-30 19:09   ` Debugging James Colannino
     [not found] ` <20060129105131.6813f695.leslie.polzer@gmx.net>
2006-01-30 19:13   ` Debugging James Colannino
2006-01-30 19:21     ` Debugging James Colannino
2005-09-09 12:40 Debugging Lares Moreau
2005-09-09 15:30 ` Debugging Randy.Dunlap
     [not found] <09B04A55822EFF4DA48D2E0BB2941D4A15C51F@wardrive.citadelcomputer.com.au>
2003-10-19 23:26 ` Debugging techmail
2003-10-19 22:45 Debugging Daniel Chemko
2003-10-19 22:24 Debugging techmail
2003-10-09  7:23 debugging Ingo Flaschberger
2003-03-11 11:05 bug in asm-ppc/div64.h Bastien Nocera
2003-03-11 14:21 ` Debugging Giuliano Pochini
2003-03-11 19:28   ` Debugging Olaf Hering
2003-03-13  8:28     ` Debugging Giuliano Pochini
2003-03-13  8:52       ` Debugging Olaf Hering

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.