Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-ID: <20030527161555.27729.qmail@web20419.mail.yahoo.com> Date: Tue, 27 May 2003 09:15:55 -0700 (PDT) From: Tricha Anjali Subject: Segmentation fault in cygwin_split_path() To: cygwin AT cygwin DOT com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Hello,   I am running cygwin on a WinXP laptop. I have a C++ program that I am compiling using g++. Upon execution from the prompt, the program just exits without any output. In the code, I first check the argc variable and print an error if the count is not correct. However, the executable exits irrespective of the argument count. When I run gdb on the executable, I set the first breakpoint at main() and run the program. However, the program segfaults before getting to main. Upon backtrace, I get the following output:   (gdb) b main Breakpoint 1 at 0x4085c0: file routing.c, line 1120. (gdb) r Starting program: /home/Owner/routing/routing.exe Program received signal SIGSEGV, Segmentation fault. 0x61057b1c in cygwin_split_path () from /usr/bin/cygwin1.dll (gdb) bt #0 0x61057b1c in cygwin_split_path () from /usr/bin/cygwin1.dll #1 0x61057692 in cygwin_split_path () from /usr/bin/cygwin1.dll #2 0x610577e4 in cygwin_split_path () from /usr/bin/cygwin1.dll #3 0x61006e45 in cygwin1!__assert () from /usr/bin/cygwin1.dll #4 0x610076ed in dll_crt0 AT 0 () from /usr/bin/cygwin1.dll #5 0x0040c9d2 in cygwin_crt0 () at /usr/include/c++/3.2/bits/stl_function.h:488 #6 0x0040103c in mainCRTStartup () #7 0x77e814c7 in KERNEL32!GetCurrentDirectoryW () from /cygdrive/c/WINNT/system32/kernel32.dll (gdb)   My system details: #uname -a CYGWIN_NT-5.1 Home 1.3.22(0.78/3/2) 2003-03-18 09:20 i686 unknown unknown Cygwin   Any help will be appreciated! Thanks in advance, Tricha --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. __________________________________ Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. http://search.yahoo.com -- 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/