Erlang/OTP Forums

Author Message

<  Yaws mailing list  ~  Yaws Server and the Process Dictionary

TrevorWoollacott
Posted: Mon Sep 14, 2009 3:09 pm Reply with quote
Joined: 27 Jul 2007 Posts: 8
Hi all,

I have setup an HTTPS server using Yaws-1.75 in Erlang R12-B5. While the clients are connected I'm seeing the following error every few seconds:
{{badmatch,undefined},[{proc_lib,exit_p,2}]}

I realise that this occurs in the following case (in R12-B5):
- A process is spawned using proc_lib:spawn_link,
- $initial_call is erased from the dictionary of that process,
- Then the process exits or crashes

When I check the dictionary of some of the Yaws Acceptors they are missing '$ancestors' and '$initial_call', as shown below (with the actual values removed by me):
dictionary: [
{gc, ...},
{init_db,[{gc, ...}]}]

However the other Acceptors still have $ancestors and $initial_call:
dictionary: [
{gc, ...},
{'$ancestors',[<5368.75.0>,yaws_server,yaws_sup,<5368.58.0>]},
{'$initial_call',{yaws_server,acceptor0,2}},
{init_db,[{gc, ...},
{'$ancestors',[<5368.75.0>,yaws_server,yaws_sup,<5368.58.0>]},
{'$initial_call',{yaws_server,acceptor0,2}]}]

So I assume that when the Yaws Acceptor exits normally, proc_lib:exit_p/2 crashes when it tries to match {m, f, a} with the value in '$initial_call'.

Has anyone seen this occur before with Yaws?

Thanks,
Trevor

NOTE: This e-mail message is subject to the MTN Group disclaimer see http://www.mtn.co.za/SUPPORT/LEGAL/Pages/EmailDisclaimer.aspx

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
View user's profile Send private message
Guest
Posted: Wed Sep 16, 2009 10:32 am Reply with quote
Guest
Trevor Woollacott [ MTN - Innovation Centre ] wrote:
> Hi all,
>
> I have setup an HTTPS server using Yaws-1.75

1.75 is pretty old, and Yaws is using the proc dict in
fairly ugly ways. I think that you're seeing old (fixed) bugs
in how the proc dict is handled by Yaws.

Maybe

- proc dict/proc_lib patch by Magnus F (in 1.7Cool


is the fix.

/klacke

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post received from mailinglist
TrevorWoollacott
Posted: Wed Sep 16, 2009 11:09 am Reply with quote
Joined: 27 Jul 2007 Posts: 8
> From: Claes Wikstr
View user's profile Send private message

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum