Segmentation Error.. Continued.

Segmentation Error.. Continued.

Post by John Thomse » Tue, 14 Jan 1997 04:00:00



I have a printf("Starting\n"); statement as the first line in main().

It never gets there.

I compile each module as gcc -c -o module.o module.c
and link by: gcc module1.o module2.o ... -o newprog

In reading the FAQs, it seems that it could be due to rewritable strings...
but the code never even makes it to main(), so I doubt it..

Any ideas?

John Thomsen.

 
 
 

Segmentation Error.. Continued.

Post by Koen D'Hond » Wed, 15 Jan 1997 04:00:00



> I have a printf("Starting\n"); statement as the first line in main().

> It never gets there.

> I compile each module as gcc -c -o module.o module.c
> and link by: gcc module1.o module2.o ... -o newprog

> In reading the FAQs, it seems that it could be due to rewritable strings...
> but the code never even makes it to main(), so I doubt it..

> Any ideas?

Try replacing the printf("Starting\n") with a
fprintf(stderr, "Starting\n") and see what happens.

If you see the Starting printed, try to figure out what is happening
by using a de*.

If you don't see it, it probably is a bug in your own code.
In this case, I suggest you check your code very carefully.
You can also try to strip down the latest modules you added until the
problem goes away. This way you can get at least an idea what the
offending code is.

Hopes this helps,
Koen D'Hondt.
--
----------------------------------------------------------------------

       _/_/_/_/ _/_/_/_/ _/_/_/_/  
      _/    _/ _/         _/    _/      Ripley Software Development
     _/    _/ _/         _/    _/       Roland Holstlaan 229
    _/_/_/_/ _/_/_/_/   _/    _/    2624 HG Delft, The Netherlands

  _/    _/       _/   _/    _/      http://www.veryComputer.com/~ripley
 _/     _/_/_/_/_/  _/_/_/_/        tel: (++31) (0) 15 2567785

----------------------------------------------------------------------

 
 
 

1. Error: Device error, press any key to continue.

I am trying to install Red Hat Linux 5.2 on a DEC Multia, one of the $99.00
boxes from CPU micromart.

I have tried various methods to boot the system, but I just can't get the
MILO disk to boot.  Each time I receive the error message in the subject
line after the system attempts to read the floppy.  I am using the noname
milo image, and setup the boot selection as described in various postings in
this group.

I have also replaced the CMOS battery.

Does anyone have any idea what is happening with the system?

2. matroxfb performance

3. Bash's `continue' isn't continuing

4. problem with the sun compilers.

5. Continued.... Continuing Problems with Apache

6. how to queue unix (linux) signal?

7. bus error, alloc error, segmentation fault

8. NS Enterprise on HP/UX 10.01 - SSI won't work!

9. How To Continue cpio'ing After Error?

10. Continue to get page load errors with Apache..

11. Error congiguring video card --"Cannot find server, cannot continue"

12. 555 Error - Continued

13. DNS errors continue