Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion segmentation fault (SIGSEGV)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Louis Krupp  
View profile  
 More options Jun 2 2010, 8:54 am
Newsgroups: comp.lang.fortran
From: Louis Krupp <lkrupp_nos...@indra.com.invalid>
Date: Wed, 02 Jun 2010 06:54:12 -0600
Local: Wed, Jun 2 2010 8:54 am
Subject: Re: segmentation fault (SIGSEGV)
On 6/2/2010 6:24 AM, mecej4 wrote:

> dpb wrote:

>> Louis Krupp wrote:
>>> On 6/1/2010 9:40 PM, Ron Shepard wrote:
>> ...
>>>> You must be thinking of some other language.  Other languages do
>>>> sometimes do silent conversions to match arguments.

>>> So reals aren't truncated to integers?

>> In argument lists?  No, a REAL in a CALL statement for a routine
>> expecting an INTEGER will generate a mismatched argument type error (in
>> the module during compilation) and a mismatched call if forced to link
>> outside of one where a compiler may not be able to tell of the mismatch.

>> --
> To add to what dpb said: If the expected INTEGER is used as a subscript but
> a real (or another mismatched type) was passed instead, a prompt SEGFAULT
> may be expected.

Likely (given the format of IEEE floating point, for example), but not
necessarily (if a high virtual address plus garbage with high-order bits
turned on wrap around to a low, valid virtual address).

The same thing would happen in that Other Language with which I'm more
familiar.

Louis


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.