[Virtual-pkg-base-maintainers] Bug#714521: base: (GCC|G++|something else in the toolchain) produces segfaulting code

Christian Böhme monodhs at arcor.de
Sun Jun 30 11:57:46 UTC 2013


Package: base
Severity: grave
Justification: renders package unusable

Dear Maintainer,

   * What led up to the situation?
   * What exactly did you do (or not do) that was effective (or
     ineffective)?

successfully compiling

---8<---
// #include <cstddef>


int main ( int argc, char * argv[] )
{
        int i = 100;
        int j = i + 4;

        return j;
}
---8<---

as  source.c++  twice with

gcc -g -Wall -o automatic source.c++

and

g++ -g -Wall -o automatic source.c++

and running  automatic  from within  gdb  for each program produced

gdb ./automatic

   * What was the outcome of this action?

both times:

GNU gdb (GDB) 7.6-debian
Copyright (C) 2013 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "powerpc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from ./automatic...done.
(gdb) run
Starting program: ./automatic 
warning: Could not load shared library symbols for linux-vdso32.so.1.
Do you need "set solib-search-path" or "set sysroot"?

Program received signal SIGSEGV, Segmentation fault.
0x10008b0c in ?? ()
(gdb) where
#0  0x10008b0c in ?? ()
#1  0x1000051c in __libc_csu_init ()
#2  0x0fc2af74 in generic_start_main (main=0x1000048c <main(int, char**)>, argc=1, 
    ubp_av=0xbffff654, auxvec=0xbffff724, init=0x100004d0 <__libc_csu_init>, 
    rtld_fini=<optimized out>, stack_end=<optimized out>, fini=<optimized out>)
    at ../csu/libc-start.c:219
#3  0x0fc2b1a0 in __libc_start_main (argc=<optimized out>, ubp_av=<optimized out>, 
    ubp_ev=<optimized out>, auxvec=<optimized out>, rtld_fini=<optimized out>, 
    stinfo=<optimized out>, stack_on_entry=<optimized out>)
    at ../sysdeps/unix/sysv/linux/powerpc/libc-start.c:104
#4  0x00000000 in ?? ()
(gdb) quit
A debugging session is active.

	Inferior 1 [process 2975] will be killed.

Quit anyway? (y or n) y

   * What outcome did you expect instead?

non-segfaulting code being generated


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: powerpc (ppc)

Kernel: Linux 3.2.0-4-powerpc
Locale: LANG=POSIX, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the Virtual-pkg-base-maintainers mailing list