public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ada/22285] New: __gnat_is_absolute_path: Segmentation fault
@ 2005-07-03 16:07 danglin at gcc dot gnu dot org
  2005-09-06 12:09 ` [Bug ada/22285] " charlet at gcc dot gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-07-03 16:07 UTC (permalink / raw)
  To: gcc-bugs

../../gnatmake -c -I../rts -I. -I/test/gnu/gcc-3.3/gcc/gcc/ada gnatchop --GCC=".
./../xgcc -B../../ -g -O2 -mdisable-indexing     -gnatpg -gnata"

raised STORAGE_ERROR : stack overflow or erroneous memory access
make[3]: *** [../../gnatchop] Error 1
make[3]: Leaving directory `/test/gnu/gcc-3.3/objdir/gcc/ada/tools'
make[2]: *** [gnattools-native] Error 2

# gdb ../../gnatmake
GNU gdb 6.3.50.20050210-cvs
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "hppa2.0w-hp-hpux11.11"...
(gdb) r `cat xxx.sh`
Starting program: /test/gnu/gcc-3.3/objdir/gcc/gnatmake `cat xxx.sh`

Program received signal SIGSEGV, Segmentation fault.
0x00142348 in __gnat_is_absolute_path ()
(gdb) disass 0x00142338 0x00142358
Dump of assembler code from 0x142338 to 0x142358:
0x00142338 <__gnat_file_exists+40>:     bv r0(rp)
0x0014233c <__gnat_file_exists+44>:     ldo -c0(sp),sp
0x00142340 <__gnat_is_absolute_path+0>: cmpib,= 0,r25,0x142354 <
__gnat_is_absolute_path+20>
0x00142344 <__gnat_is_absolute_path+4>: ldi 0,ret0
0x00142348 <__gnat_is_absolute_path+8>: ldb 0(,r26),ret0
0x0014234c <__gnat_is_absolute_path+12>:        cmpiclr,<> 2f,ret0,ret0
0x00142350 <__gnat_is_absolute_path+16>:        ldi 1,ret0
0x00142354 <__gnat_is_absolute_path+20>:        bv,n r0(rp)
End of assembler dump.
(gdb) p/x $r26
$1 = 0x0
(gdb) bt
#0  0x00142348 in __gnat_is_absolute_path ()
#1  0x00134720 in gnat__os_lib__is_absolute_path ()
#2  0x00112ec8 in tempdir___elabb ()
#3  0x00008a3c in adainit ()
#4  0x00008e90 in main ()

Null pointer passed from gnat__os_lib__is_absolute_path is the problem.

-- 
           Summary: __gnat_is_absolute_path: Segmentation fault
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ada
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: danglin at gcc dot gnu dot org
                CC: gcc-bugs 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=22285


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

* [Bug ada/22285] __gnat_is_absolute_path: Segmentation fault
  2005-07-03 16:07 [Bug ada/22285] New: __gnat_is_absolute_path: Segmentation fault danglin at gcc dot gnu dot org
@ 2005-09-06 12:09 ` charlet at gcc dot gnu dot org
  2005-09-07 22:43 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-09-07 22:45 ` danglin at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: charlet at gcc dot gnu dot org @ 2005-09-06 12:09 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From charlet at gcc dot gnu dot org  2005-09-06 12:08 -------
Do you still see the problem ?
Note that from the code, a null pointer can never be passed to the
C routine, so it has to be a codegen problem, if still present.

Arno

-- 


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


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

* [Bug ada/22285] __gnat_is_absolute_path: Segmentation fault
  2005-07-03 16:07 [Bug ada/22285] New: __gnat_is_absolute_path: Segmentation fault danglin at gcc dot gnu dot org
  2005-09-06 12:09 ` [Bug ada/22285] " charlet at gcc dot gnu dot org
@ 2005-09-07 22:43 ` dave at hiauly1 dot hia dot nrc dot ca
  2005-09-07 22:45 ` danglin at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: dave at hiauly1 dot hia dot nrc dot ca @ 2005-09-07 22:43 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dave at hiauly1 dot hia dot nrc dot ca  2005-09-07 22:43 -------
Subject: Re:  __gnat_is_absolute_path: Segmentation fault

> Do you still see the problem ?

This is fixed.

Dave


-- 


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


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

* [Bug ada/22285] __gnat_is_absolute_path: Segmentation fault
  2005-07-03 16:07 [Bug ada/22285] New: __gnat_is_absolute_path: Segmentation fault danglin at gcc dot gnu dot org
  2005-09-06 12:09 ` [Bug ada/22285] " charlet at gcc dot gnu dot org
  2005-09-07 22:43 ` dave at hiauly1 dot hia dot nrc dot ca
@ 2005-09-07 22:45 ` danglin at gcc dot gnu dot org
  2 siblings, 0 replies; 4+ messages in thread
From: danglin at gcc dot gnu dot org @ 2005-09-07 22:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From danglin at gcc dot gnu dot org  2005-09-07 22:45 -------
No longer occurs.

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


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


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

end of thread, other threads:[~2005-09-07 22:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-03 16:07 [Bug ada/22285] New: __gnat_is_absolute_path: Segmentation fault danglin at gcc dot gnu dot org
2005-09-06 12:09 ` [Bug ada/22285] " charlet at gcc dot gnu dot org
2005-09-07 22:43 ` dave at hiauly1 dot hia dot nrc dot ca
2005-09-07 22:45 ` 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).