<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Fehler SIGABRT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich wollte ein Programm schreiben das aus einer<br />
Textdatei eine Zeile ausliest.</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;
using namespace std;

int main ()
{
	// Datei auswählen und öffnen

        fstream file; 
	file.open (&quot;Datei_lesen.txt&quot;);

	file.seekg(0);
	string foo; 
	getline(file,foo); 

	// Gebe das Ergebnis aus: 
	cout &lt;&lt;  foo &lt;&lt; endl;   // Hello World! 

	// Schließe die Datei 
	file.close(); 

	return 0;

}
</code></pre>
<p>Nun kam folgende Fehlermeldung<br />
________________<br />
run<br />
[Switching to process 355]<br />
Running…<br />
String aus Datei lesen(355) malloc: *** error for object 0x10000aac0: pointer being freed was not allocated<br />
*** set a breakpoint in malloc_error_break to debug<br />
Program received signal: “SIGABRT”.<br />
sharedlibrary apply-load-rules all<br />
(gdb)<br />
________________</p>
<p>Kann mir vielleicht jemand helfen?</p>
<p>Ich benutze MacOS X 10.6 mit xCode</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/252644/fehler-sigabrt</link><generator>RSS for Node</generator><lastBuildDate>Mon, 14 Sep 2026 08:29:57 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/252644.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 22 Oct 2009 18:04:24 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Fehler SIGABRT on Thu, 22 Oct 2009 18:04:24 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Ich wollte ein Programm schreiben das aus einer<br />
Textdatei eine Zeile ausliest.</p>
<pre><code>#include &lt;iostream&gt;
#include &lt;fstream&gt;
#include &lt;string&gt;
using namespace std;

int main ()
{
	// Datei auswählen und öffnen

        fstream file; 
	file.open (&quot;Datei_lesen.txt&quot;);

	file.seekg(0);
	string foo; 
	getline(file,foo); 

	// Gebe das Ergebnis aus: 
	cout &lt;&lt;  foo &lt;&lt; endl;   // Hello World! 

	// Schließe die Datei 
	file.close(); 

	return 0;

}
</code></pre>
<p>Nun kam folgende Fehlermeldung<br />
________________<br />
run<br />
[Switching to process 355]<br />
Running…<br />
String aus Datei lesen(355) malloc: *** error for object 0x10000aac0: pointer being freed was not allocated<br />
*** set a breakpoint in malloc_error_break to debug<br />
Program received signal: “SIGABRT”.<br />
sharedlibrary apply-load-rules all<br />
(gdb)<br />
________________</p>
<p>Kann mir vielleicht jemand helfen?</p>
<p>Ich benutze MacOS X 10.6 mit xCode</p>
<p>Danke</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1796600</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1796600</guid><dc:creator><![CDATA[Zipfelklatscher]]></dc:creator><pubDate>Thu, 22 Oct 2009 18:04:24 GMT</pubDate></item><item><title><![CDATA[Reply to Fehler SIGABRT on Thu, 22 Oct 2009 19:40:55 GMT]]></title><description><![CDATA[<p>Hmm. Klingt sehr merkwürdig. Der Code sieht gut aus und mit VS funktioniert er auch wie gewünscht.</p>
<p>Probier mal einen anderen Compiler..(wenn das geht..)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1796684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1796684</guid><dc:creator><![CDATA[drakon]]></dc:creator><pubDate>Thu, 22 Oct 2009 19:40:55 GMT</pubDate></item></channel></rss>