The last assembly lines executed at the moment of the crash are:
(gdb)
636 in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
0x00401ea9 <find_a_file+536>: 8b 45 f0 mov -0x10(%ebp),%eax
0x00401eac <find_a_file+539>: 89 45 c8 mov %eax,-0x38(%ebp)
0x00401eaf <find_a_file+542>: eb 54 jmp 0x401f05 <find_a_file+628>
(gdb)
645 in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
0x00401f08 <find_a_file+631>: 8b 5d fc mov -0x4(%ebp),%ebx
0x00401f0b <find_a_file+634>: c9 leave
0x00401f0c <find_a_file+635>: c3 ret
(gdb)
main (argc=20, argv=0x3e4008) at
/home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c:974
974 in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
0x0040278e <main+1608>: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax
0x00402794 <main+1614>: 85 c0 test %eax,%eax
0x00402796 <main+1616>: 74 0b je 0x4027a3 <main+1629>
(gdb)
975 in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
0x00402798 <main+1618>: 8b 85 6c ff ff ff mov -0x94(%ebp),%eax
0x0040279e <main+1624>: a3 2c d0 41 00 mov %eax,0x41d02c
(gdb)
977 in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
0x004027a3 <main+1629>: 8b 55 a4 mov -0x5c(%ebp),%edx
0x004027a6 <main+1632>: 8b 45 8c mov -0x74(%ebp),%eax
0x004027a9 <main+1635>: 89 02 mov %eax,(%edx)
0x004027ab <main+1637>: 8b 45 a4 mov -0x5c(%ebp),%eax
0x004027ae <main+1640>: 8b 10 mov (%eax),%edx
0x004027b0 <main+1642>: 8b 45 9c mov -0x64(%ebp),%eax
0x004027b3 <main+1645>: 89 10 mov %edx,(%eax)
0x004027b5 <main+1647>: 83 45 9c 04 addl $0x4,-0x64(%ebp)
0x004027b9 <main+1651>: 83 45 a4 04 addl $0x4,-0x5c(%ebp)
(gdb)
980 in /home/squalyl/projects/cegcc/src/gcc/gcc/collect2.c
0x004027bd <main+1655>: 83 ec 0c sub $0xc,%esp
0x004027c0 <main+1658>: 68 11 93 41 00 push $0x419311
0x004027c5 <main+1663>: e8 c6 c9 00 00 call 0x40f190 <make_temp_file>
0x004027ca <main+1668>: 83 c4 10 add $0x10,%esp
0x004027cd <main+1671>: a3 d0 d0 41 00 mov %eax,0x41d0d0
(gdb)
make_temp_file (suffix=0x419311 ".c") at
/home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c:149
149 /home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c: No
such file or directory.
in /home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c
0x0040f190 <make_temp_file+0>: 55 push %ebp
0x0040f191 <make_temp_file+1>: 89 e5 mov %esp,%ebp
0x0040f193 <make_temp_file+3>: 83 ec 28 sub $0x28,%esp
(gdb)
150 in /home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c
0x0040f196 <make_temp_file+6>: e8 65 fe ff ff call 0x40f000
<choose_tmpdir>
0x0040f19b <make_temp_file+11>: 89 45 ec mov %eax,-0x14(%ebp)
(gdb)
choose_tmpdir () at
/home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c:98
98 in /home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c
0x0040f000 <choose_tmpdir+0>: 55 push %ebp
0x0040f001 <choose_tmpdir+1>: 89 e5 mov %esp,%ebp
0x0040f003 <choose_tmpdir+3>: 83 ec 18 sub $0x18,%esp
(gdb)
99 in /home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c
0x0040f006 <choose_tmpdir+6>: c7 45 f4 00 00 00 00 movl
$0x0,-0xc(%ebp)
(gdb)
103 in /home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c
0x0040f00d <choose_tmpdir+13>: a1 f0 d3 41 00 mov 0x41d3f0,%eax
0x0040f012 <choose_tmpdir+18>: 85 c0 test %eax,%eax
0x0040f014 <choose_tmpdir+20>: 74 0d je 0x40f023 <choose_tmpdir+35>
(gdb)
106 in /home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c
0x0040f023 <choose_tmpdir+35>: 83 ec 0c sub $0xc,%esp
0x0040f026 <choose_tmpdir+38>: 68 97 b4 41 00 push $0x41b497
0x0040f02b <choose_tmpdir+43>: e8 e0 8a 00 00 call 0x417b10 <getenv>
0x0040f030 <choose_tmpdir+48>: 83 c4 10 add $0x10,%esp
0x0040f033 <choose_tmpdir+51>: 83 ec 08 sub $0x8,%esp
0x0040f036 <choose_tmpdir+54>: ff 75 f4 pushl -0xc(%ebp)
0x0040f039 <choose_tmpdir+57>: 50 push %eax
0x0040f03a <choose_tmpdir+58>: e8 0f 01 00 00 call 0x40f14e <try_dir>
0x0040f03f <choose_tmpdir+63>: 83 c4 10 add $0x10,%esp
0x0040f042 <choose_tmpdir+66>: 89 45 f4 mov %eax,-0xc(%ebp)
(gdb)
collect2: ld returned 5 exit status
Program exited with code 05.
(gdb)
The program is not being run.
(gdb)
The program is not being run.
(gdb)
This is strange, there is a direct exit.
I'll add a breakpoint at
/home/squalyl/projects/cegcc/src/gcc/libiberty/make-temp-file.c:106, and try
to get a stack frame with local variables.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Cegcc-devel mailing list
Cegcc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/cegcc-devel