Issue Details (XML | Word | Printable)

Key: PCC-398
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Anders Magnusson
Reporter: Roland Mainz
Votes: 0
Watchers: 2

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

"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: 02/May/14 12:24 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 <>
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:
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/
Missing separate debuginfo for /lib64/

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/
#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 ]
Anders Magnusson made changes - 19/Apr/14 05:59 PM
Assignee Anders Magnusson [ ragge ]
Anders Magnusson made changes - 30/Apr/14 10:12 PM
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]