Lectio brevis
m@prax:~$ cat a.cc
#include <iostream.h>
using namespace std;
int main( void )
{
cout << "Pugnatt !" << endl;
return 0;
}
m@prax:~$ g++ a.cc
g++: Internal error: Segmentation fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
bello eh ?
Lectio longa
Trovandomi a ricompilare della roba, mi sono trovato con un errore di
questo tipo:
checking for C++ compiler default output file name... configure: error: C++
compiler cannot create executables
e cercando in giro sembrava legato alla mancanza di pacchetti di
sviuppo, che pero` io ho
pertanto sono finito a chiedermi: ma il compilatore funziona ? quello c,
funziona, quello g++ si comporta come sopra
mi rimetto al saggio Bolcioni nel caso abbia scritto codice scazzato, ma
su una etch compila ... si perche` tutta la piva accade su una
fottutissima xubuntu gutsy, che dio la strafulmini
se guardiamo lo strace della fallita compilazione, vediamo che:
m@prax:~$ strace g++ a.cc
execve("/usr/bin/g++", ["g++", "a.cc"], [/* 48 vars */]) = 0
brk(0) = 0x807c000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
mmap2(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7fa4000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=75047, ...}) = 0
mmap2(NULL, 75047, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f91000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or directory)
open("/lib/tls/i686/cmov/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\260a\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1339816, ...}) = 0
mmap2(NULL, 1349136, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) =
0xb7e47000
mmap2(0xb7f8b000, 12288, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x143) = 0xb7f8b000
mmap2(0xb7f8e000, 9744, PROT_READ|PROT_WRITE,
MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f8e000
close(3) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7e46000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e466b0, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0,
useable:1}) = 0
mprotect(0xb7f8b000, 4096, PROT_READ) = 0
munmap(0xb7f91000, 75047) = 0
brk(0) = 0x807c000
brk(0x809d000) = 0x809d000
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) =
0xb7fa3000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096) = 0
close(3) = 0
munmap(0xb7fa3000, 4096) = 0
open("/usr/lib/locale/it_IT.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/locale/it_IT.utf8/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=254020, ...}) = 0
mmap2(NULL, 254020, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7e07000
close(3) = 0
open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=25486, ...}) = 0
mmap2(NULL, 25486, PROT_READ, MAP_SHARED, 3, 0) = 0xb7f9d000
close(3) = 0
open("/usr/lib/locale/en_US.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=28, ...}) = 0
close(3) = 0
open("/usr/lib/locale/en_US.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52, ...}) = 0
mmap2(NULL, 52, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f9c000
close(3) = 0
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY)
= -1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/gcc-4.1.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
rt_sigaction(SIGINT, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGINT, {0x804fab0, [INT], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGHUP, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGHUP, {0x804fab0, [HUP], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGTERM, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGTERM, {0x804fab0, [TERM], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
rt_sigaction(SIGPIPE, {0x804fab0, [PIPE], SA_RESTART}, {SIG_IGN}, 8) = 0
rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
access("/home/m/bin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/home/m/bin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/bin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/sbin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/bin/g++", X_OK) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=133, ...}) = 0
lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=57344, ...}) = 0
lstat64("/usr/bin/g++", {st_mode=S_IFLNK|0777, st_size=7, ...}) = 0
readlink("/usr/bin/g++", "g++-4.1", 4096) = 7
lstat64("/usr/bin/g++-4.1", {st_mode=S_IFREG|0755, st_size=208196, ...}) = 0
access("/home/m/bin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/home/m/bin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/sbin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/local/bin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/sbin/g++", X_OK) = -1 ENOENT (No such file or directory)
access("/usr/bin/g++", X_OK) = 0
lstat64("/usr", {st_mode=S_IFDIR|0755, st_size=133, ...}) = 0
lstat64("/usr/bin", {st_mode=S_IFDIR|0755, st_size=57344, ...}) = 0
lstat64("/usr/bin/g++", {st_mode=S_IFLNK|0777, st_size=7, ...}) = 0
readlink("/usr/bin/g++", "g++-4.1", 4096) = 7
lstat64("/usr/bin/g++-4.1", {st_mode=S_IFREG|0755, st_size=208196, ...}) = 0
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/", X_OK) = 0
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/", X_OK) = 0
access("a.cc", F_OK) = 0
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/specs", R_OK) = -1 ENOENT (No such
file or directory)
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/specs", R_OK) = -1 ENOENT (No such
file or directory)
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../i486-linux-gnu/lib/i486-linux-gnu/4.1.3/specs",
R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/../../../../i486-linux-gnu/lib/specs",
R_OK) = -1 ENOENT (No such file or directory)
access("/usr/lib/gcc/i486-linux-gnu/specs", R_OK) = -1 ENOENT (No such file or
directory)
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/", X_OK) = 0
access("/tmp", R_OK|W_OK|X_OK) = 0
gettimeofday({1201863289, 589964}, NULL) = 0
getpid() = 10425
open("/tmp/ccK8jYER.s", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
close(3) = 0
stat64("/usr/lib/gcc/i486-linux-gnu/4.1.3/cc1plus", {st_mode=S_IFREG|0755,
st_size=3051520, ...}) = 0
access("/usr/lib/gcc/i486-linux-gnu/4.1.3/cc1plus", X_OK) = 0
vfork() = 10426
waitpid(10426, [{WIFSIGNALED(s) && WTERMSIG(s) == SIGSEGV && WCOREDUMP(s)}], 0)
= 10426
--- SIGCHLD (Child exited) @ 0 (0) ---
open("/usr/share/locale/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
open("/usr/share/locale/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No
such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such
file or directory)
open("/usr/share/locale-langpack/en_US.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US.utf8/LC_MESSAGES/libc.mo", O_RDONLY) =
-1 ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.UTF-8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en.utf8/LC_MESSAGES/libc.mo", O_RDONLY) = -1
ENOENT (No such file or directory)
open("/usr/share/locale-langpack/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT
(No such file or directory)
write(2, "g++: ", 5g++: ) = 5
write(2, "Internal error: Segmentation fau"..., 254Internal error: Segmentation
fault (program cc1plus)
Please submit a full bug report.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
For Debian GNU/Linux specific bug reporting instructions, see
<URL:file:///usr/share/doc/gcc-4.1/README.Bugs>.
) = 254
write(2, "\n", 1
) = 1
stat64("/tmp/ccK8jYER.s", {st_mode=S_IFREG|0600, st_size=0, ...}) = 0
unlink("/tmp/ccK8jYER.s") = 0
exit_group(1) = ?
Process 10425 detached
m@prax:~$ g++ --version
g++ (GCC) 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
che sia qualcosa legato ai locale, mi dico ?
m@prax:~$ locale
LANG=it_IT@euro
LC_CTYPE=it_IT.UTF-8
LC_NUMERIC=it_IT.UTF-8
LC_TIME=it_IT.UTF-8
LC_COLLATE=it_IT.UTF-8
LC_MONETARY=it_IT.UTF-8
LC_MESSAGES=en_US.UTF-8
LC_PAPER=it_IT.UTF-8
LC_NAME=it_IT.UTF-8
LC_ADDRESS=it_IT.UTF-8
LC_TELEPHONE=it_IT.UTF-8
LC_MEASUREMENT=it_IT.UTF-8
LC_IDENTIFICATION=it_IT.UTF-8
LC_ALL=
non mi sembra un setup irregolare, ma allora che cazzo c'e` che non va ?
gli manca qualche libreria di messaggi nel mio locale ? quale ? perche`
non e` nelle dipendenze ?
sono veramente stupito di questo comportamento
--
.*. finelli
/V\
(/ \) --------------------------------------------------------------
( ) Linux: Friends dont let friends use Piccolosoffice
^^-^^ --------------------------------------------------------------
Genderplex, n.:
The predicament of a person in a restaurant who is unable to
determine his or her designated restroom (e.g., turtles and tortoises).
-- Rich Hall, "Sniglets"
|