From rickard.s.green@REDACTED Thu Jan 4 14:41:01 2007 From: rickard.s.green@REDACTED (Rickard Green) Date: Thu, 04 Jan 2007 14:41:01 +0100 Subject: [erlang-bugs] [erlang-questions] R11B-2: one more bug with the "-smp" switch In-Reply-To: <459AF02C.1080600@hq.idt.net> References: <459AF02C.1080600@hq.idt.net> Message-ID: <459D03ED.5090701@ericsson.com> I haven't been able to reproduce this. Have this happened just once or does this happen all the time? Have you set any environment variables affecting the emulator such as ERL_FLAGS? If so, what values do you use? BR, Rickard Green, Erlang/OTP Serge Aleynikov wrote: > Happy New bug, everyone! ;-) > > $ uname -a > Linux xxxxxx 2.6.9-34.ELsmp #1 SMP Fri Feb 24 16:54:53 EST 2006 i686 > i686 i386 GNU/Linux > > $ cat test.erl > -module(test). > -export([f/1]). > > f(Args) -> > io:format("~s~n", [filename:join(Args)]). > > $ erl -noshell -run test f "/usr" "local" -s erlang halt > /usr/local > $ erl -smp -noshell -run test f "/usr" "local" -s erlang halt > {"init terminating in > do_boot",{undef,[{test,f,[["/usr","local"]]},{init,start_it,1},{init,start_em,1}]}} > > Crash dump was written to: erl_crash.dump > init terminating in do_boot () > > > Regards, > > Serge > From gunilla@REDACTED Wed Jan 10 10:19:38 2007 From: gunilla@REDACTED (Gunilla Arendt) Date: Wed, 10 Jan 2007 10:19:38 +0100 Subject: [erlang-bugs] Memory explosion in http_util:integer_to_hexlist/1 In-Reply-To: References: Message-ID: <45A4AFAA.2020405@erix.ericsson.se> Hi, Thanks for your comment. This will be fixed in inets-4.7.8, to be released with R11B-3. Regards, Gunilla, Erlang/OTP team Julian Fondren wrote: > inets-4.7.6/src/http_util.erl contains this code: > > integer_to_hexlist(Num)-> > integer_to_hexlist(Num, get_size(Num), []). > > Which should probably be: > > integer_to_hexlist(Num) when integer(Num) -> > integer_to_hexlist(Num, get_size(Num), []). > > > Thank you, > Julian > > ps. do not do this: http_util:integer_to_hexlist([0]). From dmitry.kargapolov@REDACTED Mon Jan 22 22:48:08 2007 From: dmitry.kargapolov@REDACTED (Dmitriy Kargapolov) Date: Mon, 22 Jan 2007 16:48:08 -0500 Subject: [erlang-bugs] async driver in multithread mode - segmentation fault Message-ID: <45B53118.50509@corp.idt.net> Hi, I was trying to implement asynchronous driver which is invoked in a separate thread. It crashes with "segmentation fail" message when second call is issued, in driver_async(). I'm attaching dummy short test which shows the problem. I intentionally removed from the code most of driver_free() calls to reduce potential problem source. following command makes it failed: erl +A4 -noshell -s drv t -s init stop but no-thread-pool one works fine: erl -noshell -s drv t -s init stop Tested in R11-0, R11-2, smp and non-smp Linux. Any idea / help is appreciated. Thanks. -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: drv.c URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: drv.erl URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: Makefile URL: From bjorn@REDACTED Tue Jan 23 17:37:57 2007 From: bjorn@REDACTED (Bjorn Gustavsson) Date: 23 Jan 2007 17:37:57 +0100 Subject: [erlang-bugs] async driver in multithread mode - segmentation fault In-Reply-To: <45B53118.50509@corp.idt.net> References: <45B53118.50509@corp.idt.net> Message-ID: Thanks for the bug report. We have found the bug and we will include a correction in R11B-3 (probably to be released within 1 or 2 weeks). /Bjorn Dmitriy Kargapolov writes: > Hi, > I was trying to implement asynchronous driver which is invoked in a > separate thread. It crashes with "segmentation fail" message when > second call is issued, in driver_async(). > > I'm attaching dummy short test which shows the problem. I > intentionally removed from the code most of driver_free() calls to > reduce potential problem source. > . . . -- Bj?rn Gustavsson, Erlang/OTP, Ericsson AB From hpjcon@REDACTED Sat Jan 27 21:14:05 2007 From: hpjcon@REDACTED (Jan Jacobs) Date: Sat, 27 Jan 2007 22:14:05 +0200 Subject: [erlang-bugs] ODBC and Windows 2003 Anomaly Message-ID: <000c01c7424f$b491c490$c800a8c0@jan03> Hi All, I am experiencing an anomaly with erlang running the odbc application. Steps: I start the odbc application. >application:start(odbc). Create a odbc connection to the databse. It works an the queries work. >f(Ref),{ok,Ref}=odbc:connect("DSN=example;UID=SYSDBA;PWD=masterkey",[]). Disconnect from the databse. >odbc:disconnect(Ref). Create a new connection. The erlang runtime hangs and the erlang process CPU runs away. >f(Ref),{ok,Ref}=odbc:connect("DSN=example;UID=SYSDBA;PWD=masterkey",[]). System Description: - Microsoft Windows Server 2003, Standard Edition and Service Pack 1. - Erlang 5.5.2 Summary: The weirdest thing I have an application the follows the same steps as above which works every time on Windows XP. >From 10 Windows 2003 servers I have experience the problem three times already. I am not sure if I am missing something. Any help will be appreciated. Thanks Jan Jacobs -------------- next part -------------- An HTML attachment was scrubbed... URL: From hpjcon@REDACTED Wed Jan 31 19:29:41 2007 From: hpjcon@REDACTED (Jan Jacobs) Date: Wed, 31 Jan 2007 20:29:41 +0200 Subject: [erlang-bugs] ODBC and Windows 2003 Anomaly References: <000c01c7424f$b491c490$c800a8c0@jan03> Message-ID: <001401c74565$c8001310$c800a8c0@jan03> More Feedback: I managed to track down where in the odbc module it hangs. It is in the handle_msg({connect, ODBCCmd, AutoCommitMode, SrollableCursors}, Timeout, State) function while doing the following call gen_tcp:accept(ListenSocketSup, 5000). I can execute odbc:connect as many times as I want and it works. It only hangs when I do an odbc:disconnect and odbc:connect . Unfortunately debugging is a slow process because this is a customer's server. On my test server everything is working. Cheers Jan Jacobs ----- Original Message ----- From: Jan Jacobs To: erlang-bugs@REDACTED Sent: Saturday, January 27, 2007 10:14 PM Subject: [erlang-bugs] ODBC and Windows 2003 Anomaly Hi All, I am experiencing an anomaly with erlang running the odbc application. Steps: I start the odbc application. >application:start(odbc). Create a odbc connection to the databse. It works an the queries work. >f(Ref),{ok,Ref}=odbc:connect("DSN=example;UID=SYSDBA;PWD=masterkey",[]). Disconnect from the databse. >odbc:disconnect(Ref). Create a new connection. The erlang runtime hangs and the erlang process CPU runs away. >f(Ref),{ok,Ref}=odbc:connect("DSN=example;UID=SYSDBA;PWD=masterkey",[]). System Description: - Microsoft Windows Server 2003, Standard Edition and Service Pack 1. - Erlang 5.5.2 Summary: The weirdest thing I have an application the follows the same steps as above which works every time on Windows XP. From 10 Windows 2003 servers I have experience the problem three times already. I am not sure if I am missing something. Any help will be appreciated. Thanks Jan Jacobs ------------------------------------------------------------------------------ _______________________________________________ erlang-bugs mailing list erlang-bugs@REDACTED http://www.erlang.org/mailman/listinfo/erlang-bugs -------------- next part -------------- An HTML attachment was scrubbed... URL: