Issue Details (XML | Word | Printable)

Key: PCC-398
Type: Bug Bug
Status: Open Open
Priority: Blocker Blocker
Assignee: Unassigned
Reporter: Roland Mainz
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
pcc

"hello world" build with pcc-libs-1.0.1.BETA-20120809+pcc-1.0.1.BETA-20120809 on SuSE 12.1 crashes...

Created: 09/Aug/12 12:13 PM   Updated: 05/Oct/12 07:16 PM
Component/s: None
Affects Version/s: None
Fix Version/s: None

File Attachments: 1. File fix_sections.diff (1 kB)

Environment: SuSE 12.1


 Description  « Hide
SuSE Linux 12.1 (with latest updates)
Compiled pcc-libs-1.0.1.BETA-20120809+pcc-1.0.1.BETA-20120809 with $ ./configure --prefix=$HOME/pcc 2>&1 | tee -a buildlog.log # ... the build and installation work... but when I compile&&run a simple "hello world" like this one...
-- snip --
#include <stdlib.h>
#include <stdio.h>

int main(int ac, char *av[])
{
        puts("hello world chicken monster");
        return EXIT_SUCCESS;
}
-- snip --
... it crashes like this:
-- snip --
$ gdb ./a.out
GNU gdb (GDB) SUSE (7.3-41.1.2)
Copyright (C) 2011 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 "x86_64-suse-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/test001/work/pcc/tmp/a.out...done.
(gdb) run
Starting program: /home/test001/work/pcc/tmp/a.out
Missing separate debuginfo for /lib64/ld-linux-x86-64.so.2
Missing separate debuginfo for /lib64/libc.so.6

Program received signal SIGSEGV, Segmentation fault.
0x0000000000000001 in ?? ()
(gdb) where
#0 0x0000000000000001 in ?? ()
#1 0x00000000004004a1 in __ctors ()
#2 0x000000000040050e in __do_global_ctors_aux ()
#3 0x00000000004003a8 in _init ()
#4 0x00007fffffffe258 in ?? ()
#5 0x00000000004005c5 in __libc_csu_init (argc=1, argv=0x7fffffffe248, envp=0x7fffffffe258) at elf-init.c:120
#6 0x00007ffff7a6d1d0 in __libc_start_main () from /lib64/libc.so.6
#7 0x0000000000400409 in _start () at ../sysdeps/x86_64/elf/start.S:113
-- snip --

Any quick help or (dirty/magically/etc.) workaround would be very appreciated (I want to verify PCC-389 and then integrate pcc into the AT&T regression test toolchain) ...


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Simon Nicolussi made changes - 05/Oct/12 07:16 PM
Field Original Value New Value
Attachment fix_sections.diff [ 10229 ]