Very strange bug

Klacke klacke@REDACTED
Wed Nov 20 10:33:04 CET 2002


On Tue, Nov 19, 2002 at 03:29:44AM +0500, Vladimir Sekissov wrote:
> Good day,
> 
> I've discovered a very strange (for me) bug when I'm starting Erlang
> with clean boot without sasl.
> 
> Lets explain by example:
> 
> $ /usr/local/bin/erl
> 
> Eshell V5.2  (abort with ^G)
> 1> m(file).
> 
> Module file compiled: Date: October 24 2002, Time: 11.26
> Compiler options:  [v3,
>                     debug_info,
>                     {i,"../include"},
>                     {outdir,"../ebin"},
>                     {cwd,"/usr/local/src/otp_src_R9B-0/lib/kernel/src"}]
> Object file: /usr/local/lib/erlang/lib/kernel-2.8.0/ebin/file.beam
> Exports: 
> ... skipped...
> eval/1                        read/2
> file_info/1                   read_file/1
> format_error/1                read_file_info/1
> ... skipped...
> 
> 2> file:read_file("./www/HEAD").
> {ok, ...}
> 
> 3> yaws:start().
> 
> =INFO REPORT==== 19-Nov-2002::02:57:09 ===
> Using config file /home/svg/yaws.conf
> =INFO REPORT==== 19-Nov-2002::02:57:09 ===
> Listening to 127.0.0.1:8000 for servers ["localhost:8000"]
> ok
> 
> 4> m(file).
> ... skipped...
> eval/1                        rawopen/2
> file_info/1                   read/2
> format_error/1                read_file_info/1
> get_cwd/0                     read_link/1
> ... skipped...
> 
> 5> file:read_file("./www/HEAD").
> ** exited: {undef,[{file,read_file,
>                          ["./www/HEAD"]},
>                    {erl_eval,expr,3},
>                    {erl_eval,exprs,4},
>                    {shell,eval_loop,2}]} **
> 
> 
> As you can see in second output of m(file) declaration of read_file/1
> is absent and function is not available.
> 
> When I'm starting Erlang with sasl all is ok.
> 
> Can somebody point me to the cause of the problem.
> 
> The system is GentooLinux-1.4/GCC-3.1/kernel-2.4.19
> 


Ultra weird ... what's in your .erlang

does it happen if you start erlang as 

# /usr/local/bin/yaws -i

as well ??


/klacke

-- 
Claes Wikstrom                        -- Caps lock is nowhere and
Alteon WebSystems                     -- everything is under control          
http://www.bluetail.com/~klacke      
cellphone: +46 70 2097763



More information about the erlang-questions mailing list