public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug bootstrap/31379]  New: make[3]: *** [s-gtype] Segmentation fault (core dumped)
@ 2007-03-28  0:04 danglin at gcc dot gnu dot org
  2007-03-28  1:35 ` [Bug bootstrap/31379] " danglin at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-03-28  0:04 UTC (permalink / raw)
  To: gcc-bugs

In stage1:

...
/bin/sh ../../gcc/gcc/../move-if-change tmp-gi.list gtyp-input.list
echo timestamp > s-gtyp-input
build/gengtype ../../gcc/gcc gtyp-input.list
make[3]: *** [s-gtype] Segmentation fault (core dumped)

(gdb) r ../../gcc/gcc gtyp-input.list
Starting program: /test/gnu/gcc/objdir/gcc/build/gengtype ../../gcc/gcc
gtyp-input.list
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.

Breakpoint 3 at 0xc002a800
Breakpoint 3 at 0x7af867fc

Program received signal SIGSEGV, Segmentation fault.
0x7aff5844 in __ldfcvt_r () from /usr/lib/libc.2
(gdb) bt
#0  0x7aff5844 in __ldfcvt_r () from /usr/lib/libc.2
#1  0x7aff5580 in _doprnt () from /usr/lib/libc.2
#2  0x7b007fbc in vsnprintf () from /usr/lib/libc.2
#3  0x00006be8 in oprintf (o=0x4000b6b8,
    format=0x14b48 "/* Type information for %s.\n")
    at ../../gcc/gcc/gengtype.c:1488
#4  0x00006af4 in create_file (name=0x14cdc "GCC",
    oname=0x14ce0 "gtype-desc.h") at ../../gcc/gcc/gengtype.c:1472
#5  0x00006d80 in open_base_files () at ../../gcc/gcc/gengtype.c:1528
#6  0x0000d250 in main (argc=3, argv=0x7eff04cc)
    at ../../gcc/gcc/gengtype.c:3560


-- 
           Summary: make[3]: *** [s-gtype] Segmentation fault (core dumped)
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: bootstrap
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
 GCC build triplet: hppa2.0w-hp-hpux11.11
  GCC host triplet: hppa2.0w-hp-hpux11.11
GCC target triplet: hppa2.0w-hp-hpux11.11


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


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

* [Bug bootstrap/31379] make[3]: *** [s-gtype] Segmentation fault (core dumped)
  2007-03-28  0:04 [Bug bootstrap/31379] New: make[3]: *** [s-gtype] Segmentation fault (core dumped) danglin at gcc dot gnu dot org
@ 2007-03-28  1:35 ` danglin at gcc dot gnu dot org
  2007-03-28  1:39 ` danglin at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-03-28  1:35 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from danglin at gcc dot gnu dot org  2007-03-28 02:35 -------
(gdb) p ap
$10 = (va_list) 0x7eff0718
(gdb) p (char *)0x7eff0718
$11 = 0x7eff0718 ""


-- 


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


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

* [Bug bootstrap/31379] make[3]: *** [s-gtype] Segmentation fault (core dumped)
  2007-03-28  0:04 [Bug bootstrap/31379] New: make[3]: *** [s-gtype] Segmentation fault (core dumped) danglin at gcc dot gnu dot org
  2007-03-28  1:35 ` [Bug bootstrap/31379] " danglin at gcc dot gnu dot org
@ 2007-03-28  1:39 ` danglin at gcc dot gnu dot org
  2007-03-29 23:19 ` danglin at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-03-28  1:39 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from danglin at gcc dot gnu dot org  2007-03-28 02:39 -------
This is more likely the problem:

(gdb) p *o
$7 = {next = 0x0, name = 0x14ce0 "gtype-desc.h", buflength = 0, bufused = 0,
  buf = 0x0}


-- 


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


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

* [Bug bootstrap/31379] make[3]: *** [s-gtype] Segmentation fault (core dumped)
  2007-03-28  0:04 [Bug bootstrap/31379] New: make[3]: *** [s-gtype] Segmentation fault (core dumped) danglin at gcc dot gnu dot org
  2007-03-28  1:35 ` [Bug bootstrap/31379] " danglin at gcc dot gnu dot org
  2007-03-28  1:39 ` danglin at gcc dot gnu dot org
@ 2007-03-29 23:19 ` danglin at gcc dot gnu dot org
  2007-03-29 23:22 ` sje at cup dot hp dot com
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-03-29 23:19 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from danglin at gcc dot gnu dot org  2007-03-30 00:19 -------
I tried the modification suggested by Paolo but had similar to Steve.
There's still an issue with extending the buffer (i.e., I get more
output if I initially make the buffer bigger).  However, there's still
junk at the end.


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |sje at cup dot hp dot com,
                   |                            |bonzini at gnu dot org,
                   |                            |zackw at panix dot com


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


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

* [Bug bootstrap/31379] make[3]: *** [s-gtype] Segmentation fault (core dumped)
  2007-03-28  0:04 [Bug bootstrap/31379] New: make[3]: *** [s-gtype] Segmentation fault (core dumped) danglin at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2007-03-29 23:19 ` danglin at gcc dot gnu dot org
@ 2007-03-29 23:22 ` sje at cup dot hp dot com
  2007-03-29 23:32 ` dave at hiauly1 dot hia dot nrc dot ca
  2007-03-30 23:51 ` danglin at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: sje at cup dot hp dot com @ 2007-03-29 23:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from sje at cup dot hp dot com  2007-03-30 00:22 -------
This has been fixed for me with this patch:

2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>

        * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
        add comment explaining why vsnprintf cannot be used.


-- 


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


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

* [Bug bootstrap/31379] make[3]: *** [s-gtype] Segmentation fault (core dumped)
  2007-03-28  0:04 [Bug bootstrap/31379] New: make[3]: *** [s-gtype] Segmentation fault (core dumped) danglin at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2007-03-29 23:22 ` sje at cup dot hp dot com
@ 2007-03-29 23:32 ` dave at hiauly1 dot hia dot nrc dot ca
  2007-03-30 23:51 ` danglin at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2007-03-29 23:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from dave at hiauly1 dot hia dot nrc dot ca  2007-03-30 00:32 -------
Subject: Re:  make[3]: *** [s-gtype] Segmentation fault (core dumped)

> This has been fixed for me with this patch:
> 
> 2007-03-29  Zack Weinberg  <zack@mrtock.ucsd.edu>
> 
>         * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
>         add comment explaining why vsnprintf cannot be used.

Thanks for the pointer.  I'll update and close the PR if the problem
is fixed.

Dave


-- 


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


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

* [Bug bootstrap/31379] make[3]: *** [s-gtype] Segmentation fault (core dumped)
  2007-03-28  0:04 [Bug bootstrap/31379] New: make[3]: *** [s-gtype] Segmentation fault (core dumped) danglin at gcc dot gnu dot org
                   ` (4 preceding siblings ...)
  2007-03-29 23:32 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2007-03-30 23:51 ` danglin at gcc dot gnu dot org
  5 siblings, 0 replies; 7+ messages in thread
From: danglin at gcc dot gnu dot org @ 2007-03-30 23:51 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from danglin at gcc dot gnu dot org  2007-03-31 00:51 -------
Fixed.


-- 

danglin at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2007-03-30 23:51 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-28  0:04 [Bug bootstrap/31379] New: make[3]: *** [s-gtype] Segmentation fault (core dumped) danglin at gcc dot gnu dot org
2007-03-28  1:35 ` [Bug bootstrap/31379] " danglin at gcc dot gnu dot org
2007-03-28  1:39 ` danglin at gcc dot gnu dot org
2007-03-29 23:19 ` danglin at gcc dot gnu dot org
2007-03-29 23:22 ` sje at cup dot hp dot com
2007-03-29 23:32 ` dave at hiauly1 dot hia dot nrc dot ca
2007-03-30 23:51 ` danglin 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).