niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » *nix » AIX
problem with fflush command
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
Author Message
kmg@merseymail.com
*nix forums beginner


Joined: 10 Feb 2005
Posts: 2

PostPosted: Thu Feb 10, 2005 5:08 pm    Post subject: problem with fflush command Reply with quote

Hi
I'm amending existing C code running on AIX 5.1. The program is
dumping core with a segementation violation. Prior to this the program
writes to the stream OK via fprintf: the data appears in the file
associated with my stream. It is only when I come to fflush() the
stream that the segmentation violation occurs. At this point I am not
sure whether some pointer manipulation earlier in the program has
somehow compromised the stream or whether it is fflush() itself that
has stomped on memory it shouldnt have (or both?).


I suspected it was earlier pointer manipulation of a character
buffer. However, the character buffer is written to the stream so I
would have thought that SIGSEGVs would have manifested themselves
earlier if this was the case. So, I'm lost at this point.


Any hints on how to narrow this down further would be gratefully
received. Thanks! - Kevin
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [1 Post] View previous topic :: View next topic
The time now is Fri Jan 09, 2009 12:27 am | All times are GMT
navigation Forum index » *nix » AIX
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts Unknown in header problem -SOLVED- Light Speed Postfix 0 Thu Jul 03, 2008 10:40 am
No new posts problem with sending mail nuxia Postfix 0 Mon Apr 21, 2008 3:58 am
No new posts Postfix 2.3.8 Virtual problem Blotto Postfix 0 Fri Apr 04, 2008 6:11 am
No new posts Postfix sending problem for local domain remote email monkey_magix Postfix 0 Mon Sep 10, 2007 10:17 am
No new posts bounce problem murkis Postfix 0 Sun Oct 08, 2006 3:45 pm

Guitar Lesson | Notebook Deals | Loans | MPAA | Advance Auto Parts
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3252s ][ Queries: 16 (0.2087s) ][ GZIP on - Debug on ]