Mail Archives: cygwin/2005/08/03/06:40:12
Stein Somers wrote:
> Gerrit P. Haase wrote:
>
>> I have not tried to build it with gcc-3.3.3, could someone with this
>> version handy build an executable and send it to me, please?
>
>
> Here's a set of 3: my 3.3 build (succeeding), my latest 3.4 build
> (failing as yours), and the successful 3.4 build on chris' machine which
> was probably due to its old cygwin. I'm about the try the previous
> cygwin build on my machine.
$ cd ../stein\ 3.3/
$ ./a
hello
goodbye
Interesting, this works ok.
Anyway, executables compiled with cygwin-1.5.17 should always run with
later versions unless API / ABI was broken.
The trace shows this in the 3.4 version happens earlier than in the 3.3
version:
544 62110 [sig] a 3760 wait_sig: myself->dwProcessId 3760
112 62222 [sig] a 3760 wait_sig: entering ReadFile loop, readsig
0x730, myself->sendsig 0x72C
Then after:
gcc-3.3.3:
4051 70351 [main] a 3540 dll_crt0_1: user_data->main 0x401060
88 70439 [main] a 3540 __set_errno: void dll_crt0_1(char*):880 val 0
68 70507 [main] a 3540 wait_for_sigthread: wait_sig_inited 0x728
2776 73283 [main] a 3540 fhandler_base::fstat: here
93 73376 [main] a 3540 fstat64: 0 = fstat (1, 0x22EDA0)
362 73738 [main] a 3540 close: close (0)
70 73808 [main] a 3540 fhandler_base::close: closing '' handle 0x1A8
78 73886 [main] a 3540 close: 0 = close (0)
461 74347 [main] a 3540 fhandler_base::write: binary write
hello
goodbye
gcc-3.4.4:
132 64228 [main] a 3760 dll_crt0_1: user_data->main 0x401050
64 64292 [main] a 3760 __set_errno: void dll_crt0_1(char*):880 val 0
61 64353 [main] a 3760 wait_for_sigthread: wait_sig_inited 0x728
3627 67980 [main] a 3760 fhandler_base::fstat: here
114 68094 [main] a 3760 fstat64: 0 = fstat (1, 0x22ED90)
13028 81122 [main] a 3760 handle_exceptions: In cygwin_except_handler
exc 0xC0000005 at 0x610A3FD2 sp 0x22ECD0
93 81215 [main] a 3760 handle_exceptions: In cygwin_except_handler
sig 11 at 0x610A3FD2
63 81278 [main] a 3760 handle_exceptions: In cygwin_except_handler
calling 0x0
Other than the above I see no difference.
(gdb) run
Starting program: /y/cygwin/home/gerrit/c++dll/gcc-3.3.3/stein 3.4/a.exe
Program received signal SIGSEGV, Segmentation fault.
pthread_key_create (key=0x100221c8, destructor=0) at
/netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/thread.cc:129
129 /netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/thread.cc:
No such file or directory.
in /netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/thread.cc
Current language: auto; currently c++
(gdb) bt
#0 pthread_key_create (key=0x100221c8, destructor=0) at
/netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/thread.cc:129
#1 0x6108621f in _sigfe () at
/netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/cygserver.h:82
#2 0x59432d52 in ?? ()
#3 0x4e495747 in ?? ()
#4 0x100221d0 in ?? ()
#5 0x100221d0 in ?? ()
#6 0x0022edc8 in ?? ()
#7 0x610a4e87 in pthread::once (once_control=0x100221d0,
init_routine=0x22ee1c)
at /netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/thread.cc:2023
#8 0x610a4e87 in pthread::once (once_control=0x100221d0,
init_routine=0x4064a0 <fc_key_init>)
at /netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/thread.cc:2023
#9 0x6108621f in _sigfe () at
/netrel/src/cygwin-snapshot-20050728-1/winsup/cygwin/cygserver.h:82
#10 0x0022edf8 in ?? ()
#11 0x00406565 in _Unwind_SjLj_Register ()
#12 0x00406565 in _Unwind_SjLj_Register ()
#13 0x0040b0db in std::basic_string<char, std::char_traits<char>,
std::allocator<char> >::~basic_string ()
#14 0x0040109f in main ()
(gdb)
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -