public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c/4263: Segmentation fault on initialization with pointer to the array.
@ 2002-01-29 13:48 neil
  0 siblings, 0 replies; 3+ messages in thread
From: neil @ 2002-01-29 13:48 UTC (permalink / raw)
  To: feliks, gcc-bugs, gcc-prs, nobody

Synopsis: Segmentation fault on initialization with pointer to the array.

State-Changed-From-To: open->feedback
State-Changed-By: neil
State-Changed-When: Tue Jan 29 13:48:14 2002
State-Changed-Why:
    This appears fixed in the latest 3.0; I get
    /tmp/foo.c:12: warning: initialization from incompatible pointer type
    /tmp/foo.c:14: warning: initialization from incompatible pointer type
    
    Could you please confirm it is gone for you?

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4263


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

* Re: c/4263: Segmentation fault on initialization with pointer to the array.
@ 2002-02-17 18:53 rodrigc
  0 siblings, 0 replies; 3+ messages in thread
From: rodrigc @ 2002-02-17 18:53 UTC (permalink / raw)
  To: feliks, gcc-bugs, gcc-prs, nobody

Synopsis: Segmentation fault on initialization with pointer to the array.

State-Changed-From-To: feedback->closed
State-Changed-By: rodrigc
State-Changed-When: Sun Feb 17 18:53:29 2002
State-Changed-Why:
    No feedback.  Testcase does not compile with gcc 3.0.3

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4263


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

* c/4263: Segmentation fault on initialization with pointer to the array.
@ 2001-09-07 17:26 feliks
  0 siblings, 0 replies; 3+ messages in thread
From: feliks @ 2001-09-07 17:26 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4263
>Category:       c
>Synopsis:       Segmentation fault on initialization with pointer to the array.
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 07 17:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Feliks J. Welfeld
>Release:        3.0.1, but also 3.0
>Organization:
>Environment:
The same problem occurs on the CodeSourcery's Online Test Compilation system,
and with two builds of the compiler as documented below ( native Linux and
cross-compiler from Linux to Linux )

Configured with: /vol/tools/sw_build/src/gcc-3.0.1/configure --prefix=/vol/tools
/sw_build/gcc-3.0.1_2.11.2 --exec-prefix=/vol/tools/sw_build/gcc-3.0.1_2.11.2/i5
86-pc-linux-gnu --host=i586-pc-linux-gnu --target=i586-pc-linux-gnu --enable-sha
red --enable-languages=c,c++ --disable-multilib --with-gnu-as --with-gnu-ld --wi
th-as=/vol/tools/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu/bin/as --with-ld=/v
ol/tools/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu/bin/ld : (reconfigured) /vo
l/tools/sw_build/src/gcc-3.0.1/configure --prefix=/vol/tools/sw_build/gcc-3.0.1_
2.11.2 --exec-prefix=/vol/tools/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu --ho
st=i586-pc-linux-gnu --target=i586-pc-linux-gnu --enable-shared --enable-languag
es=c,c++ --disable-multilib --with-gnu-as --with-gnu-ld --with-as=/vol/tools/sw_
build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu/bin/as --with-ld=/vol/tools/sw_build/gc
c-3.0.1_2.11.2/i586-pc-linux-gnu/bin/ld : (reconfigured) /vol/tools/sw_build/src
/gcc-3.0.1/configure --prefix=/vol/tools/sw_build/gcc-3.0.1_2.11.2 --exec-prefix
=/vol/tools/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu --host=i586-pc-linux-gnu
 --target=i586-pc-linux-gnu --enable-shared --enable-languages=c,c++ --disable-m
ultilib --with-gnu-as --with-gnu-ld --with-as=/vol/tools/sw_build/gcc-3.0.1_2.11
.2/i586-pc-linux-gnu/bin/as --with-ld=/vol/tools/sw_build/gcc-3.0.1_2.11.2/i586-
pc-linux-gnu/bin/ld
Thread model: single
gcc version 3.0.1

Configured with: /vol/tools/sw_build/src/gcc-3.0.1/configure --prefix=/vol/tools
/sw_build/gcc-3.0.1_2.11.2 --exec-prefix=/vol/tools/sw_build/gcc-3.0.1_2.11.2/i5
86-pc-linux-gnu --host=i586-pc-linux-gnu --target=i386-pc-linux-gnu --enable-sha
red --disable-multilib --with-headers=/vol/tools/sw_build/glibc-2.2.3/i586-pc-li
nux-gnu/include --with-libs=/vol/tools/sw_build/glibc-2.2.3/i586-pc-linux-gnu/li
b --enable-languages=c,c++,java --with-gnu-as --with-gnu-ld --with-as=/vol/tools
/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu/bin/i386-pc-linux-gnu-as --with-ld=
/vol/tools/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu/bin/i386-pc-linux-gnu-ld
: (reconfigured) /vol/tools/sw_build/src/gcc-3.0.1/configure --prefix=/vol/tools
/sw_build/gcc-3.0.1_2.11.2 --exec-prefix=/vol/tools/sw_build/gcc-3.0.1_2.11.2/i5
86-pc-linux-gnu --host=i586-pc-linux-gnu --target=i386-pc-linux-gnu --enable-sha
red --disable-multilib --with-headers=/vol/tools/sw_build/glibc-2.2.3/i586-pc-li
nux-gnu/include --with-libs=/vol/tools/sw_build/glibc-2.2.3/i586-pc-linux-gnu/li
b --enable-languages=c,c++,java --with-gnu-as --with-gnu-ld --with-as=/vol/tools
/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu/bin/i386-pc-linux-gnu-as --with-ld=
/vol/tools/sw_build/gcc-3.0.1_2.11.2/i586-pc-linux-gnu/bin/i386-pc-linux-gnu-ld
Thread model: single
gcc version 3.0.1

>Description:
When compiling very simple program given below,
following output is produced:

$gcc -c ~/gccSegfaultCase.c
/home/feliks/gccSegfaultCase.c:13: Internal error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.
$cat -n ~/gccSegfaultCase.c
     1
     2  typedef struct abc_info_t {
     3    long   segments;           /**< number of segments present */
     4    long (*segment_sizes)[];   /**< array of sizes of said segments */
     5    long (*segment_offsets)[]; /**< the offsets of said  segments   */
     6  } abc_info_t;
     7
     8  static long default_sizes[] = { 0x100000 }; /* 2^20 64-bit words */
     9  static long default_offsets[] = { 0x0 };    /* starts from 0 */
    10
    11  static abc_info_t default_abc_info = {
    12      1,
    13      &default_sizes,
    14      &default_offsets
    15  };
    16
$

>How-To-Repeat:
See description
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-02-18  2:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-01-29 13:48 c/4263: Segmentation fault on initialization with pointer to the array neil
  -- strict thread matches above, loose matches on Subject: below --
2002-02-17 18:53 rodrigc
2001-09-07 17:26 feliks

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