logo       
Google Custom Search
    AddThis Social Bookmark Button

Std.input_list segfaults: msg#00004

Subject: Std.input_list segfaults
The following code that uses extlib segfaults both with ocaml 3.06 and
ocaml 3.07:

  List.iter prerr_endline (Std.input_list (open_in "/etc/passwd"))

More precisely the segfaults is at line 29 of std.ml:

  Obj.magic (Obj.repr dst) 1 (Obj.repr r);

I haven't exactly understood what you're trying to do there, so I'm not
proposing any solution, but the problem still exists :-)

TIA,
Cheers.

-- 
^Stefano Zacchiroli -- Master in Computer Science @ Uni. Bologna, Italy$
^zack@{cs.unibo.it,debian.org,bononia.it} -- http://www.bononia.it/zack$
^Frequentando il mio maestro mi ero reso conto [.] che la logica poteva$
^servire a molto a condizione di entrarci dentro e poi di uscirne -Adso$


-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills.  Sign up for IBM's
Free Linux Tutorials.  Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>