public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults
@ 2004-07-03  8:49 cherylgpepper at comcast dot net
  2004-07-04  3:55 ` [Bug ada/16345] " cherylgpepper at comcast dot net
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: cherylgpepper at comcast dot net @ 2004-07-03  8:49 UTC (permalink / raw)
  To: gcc-bugs

The program available at this address:

http://users.erols.com/whitaker/wordsall.zip

compiles and executes correctly on native i686, but when cross-compiled for arm
the resulting "words" executable prints out some introductory text and a prompt,
but then segfaults as soon as any input is entered. The three helper programs
"makedict", "makestem", and "makeinfl" execute and generate their output files
correctly on arm, only the "words" program appears to be broken. It compiles
with no warnings even with -pedantic and -Wall options, so if there are any
errors in the code the compiler is not detecting them. I wouldn't expect bad Ada
code to just segfault, anyway, because Ada has bounds checking and lacks
pointers. I am trying to isolate the problem and produce a test case, but that
is difficult because I don't know Ada very well. I'd be happy to provide any
extra information that could be helpful.

-- 
           Summary: ada cross-compiler for arm generates bad code -
                    resulting executable segfaults
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: cherylgpepper at comcast dot net
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: arm-unknown-linux-gnu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16345


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

* [Bug ada/16345] ada cross-compiler for arm generates bad code - resulting executable segfaults
  2004-07-03  8:49 [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults cherylgpepper at comcast dot net
@ 2004-07-04  3:55 ` cherylgpepper at comcast dot net
  2004-07-04 20:37 ` cherylgpepper at comcast dot net
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cherylgpepper at comcast dot net @ 2004-07-04  3:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cherylgpepper at comcast dot net  2004-07-04 03:55 -------
I just cross-built ada-enabled gdb so hopefully I will be able to provide some
more helpful information.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16345


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

* [Bug ada/16345] ada cross-compiler for arm generates bad code - resulting executable segfaults
  2004-07-03  8:49 [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults cherylgpepper at comcast dot net
  2004-07-04  3:55 ` [Bug ada/16345] " cherylgpepper at comcast dot net
@ 2004-07-04 20:37 ` cherylgpepper at comcast dot net
  2004-07-04 20:48 ` cherylgpepper at comcast dot net
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cherylgpepper at comcast dot net @ 2004-07-04 20:37 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cherylgpepper at comcast dot net  2004-07-04 20:37 -------
OK, gnat-gdb-5.3 is up and running on my zaurus, but it's still not much help
because there's some problem with the debugging format (I compiled with the
command "gnatmake -g words"):

Die: DW_TAG_subrange_type (abbrev = 5, offset = 351607)
        has children: FALSE
        attributes:
                DW_AT_name (DW_FORM_string) string: "natural___XDLU_0__2147483647"
                DW_AT_lower_bound (DW_FORM_data1) constant: 0
                DW_AT_upper_bound (DW_FORM_data4) constant: 2147483647
                DW_AT_type (DW_FORM_ref4) constant: 121
Dwarf Error: Cannot find type of die.

I'm experimenting with different debugging formats to see if I can get an actual
backtrace or something.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16345


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

* [Bug ada/16345] ada cross-compiler for arm generates bad code - resulting executable segfaults
  2004-07-03  8:49 [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults cherylgpepper at comcast dot net
  2004-07-04  3:55 ` [Bug ada/16345] " cherylgpepper at comcast dot net
  2004-07-04 20:37 ` cherylgpepper at comcast dot net
@ 2004-07-04 20:48 ` cherylgpepper at comcast dot net
  2004-07-04 21:23 ` cherylgpepper at comcast dot net
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: cherylgpepper at comcast dot net @ 2004-07-04 20:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cherylgpepper at comcast dot net  2004-07-04 20:48 -------
I deleted all the binary files and recompiled with "gnatmake -gstabs words", but
gdb still had dwarf errors. So either gdb isn't recognizing the correct
debugging format or the gnat compiler is putting in broken debugging info. This
happens both on native i686 and cross-compiling for arm. Of course I know next
to nothing about stabs, dwarf, etc. so I could really use some help.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16345


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

* [Bug ada/16345] ada cross-compiler for arm generates bad code - resulting executable segfaults
  2004-07-03  8:49 [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults cherylgpepper at comcast dot net
                   ` (2 preceding siblings ...)
  2004-07-04 20:48 ` cherylgpepper at comcast dot net
@ 2004-07-04 21:23 ` cherylgpepper at comcast dot net
  2004-09-09  8:49 ` charlet at gcc dot gnu dot org
  2004-12-05 16:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: cherylgpepper at comcast dot net @ 2004-07-04 21:23 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cherylgpepper at comcast dot net  2004-07-04 21:23 -------
Tried it again and now I realize it doesn't always segfault on every input, in
fact I noticed that if you type in, for example, "remotus" as the first word, it
segfaults, but if you type in "in", "de", "quam", and "remotus" in order it
parses and analyzes all of them perfectly without segfaulting. It seems pretty
random which combinations of words make it work, but it definitely makes me
think it's a problem with memory allocation or garbage collecting or something.
Someone please help!

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16345


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

* [Bug ada/16345] ada cross-compiler for arm generates bad code - resulting executable segfaults
  2004-07-03  8:49 [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults cherylgpepper at comcast dot net
                   ` (3 preceding siblings ...)
  2004-07-04 21:23 ` cherylgpepper at comcast dot net
@ 2004-09-09  8:49 ` charlet at gcc dot gnu dot org
  2004-12-05 16:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: charlet at gcc dot gnu dot org @ 2004-09-09  8:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From charlet at gcc dot gnu dot org  2004-09-09 08:49 -------
This report is really too general: could you please reduce the problem to a
workable test case, with very precise intructions on how to reproduce
the bug.

Also, it's likely a code generation problem from what you are saying, rather
than an Ada bug.

Arno

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |WAITING


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16345


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

* [Bug ada/16345] ada cross-compiler for arm generates bad code - resulting executable segfaults
  2004-07-03  8:49 [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults cherylgpepper at comcast dot net
                   ` (4 preceding siblings ...)
  2004-09-09  8:49 ` charlet at gcc dot gnu dot org
@ 2004-12-05 16:55 ` pinskia at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-12-05 16:55 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-05 16:55 -------
No feedback in 3 months (T-4 days).

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16345


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

end of thread, other threads:[~2004-12-05 16:55 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-03  8:49 [Bug ada/16345] New: ada cross-compiler for arm generates bad code - resulting executable segfaults cherylgpepper at comcast dot net
2004-07-04  3:55 ` [Bug ada/16345] " cherylgpepper at comcast dot net
2004-07-04 20:37 ` cherylgpepper at comcast dot net
2004-07-04 20:48 ` cherylgpepper at comcast dot net
2004-07-04 21:23 ` cherylgpepper at comcast dot net
2004-09-09  8:49 ` charlet at gcc dot gnu dot org
2004-12-05 16:55 ` pinskia at gcc dot gnu dot org

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