Very strange bug

Vladimir Sekissov <>
Wed Nov 20 11:16:25 CET 2002


Good day,

robert.virding> One questio I have if it is the SAME module file? You don't give all
robert.virding> the module info for the second time. Yaws might load a new file. I
robert.virding> don't know why though. If they do write to klacke. 

Yes, it is the same module file. As I mentioned the problem doesn't
appear if sasl has been booted before yaws.

Best Regards,
Vladimir Sekissov

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



More information about the erlang-questions mailing list