delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/03/18/03:04:06

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
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
X-Injected-Via-Gmane: http://gmane.org/
Path: not-for-mail
From: "Dylan Cuthbert" <dylan AT nospamq-games DOT com>
Newsgroups: gmane.os.cygwin
Subject: input stream crash with gcc 3.1
Date: Mon, 18 Mar 2002 17:04:06 +0900
Lines: 282
Message-ID: <a746vi$qp7$1@main.gmane.org>
NNTP-Posting-Host: pppa228.kyoto-ip.dti.ne.jp
Mime-Version: 1.0
X-Trace: main.gmane.org 1016438580 27431 210.159.246.228 (18 Mar 2002 08:03:00 GMT)
X-Complaints-To: usenet AT main DOT gmane DOT org
NNTP-Posting-Date: Mon, 18 Mar 2002 08:03:00 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Note-from-DJ: This may be spam

------=_NextPart_000_00D9_01C1CE9E.E9BEE140
Content-Type: text/plain;
	charset="iso-2022-jp"
Content-Transfer-Encoding: 7bit


I have recently compiled the latest 3.1 branch (grabbed directly via cvs)
for cygwin (1.3.9) and am having problems when using anything related at all
to input streams.

ie. the simplest program:
(stripped for simplicity)

main()
{
string frog;
cin >> frog;
}

will crash with a signal exception after the user has input some text and
pressed return.

This seems inherent with all the input stream methods when using the
operator>> - ie. stringstream also crashes, and so does ifstream.

I've scanned the newsgroups and mailing lists and searched high and low but
I don't see anyone else with this problem so have I screwed something up
somewhere?

my gcc specs are attached.

Regards


---------------------------------
Q-Games, Dylan Cuthbert.
http://www.q-games.com/personal/utils

--
---------------------------------
$BM-8B2q<R(B Q-Games, Dylan Cuthbert.
http://www.q-games.com

------=_NextPart_000_00D9_01C1CE9E.E9BEE140
Content-Type: application/octet-stream;
	name="gcc.specs"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="gcc.specs"

*asm:=0A=
--traditional-format =0A=
=0A=
*asm_debug:=0A=
%{g*:--gstabs}=0A=
=0A=
*asm_final:=0A=
=0A=
=0A=
*asm_options:=0A=
%a %Y %{c:%W{o*}%{!o*:-o %w%b%O}}%{!c:-o %d%w%u%O}=0A=
=0A=
*invoke_as:=0A=
%{!S:-o %{|!pipe:%g.s} |=0A=
 as %(asm_options) %{!pipe:%g.s} %A }=0A=
=0A=
*cpp:=0A=
%(cpp_cpu) %{posix:-D_POSIX_SOURCE}   =
-D__stdcall=3D__attribute__((__stdcall__))   =
-D__cdecl=3D__attribute__((__cdecl__))   =
%{!ansi:-D_stdcall=3D__attribute__((__stdcall__))     =
-D_cdecl=3D__attribute__((__cdecl__))}   =
-D__declspec(x)=3D__attribute__((x))   -D__i386__ -D__i386   =
%{mno-win32:%{mno-cygwin: %emno-cygwin and mno-win32 are not =
compatible}}   %{mno-cygwin:-D__MSVCRT__ -D__MINGW32__ %{mthreads:-D_MT} =
%{!nostdinc:-isystem /usr/include/mingw/g++-3 -isystem =
/usr/include/mingw/g++ -isystem /usr/local/include/mingw -idirafter =
/usr/local/i686-pc-cygwin/include/mingw -idirafter /usr/include/mingw}}  =
 %{!mno-cygwin:-D__CYGWIN32__ -D__CYGWIN__ %{!ansi:-Dunix} -D__unix__ =
-D__unix %{!nostdinc:-isystem /usr/local/include -idirafter =
/usr/local/i686-pc-cygwin/include -idirafter /usr/include}}  =
%{mwin32|mno-cygwin:-DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__ =
%{!ansi:-DWINNT}}  %{!mno-win32:%{!nostdinc:-idirafter =
/usr/local/i686-pc-cygwin/include/w32api -idirafter /usr/include/w32api}}=0A=
=0A=
*cpp_options:=0A=
%(cpp_unique_options) %{std*} %{d*} %{W*} %{w} %{pedantic*} =
%{fshow-column} %{fno-show-column} %{fsigned-char&funsigned-char} =
%{fleading-underscore} %{fno-leading-underscore} %{fno-operator-names} =
%{ftabstop=3D*}=0A=
=0A=
*cpp_unique_options:=0A=
%{C:%{!E:%eGNU C does not support -C without using -E}} %{nostdinc*} =
%{C} %{v} %{I*} %{P} %{$} %I %{MD:-M -MF %W{!o: %b.d}%W{o*:%.d%*}} =
%{MMD:-MM -MF %W{!o: %b.d}%W{o*:%.d%*}} %{M} %{MM} %W{MF*} %{MG} %{MP} =
%{MQ*} %{MT*} %{!E:%{!M:%{!MM:%{MD|MMD:%{o*:-MQ %*}}}}} =
%{!no-gcc:-D__GNUC__=3D%v1 -D__GNUC_MINOR__=3D%v2 =
-D__GNUC_PATCHLEVEL__=3D%v3} =
%{!undef:%{!ansi:%{!std=3D*:%p}%{std=3Dgnu*:%p}} %P} %{trigraphs} =
%{Os:-D__OPTIMIZE_SIZE__} %{O*:%{!O0:-D__OPTIMIZE__}} =
%{fno-inline|O0|!O*:-D__NO_INLINE__} %{ffast-math:-D__FAST_MATH__} =
%{fshort-wchar:-U__WCHAR_TYPE__ -D__WCHAR_TYPE__=3Dshort\ unsigned\ int} =
%{ffreestanding:-D__STDC_HOSTED__=3D0} =
%{fno-hosted:-D__STDC_HOSTED__=3D0} =
%{!ffreestanding:%{!fno-hosted:-D__STDC_HOSTED__=3D1}} %{remap} =
%{g3:-dD} %{H} %C %{D*&U*&A*} %{i*} %Z %i %{E|M|MM:%W{o*}}=0A=
=0A=
*trad_capable_cpp:=0A=
%{traditional|ftraditional|traditional-cpp:trad}cpp0=0A=
=0A=
*cc1:=0A=
%(cc1_cpu) =0A=
=0A=
*cc1_options:=0A=
%{pg:%{fomit-frame-pointer:%e-pg and -fomit-frame-pointer are =
incompatible}} %1 %{!Q:-quiet} -dumpbase %B %{d*} %{m*} %{a*} %{g*} =
%{O*} %{W*} %{w} %{pedantic*} %{std*} %{ansi} %{traditional} =
%{v:-version} %{pg:-p} %{p} %{f*} %{Qn:-fno-ident} %{--help:--help} =
%{--target-help:--target-help} %{!fsyntax-only:%{S:%W{o*}%{!o*:-o =
%b.s}}} %{fsyntax-only:-o %j} %{-param*}=0A=
=0A=
*cc1plus:=0A=
=0A=
=0A=
*endfile:=0A=
=0A=
=0A=
*link:=0A=
-L/usr/local/i686-pc-cygwin/lib/w32api/ -L/usr/lib/w32api/  =
%{mwindows:--subsystem windows}   %{mconsole:--subsystem console}   =
%{shared: %{mdll: %eshared and mdll are not compatible}}   %{shared: =
--shared} %{mdll:--dll}   %{static:-Bstatic} %{!static:-Bdynamic}   =
%{shared|mdll: -e     %{mno-cygwin:_DllMainCRTStartup AT 12}     =
%{!mno-cygwin:__cygwin_dll_entry AT 12}}  --dll-search-prefix=3Dcyg=0A=
=0A=
*lib:=0A=
  %{pg:-lgmon}   %{!mno-cygwin:-lcygwin}   =
%{mno-cygwin:%{mthreads:-lmingwthrd} -lmingw32}   %{mwindows:-lgdi32 =
-lcomdlg32}   -luser32 -lkernel32 -ladvapi32 -lshell32=0A=
=0A=
*libgcc:=0A=
%{mno-cygwin: %{mthreads:-lmingwthrd} -lmingw32} -lgcc =
%{mno-cygwin:-lmoldname -lmsvcrt}=0A=
=0A=
*startfile:=0A=
  %{shared|mdll: %{mno-cygwin:-L/usr/local/lib/mingw -L/usr/lib/mingw =
dllcrt2%O%s}}  %{!shared: %{!mdll: %{!mno-cygwin:crt0%O%s} =
%{mno-cygwin:-L/usr/local/lib/mingw -L/usr/lib/mingw crt2%O%s}  =
%{pg:gcrt0%O%s}}}=0A=
=0A=
*switches_need_spaces:=0A=
=0A=
=0A=
*predefines:=0A=
-D_X86_=3D1 -Asystem=3Dwinnt=0A=
=0A=
*cross_compile:=0A=
0=0A=
=0A=
*version:=0A=
3.1=0A=
=0A=
*multilib:=0A=
. ;=0A=
=0A=
*multilib_defaults:=0A=
=0A=
=0A=
*multilib_extra:=0A=
=0A=
=0A=
*multilib_matches:=0A=
=0A=
=0A=
*multilib_exclusions:=0A=
=0A=
=0A=
*linker:=0A=
collect2=0A=
=0A=
*link_libgcc:=0A=
%D=0A=
=0A=
*md_exec_prefix:=0A=
=0A=
=0A=
*md_startfile_prefix:=0A=
/usr/lib/=0A=
=0A=
*md_startfile_prefix_1:=0A=
=0A=
=0A=
*cpp_cpu_default:=0A=
-D__tune_i686__ -D__tune_pentiumpro__=0A=
=0A=
*cpp_cpu:=0A=
%(cpp_cpu32) %(cpp_cpucommon)=0A=
=0A=
*cpp_cpu32:=0A=
-Acpu=3Di386 -Amachine=3Di386 %{!ansi:%{!std=3Dc*:%{!std=3Di*:-Di386}}} =
-D__i386 -D__i386__ %(cpp_cpu32sizet)=0A=
=0A=
*cpp_cpu64:=0A=
-Acpu=3Dx86_64 -Amachine=3Dx86_64 -D__x86_64 -D__x86_64__ =
%(cpp_cpu64sizet)=0A=
=0A=
*cpp_cpu32sizet:=0A=
=0A=
=0A=
*cpp_cpu64sizet:=0A=
=0A=
=0A=
*cpp_cpucommon:=0A=
%{march=3Di386:%{!mcpu*:-D__tune_i386__ }}%{march=3Di486:-D__i486 =
-D__i486__ %{!mcpu*:-D__tune_i486__ =
}}%{march=3Dpentium|march=3Di586:-D__i586 -D__i586__ -D__pentium =
-D__pentium__   %{!mcpu*:-D__tune_i586__ -D__tune_pentium__ =
}}%{march=3Dpentium-mmx:-D__i586 -D__i586__ -D__pentium -D__pentium__   =
-D__pentium__mmx__   %{!mcpu*:-D__tune_i586__ -D__tune_pentium__ =
-D__tune_pentium_mmx__}}%{march=3Dpentiumpro|march=3Di686:-D__i686 =
-D__i686__   -D__pentiumpro -D__pentiumpro__   %{!mcpu*:-D__tune_i686__ =
-D__tune_pentiumpro__ }}%{march=3Dk6:-D__k6 -D__k6__ =
%{!mcpu*:-D__tune_k6__ }}%{march=3Dk6-2:-D__k6 -D__k6__ -D__k6_2__   =
%{!mcpu*:-D__tune_k6__ -D__tune_k6_2__ }}%{march=3Dk6-3:-D__k6 -D__k6__ =
-D__k6_3__   %{!mcpu*:-D__tune_k6__ -D__tune_k6_3__ =
}}%{march=3Dathlon|march=3Dathlon-tbird:-D__athlon -D__athlon__   =
%{!mcpu*:-D__tune_athlon__ =
}}%{march=3Dathlon-4|march=3Dathlon-xp|march=3Dathlon-mp:-D__athlon =
-D__athlon__   -D__athlon_sse__   %{!mcpu*:-D__tune_athlon__ =
-D__tune_athlon_sse__ }}%{march=3Dpentium4:-D__pentium4 -D__pentium4__ =
%{!mcpu*:-D__tune_pentium4__ }}%{m386|mcpu=3Di386:-D__tune_i386__ =
}%{m486|mcpu=3Di486:-D__tune_i486__ =
}%{mpentium|mcpu=3Dpentium|mcpu=3Di586|mcpu=3Dpentium-mmx:-D__tune_i586__=
 -D__tune_pentium__ =
}%{mpentiumpro|mcpu=3Dpentiumpro|mcpu=3Di686|cpu=3Dpentium2|cpu=3Dpentium=
3:-D__tune_i686__ -D__tune_pentiumpro__ =
}%{mcpu=3Dk6|mcpu=3Dk6-2|mcpu=3Dk6-3:-D__tune_k6__ =
}%{mcpu=3Dathlon|mcpu=3Dathlon-tbird|mcpu=3Dathlon-4|mcpu=3Dathlon-xp|mcp=
u=3Dathlon-mp:-D__tune_athlon__ =
}%{mcpu=3Dathlon-4|mcpu=3Dathlon-xp|mcpu=3Dathlon-mp:-D__tune_athlon_sse_=
_ }%{mcpu=3Dpentium4:-D__tune_pentium4__ =
}%{march=3Dathlon-tbird|march=3Dathlon-xp|march=3Dathlon-mp|march=3Dpenti=
um3|march=3Dpentium4:-D__SSE__ =
}%{march=3Dpentium-mmx|march=3Dk6|march=3Dk6-2|march=3Dk6-3|march=3Dathlo=
n|march=3Dathlon-tbird|march=3Dathlon-4|march=3Dathlon-xp|march=3Dathlon-=
mp|march=3Dpentium2|march=3Dpentium3|march=3Dpentium4: -D__MMX__ =
}%{march=3Dk6-2|march=3Dk6-3|march=3Dathlon|march=3Dathlon-tbird|march=3D=
athlon-4|march=3Dathlon-xp|march=3Dathlon-mp: -D__3dNOW__ =
}%{march=3Dathlon|march=3Dathlon-tbird|march=3Dathlon-4|march=3Dathlon-xp=
|march=3Dathlon-mp: -D__3dNOW_A__ }%{march=3Dpentium4: -D__SSE2__ =
}%{!march*:%{!mcpu*:%{!m386:%{!m486:%{!mpentium*:%(cpp_cpu_default)}}}}}=0A=
=0A=
*cc1_cpu:=0A=
%{!mcpu*: %{m386:-mcpu=3Di386 %n`-m386' is deprecated. Use =
`-march=3Di386' or `-mcpu=3Di386' instead.=0A=
} %{m486:-mcpu=3Di486 %n`-m486' is deprecated. Use `-march=3Di486' or =
`-mcpu=3Di486' instead.=0A=
} %{mpentium:-mcpu=3Dpentium %n`-mpentium' is deprecated. Use =
`-march=3Dpentium' or `-mcpu=3Dpentium' instead.=0A=
} %{mpentiumpro:-mcpu=3Dpentiumpro %n`-mpentiumpro' is deprecated. Use =
`-march=3Dpentiumpro' or `-mcpu=3Dpentiumpro' instead.=0A=
}} %{mintel-syntax:-masm=3Dintel %n`-mintel-syntax' is deprecated. Use =
`-masm=3Dintel' instead.=0A=
} %{mno-intel-syntax:-masm=3Datt %n`-mno-intel-syntax' is deprecated. =
Use `-masm=3Datt' instead.=0A=
}=0A=
=0A=
*mingw_include_path:=0A=
i686-pc-cygwin=0A=
=0A=
*link_command:=0A=
%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:    %(linker) %l %X %{o*} %{A} =
%{d} %{e*} %{m} %{N} %{n} %{r} %{s} %{t}    %{u*} %{x} %{z} %{Z} =
%{!A:%{!nostdlib:%{!nostartfiles:%S}}}    %{static:} %{L*} =
%(link_libgcc) %o %{!nostdlib:%{!nodefaultlibs:%G %L %G}}    =
%{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} }}}}}}=0A=
=0A=


------=_NextPart_000_00D9_01C1CE9E.E9BEE140
Content-Type: text/plain; charset=us-ascii

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/
------=_NextPart_000_00D9_01C1CE9E.E9BEE140--



- Raw text -


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