jrs007@buffalo ~/avr-work $ ls core ls: cannot access core: No such file or directory jrs007@buffalo ~/avr-work $ ls core* ls: cannot access core*: No such file or directory jrs007@buffalo ~/avr-work $ ulimit -c 201480 jrs007@buffalo ~/avr-work $ ./simulavrxx-write/src/simulavr --device at90s8515 -f fred 18 [main] simulavr 3880 _cygtls::handle_exceptions: Error while dumping sta te (probably corrupted stack) Segmentation fault (core dumped) jrs007@buffalo ~/avr-work $ gdb ./simulavr-write/src/simulavr.exe core GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 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 "i686-pc-cygwin"... ./simulavr-write/src/simulavr.exe: No such file or directory. /cygdrive/c/Documents and Settings/jrs007/avr-work/core: No such file or directo ry. (gdb) bt No stack. (gdb) q jrs007@buffalo ~/avr-work $ pwd /cygdrive/c/Documents and Settings/jrs007/avr-work jrs007@buffalo ~/avr-work $ ./simulavr-write/src/simulavr.exe bash: ./simulavr-write/src/simulavr.exe: No such file or directory jrs007@buffalo ~/avr-work $ ./simulavr-write/src/simulav= jrs007@buffalo ~/avr-work $ ./simulavr simulavr.exe.stackdump simulavrxx-write/ jrs007@buffalo ~/avr-work $ gdb ./simulavrxx-write/src/simulavr.exe core GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 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 "i686-pc-cygwin"... /cygdrive/c/Documents and Settings/jrs007/avr-work/core: No such file or directo ry. (gdb) q jrs007@buffalo ~/avr-work $ ls fred simulavr.exe.stackdump simulavrxx-write jrs007@buffalo ~/avr-work $ gdb ./simulavrxx-write/src/simulavr.exe simulavr.exe.stackdump GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 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 "i686-pc-cygwin"... "/cygdrive/c/Documents and Settings/jrs007/avr-work/simulavr.exe.stackdump" is n ot a core dump: File format not recognized (gdb) q jrs007@buffalo ~/avr-work $ vi *sta* jrs007@buffalo ~/avr-work $ cd simulavr- jrs007@buffalo ~/avr-work $ ls fred simulavr.exe.stackdump simulavrxx-write jrs007@buffalo ~/avr-work $ cd simulavrxx-write/src jrs007@buffalo ~/avr-work/simulavrxx-write/src $ rm simulavr.exe jrs007@buffalo ~/avr-work/simulavrxx-write/src $ make make all-am make[1]: Entering directory `/cygdrive/c/Documents and Settings/jrs007/avr-work/ simulavrxx-write/src' /bin/sh ../libtool --tag=CXX --mode=link g++ -I/usr/include -g -O2 -o simul avr.exe main.o libsimulavr.la /usr/lib/libbfd.a -lz -ltcl /usr/lib/libiberty.a / usr/lib/libintl.a /usr/lib/libiconv.a g++ -I/usr/include -g -O2 -o simulavr.exe main.o ./.libs/libsimulavr.a /usr/lib /libbfd.a -lz -ltcl /usr/lib/libiberty.a /usr/lib/libintl.a /usr/lib/libiconv.a make[1]: Leaving directory `/cygdrive/c/Documents and Settings/jrs007/avr-work/s imulavrxx-write/src' jrs007@buffalo ~/avr-work/simulavrxx-write/src $ rm simulavr.exe jrs007@buffalo ~/avr-work/simulavrxx-write/src $ make >j jrs007@buffalo ~/avr-work/simulavrxx-write/src $ sh -x j + g++ -static -I/usr/include -g -O2 -o simulavr.exe main.o ./.libs/libsimulavr.a /usr/lib/libbfd.a -lz -ltcl /usr/lib/libiberty.a /usr/lib/libintl.a /usr/lib/li biconv.a jrs007@buffalo ~/avr-work/simulavrxx-write/src $ ./simulavr --device at90s8515 -f ../../fred 18 [main] simulavr 2896 _cygtls::handle_exceptions: Error while dumping sta te (probably corrupted stack) Segmentation fault (core dumped) jrs007@buffalo ~/avr-work/simulavrxx-write/src $ sh -x j + g++ -I/usr/include -g -O2 -o simulavr.exe main.o ./.libs/libsimulavr.a /usr/li b/libbfd.a -lz -ltcl -liberty -lintl -liconv jrs007@buffalo ~/avr-work/simulavrxx-write/src $ ./simulavr --device at90s8515 -f ../../fred 18 [main] simulavr 3900 _cygtls::handle_exceptions: Error while dumping sta te (probably corrupted stack) Segmentation fault (core dumped) jrs007@buffalo ~/avr-work/simulavrxx-write/src $ sh -x j + g++ -I/usr/include -g -O2 -o simulavr.exe main.o ./.libs/libsimulavr.a -lbfd - lz -ltcl -liberty -lintl -liconv jrs007@buffalo ~/avr-work/simulavrxx-write/src $ ./simulavr --device at90s8515 -f ../../fred 18 [main] simulavr 3368 _cygtls::handle_exceptions: Error while dumping sta te (probably corrupted stack) Segmentation fault (core dumped) jrs007@buffalo ~/avr-work/simulavrxx-write/src $ gdb ./simulavr GNU gdb 6.8.0.20080328-cvs (cygwin-special) Copyright (C) 2008 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 "i686-pc-cygwin"... (gdb) b main Breakpoint 1 at 0x401061: file main.cpp, line 53. (gdb) run --device at90s8515 -f ../../fred Starting program: /cygdrive/c/Documents and Settings/jrs007/avr-work/simulavrxx- write/src/simulavr.exe --device at90s8515 -f ../../fred [New thread 2960.0xc34] [New thread 2960.0xa5c] Breakpoint 1, main (argc=5, argv=0x100b1ce8) at main.cpp:53 53 int main(int argc, char *argv[]) { (gdb) r The program being debugged has been started already. Start it from the beginning? (y or n) n Program not restarted. (gdb) n 55 bool gdbserver_flag=0; (gdb) 62 new_allocator() throw() { } (gdb) 61 bool globalWaitForGdbConnection=true; //please wait for gdb connecti on (gdb) 59 int global_gdbserver_port = 1212; (gdb) 66 global_trace_on=0; (gdb) 59 int global_gdbserver_port = 1212; (gdb) 68 unsigned int writeToPipeOffset=0x20; (gdb) 60 int global_gdb_debug = 0; (gdb) 68 unsigned int writeToPipeOffset=0x20; (gdb) 69 unsigned int readFromPipeOffset=0x21; (gdb) 62 int userinterface_flag=0; (gdb) 69 unsigned int readFromPipeOffset=0x21; (gdb) 62 new_allocator() throw() { } (gdb) 63 unsigned long long fcpu=4000000; (gdb) 62 new_allocator() throw() { } (gdb) 63 unsigned long long fcpu=4000000; (gdb) 66 global_trace_on=0; (gdb) 62 new_allocator() throw() { } (gdb) 60 int global_gdb_debug = 0; (gdb) 62 int userinterface_flag=0; (gdb) 63 unsigned long long fcpu=4000000; (gdb) 62 new_allocator() throw() { } (gdb) 85 { } (gdb) 96 c = getopt_long (argc, argv, "f:d:gGd:p:t:uxyzhvniF:R:W:VT:", lo ng_options, &option_index); (gdb) 79 int option_index = 0; (gdb) 96 c = getopt_long (argc, argv, "f:d:gGd:p:t:uxyzhvniF:R:W:VT:", lo ng_options, &option_index); (gdb) 79 int option_index = 0; (gdb) 96 c = getopt_long (argc, argv, "f:d:gGd:p:t:uxyzhvniF:R:W:VT:", lo ng_options, &option_index); (gdb) 97 if (c == -1) (gdb) 100 switch (c) { (gdb) 140 if (global_verbose_on) cout << "Device to simulate " << optarg << endl; (gdb) 431 { (gdb) 258 { return strlen(__s); } (gdb) 10 [main] simulavr 2960 _cygtls::handle_exceptions: Exception: STATUS_ACCES S_VIOLATION 438 [main] simulavr 2960 open_stackdumpfile: Dumping stack trace to simulavr .exe.stackdump 256293 [main] simulavr 2960 _cygtls::handle_exceptions: Exception: STATUS_ACCES S_VIOLATION 264742 [main] simulavr 2960 _cygtls::handle_exceptions: Error while dumping sta te (probably corrupted stack) Program received signal SIGSEGV, Segmentation fault. 0x61016583 in stack_info::walk () from /usr/bin/cygwin1.dll (gdb)