delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/05/27/12:16:10

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
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 <tanjali AT yahoo DOT com>
Subject: Segmentation fault in cygwin_split_path()
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019