linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: Segmentation fault
       [not found] <1328439575.20020411104849@kgpa.ru>
@ 2002-04-16 19:29 ` Kurt Kehler
  0 siblings, 0 replies; 3+ messages in thread
From: Kurt Kehler @ 2002-04-16 19:29 UTC (permalink / raw)
  To: linux-c-programming

Oleg,

I'm adding this back in to the list.

On Thu, 11 Apr 2002, Oleg O. Ossovitskii wrote:

> Which hardware do You use? Which system do You use (kernel, glibc)?
> Does Your computer has FPU ? Try specify switch to gcc, that talk
> them use FPU emulate library. Unfortunately I don't remember which
> switch You should use.
> 
> I try use another compiler.
> 
> P.S. sorry for my poor english

My hardware is a 200mhz Pentium MMX running Slackware 4.0 with kernel
2.2.6.  dmesg reports "Intel Pentium with F0 0F bug - workaround
enabled."  I'm not sure that is relevant.  I tried several gcc
switches (-mno-486, -mno-fp-ret-in-387, -msoft-float) which didn't
work.  When I added the -O2 switch to gcc and ran a.out under gdb
I got:

Program received signal SIGSEGV, Segmentation fault.
0x40060607 in ldiv () from /lib/libc.so.5

What did work was booting Slackware 7.1 which uses egcs-2.91.66.
So there must be a problem with Slackware 4.0's libc5?  I realize
it is time to switch to more recent software.

Thanks Oleg,
Kurt Kehler


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

* Re: Segmentation fault
       [not found] <20020411084352.65e693fe.subscript@free.fr>
@ 2002-04-16 19:30 ` Kurt Kehler
  0 siblings, 0 replies; 3+ messages in thread
From: Kurt Kehler @ 2002-04-16 19:30 UTC (permalink / raw)
  To: linux-c-programming

On Thu, 11 Apr 2002, wwp wrote:

> It silently compiles and successfully runs for me (GNU/Linux x86;
> k2.4.18; gcc 2.95.3).

Thanks wwp for taking the time to do this.

Kurt Kehler


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

* Re: Segmentation fault
       [not found] <OF5DFD5B6D.7D47A4C9-ON65256B98.0022D8F5@pune.tcs.co.in>
@ 2002-04-16 19:30 ` Kurt Kehler
  0 siblings, 0 replies; 3+ messages in thread
From: Kurt Kehler @ 2002-04-16 19:30 UTC (permalink / raw)
  To: linux-c-programming

On Thu, 11 Apr 2002, Hemant Mohan wrote:

> I compiled this code with gcc-3.0.3  and ran it.  It displays the output as:
> 
> Easter in 2002 on 3/31
> 
> There was no segmentation fault or any other messages. Attachment easter.c 
> contains the source code with a small modification from yours. I only moved 
> the #include <stdio.h> line before the definition of easter().

Hemant,

Thanks for taking the time to do this.  Moving the #include <stdio.h> did
not prevent the segmentation fault.

Kurt Kehler


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

end of thread, other threads:[~2002-04-16 19:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <OF5DFD5B6D.7D47A4C9-ON65256B98.0022D8F5@pune.tcs.co.in>
2002-04-16 19:30 ` Segmentation fault Kurt Kehler
     [not found] <20020411084352.65e693fe.subscript@free.fr>
2002-04-16 19:30 ` Kurt Kehler
     [not found] <1328439575.20020411104849@kgpa.ru>
2002-04-16 19:29 ` Kurt Kehler

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).