[Bug target/12588] [3.4 Regression] ICE in function_value

pinskia at physics dot uc dot edu gcc-bugzilla@gcc.gnu.org
Sat Oct 25 03:40:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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



------- Additional Comments From pinskia at physics dot uc dot edu  2003-10-25 02:46 -------
Subject: Re:  [3.4 Regression] ICE in function_value

> Yes, it no longer ICEs. But this code seg faults:
>
> #include <iostream>
> int
> main(int, char **)
> {
>     return 0;
> }
>
> Results from gdb 5.3:
>
> warning: Hit heuristic-fence-post without finding
> warning: enclosing function for address 0xa09f000000200
> This warning occurs if you are debugging a function without any symbols
> (for example, in a stripped executable).  In that case, you may wish to
> increase the size of the search with the `set heuristic-fence-post' 
> command.
>
> Otherwise, you told GDB there was a function where there isn't one, or
> (more likely) you have encountered a bug in GDB.
>
> warning: Hit heuristic-fence-post without finding
> warning: enclosing function for address 0xa09f000000200
> #0  0x000a09f000000200 in ?? ()
> (gdb) bt
> #0  0x000a09f000000200 in ?? ()
> #1  0x0000020000099d10 in _Impl (this=0x2000013ff80, 
> __refs=2199024562468)
>     at ../../../../gcc/libstdc++-v3/src/locale_init.cc:256
> #2  0x0000020000099d10 in _Impl (this=Cannot access memory at address 
> 0x18
> )
>     at ../../../../gcc/libstdc++-v3/src/locale_init.cc:256
> Cannot access memory at address 0x40
> (gdb)
>

Please report a new bug because this looks like a different bug and one 
in libstdc++.
The reason why the symbols are not there because there is a call to 
strcpy at locale_init.cc:256.

Thanks,
Andrew Pinski



More information about the Gcc-bugs mailing list