errors while running a program

errors while running a program

Post by Jingui Ya » Mon, 09 Jun 2003 12:29:12



Hello all:
    When I run a program,the errors appear:

Unable to handle kernel NULL pointer dereference at virtual address 00000000
mm = c016e9ac pgd = c0004000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: ffffffff
CPU: 0
pc : [<c00f1fa8>]    lr : [<00000001>]    Not tainted
sp : c016de18  ip : 00000200  fp : c016de8c
r10: 00000000  r9 : c0268800  r8 : 00000001
r7 : 00000200  r6 : c0258000  r5 : c02456e0  r4 : 00000000
r3 : 00000000  r2 : 00000000  r1 : 00000000  r0 : 00000002
Flags: Nzcv  IRQs on  FIQs on  Mode SVC_32  Segment kernel
Control: C0AE717F  Table: C0AE717F  DAC: 0000001D
Process swapper (pid: 0, stack limit = 0xc016c374)
Stack: (0xc016de18 to 0xc016e000)

I can not understand the errors,who can help me.Thanks.
1)Why do the errors appear?
2)What are pc,lr?What do they mean?
3)What is oops?
4)How can I understand these errors?

 
 
 

1. Press Ctrl-D whiling inputting

I write a program:

#include <stdio.h>
main()
{
   char str[81];
   while(1)
   {
      gets(str);
      printf("You input: %s\n",str);
   }

My question is why it causes infinitely loop after I press Ctrl-D.
Is there any solution about this?  Thanks.

--
     +------------------------------------------------------------+
    / \   Trying to maintain a good friendship with all people   / \
   /   + - - - - - - - - - - - - - - - - - - - - - - - - - - - -/ - +


+------------------------------------------------------------+   /
 \ /Home Page: http://susis.ust.hk/~enoch                     \ /
  +------------------------------------------------------------+

2. FX ripples dialog box

3. errors while running a program

4. UNIX Webmaster - Serious $$$

5. How do I run a program in the background and redirect the error messages?

6. Epson Scanner front panel buttons

7. Help !!! Error running Python program with import _pg !!@!!

8. Newbie question: mtime find option doesn't run

9. Is it ok to run a program that generates a message in the Error Log

10. Strange SIGSEGV error when running program under gdb

11. Error running program compiled using ARM toolchain

12. Errors running program on Pentium

13. How do I run a program in the background and redirect the error messages?