ts-7000
[Top] [All Lists]

[ts-7000] Segmentation fault while dealing with empty files

To:
Subject: [ts-7000] Segmentation fault while dealing with empty files
From: "Daniel Souza" <>
Date: Tue, 06 May 2008 03:27:42 -0000
Hi,

Im my application I need to open a file to read and write some data.
If the file I'm trying to open doesn't exist I have to create it. I'm
using fstream to handle the files. But i am not able to create a file
(by opening a file for write). I have permission to write in the
directory, because i am executing the program as root. So, I tried to
create a file into terminal by typing "pico config.con". The editor
opens, but an error message appears "Segmentation fault". Then I tried
to create a file by typing "touch config.con" and file was succesfully
created, but when I try to edit it by typing "pico config.con" the
error appears again ("Segmentation fault"). The error occurs when I
try to edit an empty file. If I open an existing file and I delete its
characters, when  I delete the last one the same error appears again
("Segmentation fault").

I really don't know what is going on. Could someone give me a hand?

Thanks,

Daniel Souza


------------------------------------

Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU