Issue Details (XML | Word | Printable)

Key: PCC-358
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Gregory McGarry
Reporter: mghis
Votes: 0
Watchers: 0

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

Segfault on every binary compiled with PCC

Created: 18/Jun/11 04:21 PM   Updated: 01/Aug/11 02:30 AM
Component/s: None
Affects Version/s: None
Fix Version/s: None

Arch Linux running 2.6.39 kernel. Installed last version of pcc and pcc-libs. This is the version string:
   # pcc -v
   pcc 1.0.0.RELEASE 20110221 for i686-pc-linux-gnu, mghis@trantor
   no input files

 Description  « Hide
Every binary I try to compile with PCC, even a trivial 'hello world', crashes with a segfault. I tried to debug with this:

% pcc -g main.c
% gdb a.out
Reading symbols from /tmp/a.out...done.
(gdb) list
1 #include <stdio.h>
3 main()
4 {
5 printf("hello world\n");
6 return 0;
7 }
(gdb) run
Starting program: /tmp/a.out

Program received signal SIGSEGV, Segmentation fault.
0x00000001 in ?? ()
(gdb) disassemble
No function contains program counter for selected frame.

Where is the problem?


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Gregory McGarry made changes - 01/Aug/11 02:30 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Assignee Gregory McGarry [ gmcgarry ]
Resolution Fixed [ 1 ]