<?xml version="1.0" encoding="UTF-8"?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:syn="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/">
  <channel rdf:about="http://blog.gmane.org/gmane.comp.lang.erlang.bugs">
    <title>gmane.comp.lang.erlang.bugs</title>
    <link>http://blog.gmane.org/gmane.comp.lang.erlang.bugs</link>
    <description/>
    <syn:updatePeriod>hourly</syn:updatePeriod>
    <syn:updateFrequency>1</syn:updateFrequency>
    <syn:updateBase>1901-01-01T00:00+00:00</syn:updateBase>
    <items>
      <rdf:Seq>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2953"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2952"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2951"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2950"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2949"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2948"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2947"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2946"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2945"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2944"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2943"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2942"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2941"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2940"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2939"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2938"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2937"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2936"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2935"/>
        <rdf:li rdf:resource="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2934"/>
      </rdf:Seq>
    </items>
    <image rdf:resource="http://gmane.org/img/gmane-25t.png"/>
    <textinput rdf:resource=""/>
  </channel>
  <image rdf:about="http://gmane.org/img/gmane-25t.png">
    <title>Gmane</title>
    <url>http://gmane.org/img/gmane-25t.png</url>
    <link>http://gmane.org</link>
  </image>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2953">
    <title>Re: 64bit windows installer</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2953</link>
    <description>&lt;pre&gt;
I am now digging into this.

Can you search for msvcr100.dll under C:\WINDOWS on your malfunctioning
installation (pre-installed vcredist_x64.exe) to see where it is installed?

Your help is much appreciated.


&lt;/pre&gt;</description>
    <dc:creator>Raimo Niskanen</dc:creator>
    <dc:date>2012-05-23T15:49:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2952">
    <title>Re: bug in filelib:ensure_dir on Windows.</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2952</link>
    <description>&lt;pre&gt;Hi!

Thanks for reporting this! The following patch[1] should solve the 
problem. I'll let it run through our tests and then merge it to maint.

Thanks,
Lukas

[1] diff --git a/lib/stdlib/src/filelib.erl b/lib/stdlib/src/filelib.erl
index d532cea..b098d4c 100644
--- a/lib/stdlib/src/filelib.erl
+++ b/lib/stdlib/src/filelib.erl
&amp;lt; at &amp;gt;&amp;lt; at &amp;gt; -264,6 +264,9 &amp;lt; at &amp;gt;&amp;lt; at &amp;gt; ensure_dir(F) -&amp;gt;
      case do_is_dir(Dir, file) of
         true -&amp;gt;
             ok;
+       false when Dir =:= F -&amp;gt;
+           %% Protect against infinite loop
+           {error,einval};
         false -&amp;gt;
             ensure_dir(Dir),
             case file:make_dir(Dir) of


On 23/05/12 06:07, luc.tanguay&amp;lt; at &amp;gt;bell.ca wrote:
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs
&lt;/pre&gt;</description>
    <dc:creator>Lukas Larsson</dc:creator>
    <dc:date>2012-05-23T08:11:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2951">
    <title>bug in filelib:ensure_dir on Windows.</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2951</link>
    <description>&lt;pre&gt;Hi.

I run R14B02 on Windows 2K8 64-bit server (but Erlang is 32-bit).  But looking at the latest code from GitHub, the problem is still there.

When I try filelib:ensure_dir("Y:/toto.txt") and the drive "Y:" does not exist, the VM crashes after a few minutes with eheap_alloc cannot allocate 1425410620 bytes of memory (of type "heap").

Looking at the Erlang source code for ensure_dir/1, and if I'm reading it right,  the endless loop is caused because the dirname in "Y:/toto.txt" is "Y:/" but "Y:/" is not considered a directory by do_is_dir/2. So a recursive call to ensure_dir/1 is done, and.....

Is it really a bug?

Luc

---
Le cri du nourrisson est le résultat de plusieurs années de recherche dans le domaine du signal d'alarme.
(Serge Bouchard)
---
Luc Tanguay, ing./P.Eng.
Bell Canada
671 De La Gauchetière 4e étage,
Montréal H3B 2M8
514-786-6440
cell: 514-229-7585

_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs
&lt;/pre&gt;</description>
    <dc:creator>luc.tanguay&lt; at &gt;bell.ca</dc:creator>
    <dc:date>2012-05-23T04:07:23</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2950">
    <title>Re: httpc_manager cancel_request seems not ok</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2950</link>
    <description>&lt;pre&gt;Hi,

You are correct. This is indeed a bug. Thanks for pointing it out.
I will try to have a fix in R15B02.

Regards,
/BMK

On 05/18/2012 02:47 PM, Vyacheslav Vorobyov wrote:
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Micael Karlberg</dc:creator>
    <dc:date>2012-05-21T16:55:29</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2949">
    <title>Re: R15B01 Bug - Fail to Compile in Solaris 5.10 - i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without #if</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2949</link>
    <description>&lt;pre&gt;
This is not the first time that this is reported. The question is why 
the configure script doesn't report some error if the m4 found in the 
path is not GNU m4, which is required.


Perhaps somebody who is knowledgeable about configure scripts can 
investigate this and provide some appropriate patch (test for GNU m4) so 
that Solaris users do not experience such compilation errors.

Kostis
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs
&lt;/pre&gt;</description>
    <dc:creator>Kostis Sagonas</dc:creator>
    <dc:date>2012-05-20T18:03:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2948">
    <title>Re: R15B01 Bug - Fail to Compile in Solaris 5.10 - i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without #if</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2948</link>
    <description>&lt;pre&gt;Uowww....it works...

I changed path to:
export PATH=/usr/sbin:/usr/bin:/opt/csw/bin:/opt/csw/i386-pc-solaris2.9/bin

# Links
#ln -s /opt/csw/bin/gcc /usr/bin
#ln -s /opt/csw/bin/autoconf /usr/bin
#ln -s /opt/csw/gnu/m4 /usr/bin
#ln -s /opt/csw/i386-pc-solaris2.9/bin/ar /usr/bin
#ln -s /opt/csw/i386-pc-solaris2.9/bin/ld /usr/bin

-bash-3.00# uname -a
SunOS HOST 5.10 Generic_142910-17 i86pc i386 i86pc
-bash-3.00# echo $PATH
/usr/sbin:/usr/bin:/opt/csw/bin:/opt/csw/i386-pc-solaris2.9/bin
-bash-3.00# gcc --version
gcc (GCC) 4.6.3
Copyright (C) 2011 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

-bash-3.00# autoconf --version
autoconf (GNU Autoconf) 2.69
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+/Autoconf: GNU GPL version 3 or later
&amp;lt;http://gnu.org/licenses/gpl.html&amp;gt;, &amp;lt;http://gnu.org/licenses/exceptions.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by David J. MacKenzie and Akim Demaille.
-bash-3.00# m4 --version
m4 (GNU M4) 1.4.16
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later &amp;lt;http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by Rene' Seindal.
-bash-3.00# ar --version
GNU ar (GNU Binutils) 2.21.1
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) any later
version.
This program has absolutely no warranty.
-bash-3.00# ld --version
GNU ld (GNU Binutils) 2.21.1
Copyright 2011 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License version 3 or (at your option) a later
version.
This program has absolutely no warranty.
-bash-3.00#

And...
./bin/erl --version
Erlang R15B01 (erts-5.9.1) [source] [smp:16:16] [async-threads:0] [hipe]
[kernel-poll:false]

Eshell V5.9.1  (abort with ^G)
1&amp;gt;
BREAK: (a)bort (c)ontinue (p)roc info (i)nfo (l)oaded
       (v)ersion (k)ill (D)b-tables (d)istribution
^C-bash-3.00#

Thanks Mikael Pettersson

2012/5/20 Mikael Pettersson &amp;lt;mikpe&amp;lt; at &amp;gt;it.uu.se&amp;gt;




&lt;/pre&gt;</description>
    <dc:creator>Fabrício Dias</dc:creator>
    <dc:date>2012-05-20T17:56:15</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2947">
    <title>Re: R15B01 Bug - Fail to Compile in Solaris 5.10 - i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without #if</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2947</link>
    <description>&lt;pre&gt;
Make sure m4 is a link to GNU m4, not /usr/ccs/bin/m4, then try again
in a clean unpack of the sources (i.e., rm -rf the old source dir first,
do not try a 'make clean' because that just doesn't work).

If that still fails, email me a copy of the offending hipe_x86_bifs.S file
and I'll have a look.
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Mikael Pettersson</dc:creator>
    <dc:date>2012-05-20T10:54:58</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2946">
    <title>R15B01 Bug - Fail to Compile in Solaris 5.10 - i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without #if</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2946</link>
    <description>&lt;pre&gt;Hi,
I'm new here on the list, and I signed up to help to compile the version
R15 on Solaris.
The following procedure that I performed ...
PS: In the past, I compiled a version R14B04, using the same procedure

*-- Config*
#uname -a
SunOS HOST 5.10 Generic_142910-17 i86pc i386 i86pc
# gcc --version
gcc (GCC) 4.6.3
# autoconf --version
autoconf (GNU Autoconf) 2.69
# echo $PATH
/usr/sbin:/usr/bin:/usr/ccs/bin:/opt/csw/bin:

*-- Procedure*
cd /dados/install-src
wget http://www.erlang.org/download/otp_src_R15B01.tar.gz
gunzip otp_src_R15B01.tar.gz
gtar -xvf otp_src_R15B01.tar
cd /dados/install-src/otp_src_R15B01
export ERL_TOP=`pwd`
echo $ERL_TOP
./otp_build autoconf
./configure --prefix=/opt
gmake
gmake install
rm /usr/bin/erl
rm /usr/bin/erlc
ln -s /opt/bin/erl /usr/bin
ln -s /opt/bin/erlc /usr/bin

*-- Result*
./otp_build autoconf: Ok
./configure --prefix=/opt: Ok
But, in gmake, we have:
*...bla bla bla....*
gcc  -g -O3 -I/dados/install-src/otp_src_R15B01/erts/i386-pc-solaris2.10
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-tree-copyrename
 -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT
-DPOSIX_THREADS -D_POSIX_PTHREAD_SEMANTICS  -Ii386-pc-solaris2.10/opt/smp
-Ibeam -Isys/unix -Isys/common -Ii386-pc-solaris2.10 -Izlib  -Ipcre -Ihipe
-I../include -I../include/i386-pc-solaris2.10 -I../include/internal
-I../include/internal/i386-pc-solaris2.10 -c hipe/hipe_x86.c -o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86.o
gcc -g -O2 -I/dados/install-src/otp_src_R15B01/erts/i386-pc-solaris2.10
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-tree-copyrename
 -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT
-DPOSIX_THREADS -D_POSIX_PTHREAD_SEMANTICS  -Ii386-pc-solaris2.10/opt/smp
-Ibeam -Isys/unix -Isys/common -Ii386-pc-solaris2.10 -Izlib  -Ipcre -Ihipe
-I../include -I../include/i386-pc-solaris2.10 -I../include/internal
-I../include/internal/i386-pc-solaris2.10 -c hipe/hipe_x86_glue.S -o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86_glue.o
m4  -DERTS_SMP=1 -DTARGET=i386-pc-solaris2.10 -DOPSYS=sol2 -DARCH=x86
hipe/hipe_x86_bifs.m4 &amp;gt; i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S
gcc -g -O2 -I/dados/install-src/otp_src_R15B01/erts/i386-pc-solaris2.10
 -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-tree-copyrename
 -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes
-Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT
-DPOSIX_THREADS -D_POSIX_PTHREAD_SEMANTICS  -Ii386-pc-solaris2.10/opt/smp
-Ibeam -Isys/unix -Isys/common -Ii386-pc-solaris2.10 -Izlib  -Ipcre -Ihipe
-I../include -I../include/i386-pc-solaris2.10 -I../include/internal
-I../include/internal/i386-pc-solaris2.10 -c
i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S -o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.o
i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without
#if
gmake[3]: *** [obj/i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.o] Error 1
gmake[3]: Leaving directory
`/dados/install-src/otp_src_R15B01/erts/emulator'
gmake[2]: *** [opt] Error 2
gmake[2]: Leaving directory
`/dados/install-src/otp_src_R15B01/erts/emulator'
gmake[1]: *** [smp] Error 2
gmake[1]: Leaving directory `/dados/install-src/otp_src_R15B01/erts'
gmake: *** [emulator] Error 2

I tried deleting the "endif" spare in line 2176 (HAVE_nbif_emulate_fpe),
but got another error linking:
...bla bla bla...
obj/i386-pc-solaris2.10/opt/smp/hipe_mode_switch.o
obj/i386-pc-solaris2.10/opt/smp/hipe_native_bif.o
obj/i386-pc-solaris2.10/opt/smp/hipe_stack.o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86.o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86_glue.o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86_signal.o
obj/i386-pc-solaris2.10/opt/smp/hipe_x86_stack.o
 obj/i386-pc-solaris2.10/opt/smp/efile_drv.o
obj/i386-pc-solaris2.10/opt/smp/inet_drv.o
obj/i386-pc-solaris2.10/opt/smp/zlib_drv.o
obj/i386-pc-solaris2.10/opt/smp/ram_file_drv.o
obj/i386-pc-solaris2.10/opt/smp/ttsl_drv.o  -lsendfile -lrt -ldlpi -ldl -lm
  -lsocket -lnsl -lncurses -L../lib/internal/i386-pc-solaris2.10  -lkstat
/dados/install-src/otp_src_R15B01/erts/emulator/zlib/obj/i386-pc-solaris2.10/opt/libz.a
/dados/install-src/otp_src_R15B01/erts/emulator/pcre/obj/i386-pc-solaris2.10/opt/libepcre.a
 -lethread -lerts_internal_r -lpthread  -lkstat -lrt
Undefined                       first referenced
 symbol                             in file
hipe_emulate_fpe
 obj/i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.o
ld: fatal: Symbol referencing errors. No output written to
/dados/install-src/otp_src_R15B01/bin/i386-pc-solaris2.10/beam.smp
gmake[3]: ***
[/dados/install-src/otp_src_R15B01/bin/i386-pc-solaris2.10/beam.smp] Error 1
gmake[3]: Leaving directory
`/dados/install-src/otp_src_R15B01/erts/emulator'
gmake[2]: *** [opt] Error 2
gmake[2]: Leaving directory
`/dados/install-src/otp_src_R15B01/erts/emulator'
gmake[1]: *** [smp] Error 2
gmake[1]: Leaving directory `/dados/install-src/otp_src_R15B01/erts'
gmake: *** [emulator] Error 2

Can anyone help me?
&lt;/pre&gt;</description>
    <dc:creator>Fabrício Dias</dc:creator>
    <dc:date>2012-05-19T18:28:46</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2945">
    <title>httpc_manager cancel_request seems not ok</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2945</link>
    <description>&lt;pre&gt;Seems that me the only person who is using this functionality :). Anyway.
I have a problem with cancel request when using a httpc to get data as
a stream. My version of Erlang is R14B03, but after some digging in
freshest code on github I have found the following interesting things
in httpc_manager:

% The thing 1. . It seems it is supposed that ets table will contain
records #handler_info
do_init(ProfileName, CookiesDir) -&amp;gt;
...
    HandlerDbName = handler_db_name(ProfileName),
    ets:new(HandlerDbName,
    [protected, set, named_table, {keypos, #handler_info.id}]),

   ...
.

% The thing 2. . It seems it is supposed that ets table will contain a
tuples of arity 3
handle_call({cancel_request, RequestId}, From, State) -&amp;gt;
    ?hcri("cancel_request", [{request_id, RequestId}]),
    case ets:lookup(State#state.handler_db, RequestId) of
[] -&amp;gt;
    ...;
[{_, Pid, _}] -&amp;gt;
    httpc_handler:cancel(RequestId, Pid, From),
    {noreply, State#state{cancel =
  [{RequestId, Pid, From} |
   State#state.cancel]}}
    end;


The arity of a tuple #handler_info is slightly not 3.

&lt;/pre&gt;</description>
    <dc:creator>Vyacheslav Vorobyov</dc:creator>
    <dc:date>2012-05-18T12:47:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2944">
    <title>Re: Spec or Dialyzer regression</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2944</link>
    <description>&lt;pre&gt;

Checked, maint results are the same as R15B01.


Done, found no erroneous commit in rebar.
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Tuncer Ayaz</dc:creator>
    <dc:date>2012-05-16T14:54:55</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2943">
    <title>Re: Spec or Dialyzer regression</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2943</link>
    <description>&lt;pre&gt;
Forgot to test with maint, but will do. That's why it's not mentioned.


Upon review of the rebar code which provokes the warnings, the
substantial changes to erl_bif_types seem like a good candidate for
further analysis (commits bd941f50 03715097 9d870a01). Maybe the
changes are not finished yet.


That's a good idea. I will git bisect rebar.
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Tuncer Ayaz</dc:creator>
    <dc:date>2012-05-15T23:24:21</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2942">
    <title>Re: Spec or Dialyzer regression</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2942</link>
    <description>&lt;pre&gt;
Since Tuncer did not submit all the info he has, let me add that the 
behavior reported in his mail exists in the *master* branch of OTP and 
*not* in the maint branch which works correctly in rebar's code base.

It's unlikely that this is a dialyzer issue, as AFAIK dialyzer's code is 
the same in these two branches, but it's most likely either due to some 
erroneous spec that was introduced/changed in the master branch or a 
problem in rebar's code base.

IMO, Tuncer should have checked the latter before filling the report. It 
would be nice if he did that.

Kostis
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Kostis Sagonas</dc:creator>
    <dc:date>2012-05-15T20:24:34</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2941">
    <title>Spec or Dialyzer regression</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2941</link>
    <description>&lt;pre&gt;Tthere seems to be a spec or Dialyzer regression in otp master
revealed when dialyzing rebar.

Steps to reproduce:
$ git clone git://github.com/basho/rebar.git &amp;amp;&amp;amp; cd rebar
# assuming ~/.dialzer_plt is for otp master
$ make check
# otherwise, use custom PLT
$ make debug &amp;amp;&amp;amp; dialyzer --plt otp_master_plt ebin

You can ignore the extra warnings enabled via 'make check'. They make
no difference.

R15B01:
rebar_utils.erl:154: Call to missing or unexported function escript:foldl/3

R16 (OTP_R15B01-386-g77c47cd):

rebar_core.erl:440: The call rebar_core:apply_hook({_,{_,_}}) will
never return since it differs in the 1st argument from the success
typing arguments: ({_,{binary() | maybe_improper_list(binary() |
maybe_improper_list(any(),binary() | []) | non_neg_integer(),binary()
| []) | {'re_pattern',_,_,_},_,_}})
rebar_ct.erl:64: Function run_test/3 has no local return
rebar_ct.erl:91: Function check_log/1 will never be called
rebar_ct.erl:113: Function show_log/1 will never be called
rebar_deps.erl:287: Function require_source_engine/1 has no local
return
rebar_deps.erl:325: The pattern &amp;lt;Dep, 0&amp;gt; can never match the type
&amp;lt;#dep{},3&amp;gt;
rebar_deps.erl:355: Function download_source/2 will never be called
rebar_deps.erl:411: Function update_source/2 will never be called
rebar_deps.erl:443: Function source_engine_avail/1 has no local return
rebar_deps.erl:447: Function source_engine_avail/2 has no local return
rebar_deps.erl:450: The pattern 'true' can never match the type 'false'
rebar_deps.erl:464: Function will never be called
rebar_erlc_compiler.erl:272: Function compile_mib/3 has no local return
rebar_erlydtl_compiler.erl:128: The pattern 'false' can never match
the type 'true'
rebar_erlydtl_compiler.erl:162: Function referenced_dtls/2 has no
local return
rebar_erlydtl_compiler.erl:163: The call
rebar_erlydtl_compiler:referenced_dtls1([atom() | binary() | [atom() |
[any()] | char()],...],Config::any(),set()) will never return since it
differs in the 1st argument from the success typing arguments:
([],rebar_config:config(),set())
rebar_erlydtl_compiler.erl:167: Function referenced_dtls1/3 has no
local return
rebar_erlydtl_compiler.erl:175: The created fun has no local return
rebar_erlydtl_compiler.erl:175: Fun application with arguments
(Step::[atom() | binary() | [atom() | [any()] | char()],...]) will
never return since it differs in the 1st argument from the success
typing arguments: ([])
rebar_erlydtl_compiler.erl:175: The pattern [] can never match the
type [atom() | binary() | [atom() | [any()] | char()],...]
rebar_erlydtl_compiler.erl:186: Function will never be called
rebar_erlydtl_compiler.erl:187: Function will never be called
rebar_file_utils.erl:75: Function mv/2 has no local return
rebar_file_utils.erl:123: Function xcopy_win32/2 has no local return
rebar_neotoma_compiler.erl:88: The pattern 'false' can never match the
type 'true'
rebar_neotoma_compiler.erl:116: Function referenced_pegs/2 has no
local return
rebar_neotoma_compiler.erl:117: The call
rebar_neotoma_compiler:referenced_pegs1([atom() | binary() | [atom() |
[any()] | char()],...],Config::any(),set()) will never return since it
differs in the 1st argument from the success typing arguments:
([],rebar_config:config(),set())
rebar_neotoma_compiler.erl:121: Function referenced_pegs1/3 has no
local return
rebar_neotoma_compiler.erl:129: The created fun has no local return
rebar_neotoma_compiler.erl:129: Fun application with arguments
(Step::[atom() | binary() | [atom() | [any()] | char()],...]) will
never return since it differs in the 1st argument from the success
typing arguments: ([])
rebar_neotoma_compiler.erl:129: The pattern [] can never match the
type [atom() | binary() | [atom() | [any()] | char()],...]
rebar_neotoma_compiler.erl:140: Function will never be called
rebar_neotoma_compiler.erl:141: Function will never be called
rebar_utils.erl:93: Function sh/2 has no local return
rebar_utils.erl:154: Call to missing or unexported function
escript:foldl/3
rebar_utils.erl:442: Function vcs_vsn_invoke/2 has no local return
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Tuncer Ayaz</dc:creator>
    <dc:date>2012-05-15T19:50:30</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2940">
    <title>Re: rpc:call hide throw</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2940</link>
    <description>&lt;pre&gt;
I am not saying its a good idea mind you, but could you not catch the
exception where its propagated and reraise it in the client with
erlang:raise/3. Again, let me reiterate that I am *not* proposing this
as a solution, I would really need to think out the repercussions
before doing that.


I think we are agreeing here.


I thought that catch was actually deprecated. After going and looking
I realize that it is not. Not only that, but the docs don't seem to
mention that its a bad idea.


This also sounds like a problem that needs to be fixed, perhaps actual
deprecation and removal of catch?


That sounds reasonable to me.

_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Eric Merritt</dc:creator>
    <dc:date>2012-05-14T15:39:11</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2939">
    <title>Re: rpc:call hide throw</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2939</link>
    <description>&lt;pre&gt;
The problem with that is that once you propagate the exception to the
caller you loose the stack trace. Also throwing outside a catching
construct is an error in the called side, that should't propagate as
valid return to the calling side.

I've come across many instances of these problem trying to use throws
as exceptions. We (me and Richard Carlsson reported a possible bug to
the list as OTP behaviour callbacks do the same thing, and recently we
saw the same problem in dynamic pages in yaws (though that has already
been fixed by Steve Vinoski).

The underlying issue is that catch and try-catch have really different
behaviour concerning throws. I'd like to think that catch is legacy
and shouldn't be used, as that enables developers to use throw as it
is defined in http://www.erlang.se/workshop/2004/exception.pdf. That
is, an uncaught exception behaves as a no_catch error, with a proper
stack trace. This way, throws can be used both as non-local returns
and as exceptions. However, there seem to be lots of catches in tools
there that hinder what I understand is "the intended use of throw
nowadays."

For this concrete case I think the rpc should fail, as
throw(some_reason) does fail if you call it outside any catch
construct.

Regards
&lt;/pre&gt;</description>
    <dc:creator>Samuel</dc:creator>
    <dc:date>2012-05-14T15:23:45</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2938">
    <title>Re: rpc:call hide throw</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2938</link>
    <description>&lt;pre&gt;Just to throw my 2c and agree with the original poster. Regardless of
whether exceptions are encouraged or not, the fact is that thrown
exceptions are a documented part of the language, and for rpc:call not
to return some indicator of the excepted state is broken.

I would equate this to the use of 'catch'. The argument against that
use that you can't tell valid return values from thrown return values.
The solution is "don't use catch, use one of the try forms".  That
same argument would seem to apply here. However, In this case there is
no form that propagates the exception in any way. Perhaps some
additional rpc:call_&amp;lt;x&amp;gt; or rpc:&amp;lt;x&amp;gt;_call needs to be added that either
propagates the exception as an exception (problematic I know) or wraps
all values in a tuple in the normal erlang way. `{ok, &amp;lt;valid-result&amp;gt;}`
or `{exit | throw | error, &amp;lt;thrown-value&amp;gt;}`.

On Mon, May 14, 2012 at 9:17 AM, Vyacheslav Vorobyov &amp;lt;vjache&amp;lt; at &amp;gt;gmail.com&amp;gt; wrote:
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Eric Merritt</dc:creator>
    <dc:date>2012-05-14T14:31:47</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2937">
    <title>Re: rpc:call hide throw</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2937</link>
    <description>&lt;pre&gt;Let me disagree with "erlang:throw/1 does not generate an exception".

Am I wrong addressing you to
http://www.erlang.org/doc/reference_manual/errors.html#id81437. I
think it does generate exception of class 'throw' ;-)

About "We don't throw errors in erlang.", probably yes, but we also
don't want to loose (hide) information when using rpc:call.
Information about HOW value returned. Currently rpc:call provides us
with doubtful "service" it decides for us that normally returned value
and thrown one are "equally good".

2012/5/14 Robert Virding &amp;lt;robert.virding&amp;lt; at &amp;gt;erlang-solutions.com&amp;gt;:



&lt;/pre&gt;</description>
    <dc:creator>Vyacheslav Vorobyov</dc:creator>
    <dc:date>2012-05-14T14:17:42</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2936">
    <title>Re: rpc:call hide throw</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2936</link>
    <description>&lt;pre&gt;Well, a "nonlocal return" is also an exception. It's just a different 
class of exception than exits and errors. The question here is whether 
the rpc really ought to catch the trow and convert it to a regular 
return value, as done currently, or if it should let the caller know for 
sure that the code terminated with a throw.

The documentation for rpc:call() just says that you should get {badrpc, 
Reason} "if the call fails". And exactly what Reason is in this case is 
not specified further. Turns out, it's whatever you got from "catch 
apply(M,F,As)" if that yields {'EXIT',...}, so if the rpc failed with an 
error, you get a stack trace, but if it failed with an exit, you don't 
get a stack trace. This is all rather messy.

    /Richard

On 2012-05-14 08:33, Robert Virding wrote:

_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

&lt;/pre&gt;</description>
    <dc:creator>Richard Carlsson</dc:creator>
    <dc:date>2012-05-14T09:12:13</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2935">
    <title>Re: rpc:call hide throw</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2935</link>
    <description>&lt;pre&gt;erlang:throw/1 does not generate an exception or error, it does a non-local return from a function up to a surrounding catch or try. In this sense this is not an unreasonable return value, it behaves as if there is an implicit catch. If it were to generate an error it would be a 'nocatch' error. See

http://www.erlang.org/doc/man/erlang.html#throw-1

We don't throw errors in erlang. :-)

Robert

----- Original Message -----
_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs
&lt;/pre&gt;</description>
    <dc:creator>Robert Virding</dc:creator>
    <dc:date>2012-05-14T06:33:24</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2934">
    <title>rpc:call hide throw</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2934</link>
    <description>&lt;pre&gt;---------- Forwarded message ----------
From: Vyacheslav Vorobyov &amp;lt;vjache&amp;lt; at &amp;gt;gmail.com&amp;gt;
Date: 2012/5/11
Subject: rpc:call hide throw
To: erlang-bugs&amp;lt; at &amp;gt;erlang.org


Hello,

% 1. Good behavior
{badrpc,{'EXIT', some_reson }} = rpc:call(node(),erlang,exit,[some_reson]).

% 2. Bad behavior
some_reson = rpc:call(node(),erlang,throw,[some_reson]).

The second case describes an issue. It makes indistinguishable normal
result from exception.


--
Best Regargs,
     Vyacheslav


&lt;/pre&gt;</description>
    <dc:creator>Vyacheslav Vorobyov</dc:creator>
    <dc:date>2012-05-12T20:53:43</dc:date>
  </item>
  <item rdf:about="http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2933">
    <title>Re: lists:suffix/2 (R15B01 x64)</title>
    <link>http://permalink.gmane.org/gmane.comp.lang.erlang.bugs/2933</link>
    <description>&lt;pre&gt;Doh!

 

- Beads

 

http://tanglelabs.com/

 

 

From: Nicolas Charpentier [mailto:nc&amp;lt; at &amp;gt;charpi.net] 
Sent: Friday, May 11, 2012 6:49 PM
To: Beads Land-Trujillo
Cc: erlang-bugs&amp;lt; at &amp;gt;erlang.org
Subject: Re: [erlang-bugs] lists:suffix/2 (R15B01 x64)

 

http://www.erlang.org/doc/man/lists.html#suffix-2

 

suffix(List1, List2) -&amp;gt; boolean()

 

Returns true if List1 is a suffix of List2, otherwise false

 

 

I think you wanted to call lists:suffix("a", "ala").

 

 

 

/Nicolas

 

 

 

On 11 May 2012, at 23:40, Beads Land-Trujillo wrote:





Not the behaviour I was expecting:

 

Running Erlang

Eshell V5.9.1  (abort with ^G)

1&amp;gt; lists:suffix("ala", "a")

false

 

Is this a release-wide issue?

 

- Beads

 

http://tanglelabs.com/

 

 

_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs

 

_______________________________________________
erlang-bugs mailing list
erlang-bugs&amp;lt; at &amp;gt;erlang.org
http://erlang.org/mailman/listinfo/erlang-bugs
&lt;/pre&gt;</description>
    <dc:creator>Beads Land-Trujillo</dc:creator>
    <dc:date>2012-05-12T00:40:02</dc:date>
  </item>
  <textinput rdf:about="http://search.gmane.org/?group=$group=gmane.comp.lang.erlang.bugs">
    <title>Search Engine</title>
    <description>Search the mailing list at Gmane</description>
    <name>query</name>
    <link>http://search.gmane.org/?group=$group=gmane.comp.lang.erlang.bugs</link>
  </textinput>
</rdf:RDF>

