public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: "Richard B. Kreckel" <kreckel@ginac.de>
To: ro@gcc.gnu.org
Cc: gcc-prs@gcc.gnu.org,
Subject: Re: target/5505: Doubts about a patch for OSF
Date: Sat, 23 Feb 2002 14:12:00 -0000	[thread overview]
Message-ID: <20020223210601.19639.qmail@sources.redhat.com> (raw)

The following reply was made to PR target/5505; it has been noted by GNATS.

From: "Richard B. Kreckel" <kreckel@ginac.de>
To: Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
Cc: gcc-bugs@gcc.gnu.org, gcc-gnats@gcc.gnu.org
Subject: Re: target/5505: Doubts about a patch for OSF
Date: Sat, 23 Feb 2002 22:03:28 +0100 (CET)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
   Send mail to mime@docserver.cac.washington.edu for more info.
 
 --1569097344-122519837-1014498208=:18949
 Content-Type: TEXT/PLAIN; charset=US-ASCII
 
 Hi,
 
 On Fri, 22 Feb 2002, Rainer Orth wrote:
 > Richard B. Kreckel writes:
 > 
 > > Rainer, you probably know by now that this whole issue has nothing to do
 > > at all with CLN?  It seems like your patch breaks anything when using
 > 
 > most likely, yes.
 > 
 > > -fno-exceptions.  Attached is a trial program that only uses doubles and
 > 
 > Only in combination with -O2, it seems.
 > 
 > > some STL containers.  (Sorry for not boiling it down from 100 to 10 lines,
 > > I have unfortunately very little time right now.)
 > 
 > Please try to do so: my knowledge of C++ is close to zero, so a minimal
 > testcase would help enormously.
 
 Sure, I will, next week.  Sorry, again I am only for a couple of minutes
 in my office...
 
 > > Can you confirm this?  Otherwise we are back with the theory that my boxen
 > > are broken / patched wrongly...
 > 
 > Not yet: I get a SEGV even if compiling without any special options:
 > 
 > > g++ -o minor minor.cc
 > > ./minor
 > permanent of 6x6-matrix
 > c==4Segmentation fault
 > 
 > The crash happens in minor.c, l. 80:
 > 
 > 80                          Pkey[j] = Pkey[j-1]+1;
 > 
 > j = 0 at this point, so Pkey[j-1] is out of bounds.  The crash happens when
 > compiling with Compaq cxx as well.
 
 Sorry, silly me.  I've attached an old case and that index out of bound
 has been fixed in the real sources ages ago.  However, the crash I see
 seems to have nothing to do with this line!  Modifying the condition such
 that j==0 does not happen still results in a crashing program when
 compiled with -O2 -fno-exceptions and a working program when compiled with
 -O2 alone.  There is an example modified accordingly attached to this
 email and this time I have made sure it also runs with -lefence and stuff.
 
 If you have some time, it would be nice if you could confirm the
 dependence on -fno-exceptions before I start stripping that down.  Thanks!
 
 Regards
     -richy.
 -- 
 Richard B. Kreckel
 <Richard.Kreckel@Uni-Mainz.DE>
 <http://wwwthep.physik.uni-mainz.de/~kreckel/>
 
 
 --1569097344-122519837-1014498208=:18949
 Content-Type: TEXT/x-c++src; name="minor.cc"
 Content-Transfer-Encoding: BASE64
 Content-ID: <Pine.LNX.4.21.0202232203280.18949@higgs.physik.uni-mainz.de>
 Content-Description: minor.cc
 Content-Disposition: attachment; filename="minor.cc"
 
 I2luY2x1ZGUgPGNtYXRoPg0KI2luY2x1ZGUgPGlvc3RyZWFtPg0KI2luY2x1
 ZGUgPHZlY3Rvcj4NCiNpbmNsdWRlIDxtYXA+DQojaW5jbHVkZSA8YWxnb3Jp
 dGhtPg0KdXNpbmcgbmFtZXNwYWNlIHN0ZDsNCg0KaW50IHNpemUgPSA3Ow0K
 DQp2b2lkIGluaXQodmVjdG9yPGRvdWJsZT4gJiB2KQ0Kew0KICAgIHYuY2xl
 YXIoKTsNCiAgICBmb3IgKGludCBpPTA7IGk8c2l6ZSpzaXplOyArK2kpDQog
 ICAgICAgIHYucHVzaF9iYWNrKCgxMC4wKnJhbmQoKSkvKFJBTkRfTUFYKzEu
 MCktNS4wKTsNCn0NCg0KZG91YmxlIGRldF9taW5vcihjb25zdCB2ZWN0b3I8
 ZG91YmxlPiAmdikNCnsNCiAgICAvLyBmb3Igc21hbGwgbWF0cmljZXMgdGhl
 IGFsZ29yaXRobSBkb2VzIG5vdCBtYWtlIHNlbnNlOg0KICAg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2lnbmVkIGk9MDsgaTxzaXplLWM7
 ICsraSkNCiAgICAgICAgICAgICAgICAgICAgaWYgKGkhPXIpDQogICAgICAg
 ICAgICAgICAgICAgICAgICBNa2V5LnB1c2hfYmFjayhQa2V5W2ldKTsNCiAg
 ICAgICAgICAgICAgICAvLyBmZXRjaCB0aGUgbWlub3JzIGFuZCBjb21wdXRl
 IHRoZSBuZXcgZGV0ZXJtaW5hbnQNCiAgICAgICAgICAgICAgICBpZiAociUy
 KQ0KICAgICAgICAgICAgICAgICAgICBkZXQgLT0gdltQa2V5W3JdKnNpemUr
 Y10qQVtNa2V5XTsNCiAgICAgICAgICAgICAgICBlbHNlDQogICAgICAgICAg
 ICAgICAgICAgIGRldCArPSB2W1BrZXlbcl0qc2l6ZStjXSpBW01rZXldOw0K
 ICAgICAgICAgICAgfQ0KICAgICAgICAgICAgLy8gU3RvcmUgdGhlIG5ldyBk
 ZXRlcm1pbmFudCBhdCBpdHMgcGxhY2UgaW4gQjoNCiAgICAgICAgICAgIGlm
 IChkZXQhPTAuMCkNCiAgICAgICAgICAgICAgICBCLmluc2VydChSbWFwX3Zh
 bHVlKFBrZXksZGV0KSk7DQogICAgICAgICAgICAvLyBpbmNyZW1lbnQgb3Vy
 IHN0cmFuZ2UgZmxpcHBlciBjb3VudGVyDQogICAgICAgICAgICBmb3IgKGZj
 PXNpemUtYzsgZmM+MDsgLS1mYykgew0KICAgICAgICAgICAgICAgICsrUGtl
 eVtmYy0xXTsNCiAgICAgICAgICAgICAgICBpZiAoUGtleVtmYy0xXTxmYytj
 KQ0KICAgICAgICAgICAgICAgICAgICBicmVhazsNCiAgICAgICAgICAgIH0N
 CiAgICAgICAgICAgIGlmIChmYzxzaXplLWMgJiYgZmM+MCkNCiAgICAgICAg
 ICAgICAgICBmb3IgKHVuc2lnbmVkIGo9ZmM7IGo8c2l6ZS1jOyArK2opDQog
 ICAgICAgICAgICAgICAgICAgIFBrZXlbal0gPSBQa2V5W2otMV0rMTsNCiAg
 ICAgICAgfSB3aGlsZShmYyk7DQogICAgICAgIC8vIGNoYW5nZSB0aGUgcm9s
 ZSBvZiBBIGFuZCBCOg0KICAgICAgICBBID0gQjsNCiAgICAgICAgQi5jbGVh
 cigpOw0KCWNsb2cgPDwgZW5kbDsNCiAgICB9DQoNCiAgICByZXR1cm4gZGV0
 Ow0KfQ0KDQppbnQgbWFpbih2b2lkKQ0Kew0KICAgIHNyYW5kKCh1bnNpZ25l
 ZCl0aW1lKE5VTEwpKTsNCiAgICBkb3VibGUgZDA7DQogICAgdmVjdG9yPGRv
 dWJsZT4gbTsNCiAgICBmb3IgKHNpemU9Njsgc2l6ZTwxMTsgKytzaXplKSB7
 DQogICAgICAgIGNvdXQgPDwgImRldGVybWluYW50IG9mICIgPDwgc2l6ZSA8
 PCAieCIgPDwgc2l6ZSA8PCAiLW1hdHJpeCIgPDwgZW5kbDsNCiAgICAgICAg
 Zm9yIChpbnQgaT0wOyBpPDIwOyArK2kpIHsNCiAgICAgICAgICAgIGluaXQo
 bSk7DQogICAgICAgICAgICBkMCA9IGRldF9taW5vcihtKTsNCiAgICAgICAg
 ICAgIGNvdXQgPDwgZDAgPDwgZW5kbDsNCiAgICAgICAgfQ0KICAgIH0NCn0N
 Cg==
 --1569097344-122519837-1014498208=:18949--


             reply	other threads:[~2002-02-23 21:06 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-02-23 14:12 Richard B. Kreckel [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-05-10  5:36 Rainer Orth
2002-05-10  5:27 ro
2002-05-09 10:56 Richard B. Kreckel
2002-04-16 10:56 Rainer Orth
2002-02-25  8:58 Rainer Orth
2002-02-22 15:46 Rainer Orth
2002-02-22 14:16 Rainer Orth
2002-02-21 16:21 Richard B. Kreckel
2002-02-20  9:36 Richard B. Kreckel
2002-02-19  5:26 Rainer Orth
2002-02-18 12:56 Richard B. Kreckel
2002-02-04 11:06 Rainer Orth
2002-02-04 11:06 Richard B. Kreckel
2002-01-30  6:14 ro
2002-01-27  6:26 kreckel

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020223210601.19639.qmail@sources.redhat.com \
    --to=kreckel@ginac.de \
    --cc=gcc-prs@gcc.gnu.org \
    --cc=ro@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).