Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
try to find the crash report (a challenge)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Joel Reymont  
View profile  
 More options Dec 1 2011, 7:59 am
From: Joel Reymont <joe...@gmail.com>
Date: Thu, 1 Dec 2011 12:59:42 +0000
Local: Thurs, Dec 1 2011 7:59 am
Subject: [erlang-questions] try to find the crash report (a challenge)
https://github.com/wagerlabs/mod_crash

This is a super-simple httpd plugin module that crashes.

I cannot find the crash report, can you?

Help!

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "problem with inets httpd? (was Re: try to find the crash report (a challenge))" by Joel Reymont
Joel Reymont  
View profile  
 More options Dec 1 2011, 8:17 am
From: Joel Reymont <joe...@gmail.com>
Date: Thu, 1 Dec 2011 13:17:58 +0000
Local: Thurs, Dec 1 2011 8:17 am
Subject: [erlang-questions] problem with inets httpd? (was Re: try to find the crash report (a challenge))
Could this be a problem with the supervision tree of inets?

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "try to find the crash report (a challenge)" by Yurii Rashkovskii
Yurii Rashkovskii  
View profile  
 More options Dec 1 2011, 8:34 am
From: Yurii Rashkovskii <yra...@gmail.com>
Date: Thu, 1 Dec 2011 05:34:49 -0800 (PST)
Local: Thurs, Dec 1 2011 8:34 am
Subject: Re: [erlang-questions] try to find the crash report (a challenge)

The problem is in httpd. httpd_request_handler has this:

    PROCESSED = (catch Module:Function([Data | Args])),

so it will swallow your crash. Besides, the case statement right after that
seems to be fairly wrong. It has an all-catch clause NewMFA, and it assumes
PROCESSED is a new MFA if it is nothing that matched before. That means, an
EXIT tuple will be treated as a new MFA. Unless I'm missing something, this
is just wrong.

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joel Reymont  
View profile  
 More options Dec 1 2011, 8:36 am
From: Joel Reymont <joe...@gmail.com>
Date: Thu, 1 Dec 2011 13:36:26 +0000
Local: Thurs, Dec 1 2011 8:36 am
Subject: Re: [erlang-questions] try to find the crash report (a challenge)
You can get the crash reports in /tmp/error.log (in my case).

This works if the list of httpd modules is set to [mod_log, mod_crash].

There's still nothing shown via regular SASL channels.

On Dec 1, 2011, at 1:34 PM, Yurii Rashkovskii wrote:

> The problem is in httpd. httpd_request_handler has this:

>     PROCESSED = (catch Module:Function([Data | Args])),

> so it will swallow your crash. Besides, the case statement right after that seems to be fairly wrong. It has an all-catch clause NewMFA, and it assumes PROCESSED is a new MFA if it is nothing that matched before. That means, an EXIT tuple will be treated as a new MFA. Unless I'm missing something, this is just wrong.

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ahmed Omar  
View profile  
 More options Dec 2 2011, 5:03 am
From: Ahmed Omar <spawn.th...@gmail.com>
Date: Fri, 2 Dec 2011 11:03:28 +0100
Local: Fri, Dec 2 2011 5:03 am
Subject: Re: [erlang-questions] try to find the crash report (a challenge)

Well, there won't be crash report anywhere because inets does catch the
exception in httpd_resonse.erl

--
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "problem with inets httpd? (was Re: try to find the crash report (a challenge))" by Ahmed Omar
Ahmed Omar  
View profile  
 More options Dec 2 2011, 5:04 am
From: Ahmed Omar <spawn.th...@gmail.com>
Date: Fri, 2 Dec 2011 11:04:57 +0100
Local: Fri, Dec 2 2011 5:04 am
Subject: Re: [erlang-questions] problem with inets httpd? (was Re: try to find the crash report (a challenge))

No. It's just that the exception is caught in httpd_response.erl

traverse_modules(ModData,[Module|Rest]) ->
    ?hdrd("traverse modules", [{callback_module, Module}]),
    case (catch apply(Module, do, [ModData])) of

On Thu, Dec 1, 2011 at 2:17 PM, Joel Reymont <joe...@gmail.com> wrote:
> Could this be a problem with the supervision tree of inets?

> --------------------------------------------------------------------------
> - for hire: mac osx device driver ninja, kernel extensions and usb drivers
> ---------------------+------------+---------------------------------------
> http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
> ---------------------+------------+---------------------------------------

> _______________________________________________
> erlang-questions mailing list
> erlang-questi...@erlang.org
> http://erlang.org/mailman/listinfo/erlang-questions

--
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "try to find the crash report (a challenge)" by Ahmed Omar
Ahmed Omar  
View profile  
 More options Dec 2 2011, 5:12 am
From: Ahmed Omar <spawn.th...@gmail.com>
Date: Fri, 2 Dec 2011 11:12:39 +0100
Local: Fri, Dec 2 2011 5:12 am
Subject: Re: [erlang-questions] try to find the crash report (a challenge)

And what you get in error.log is just a formatted message after catching
the exception
case (catch apply(Module, do, [ModData])) of
{'EXIT', Reason} ->
    ?hdrd("traverse modules - exit", [{reason, Reason}]),
    String =
lists:flatten(
  io_lib:format("traverse exit from apply: ~p:do => ~n~p",
[Module, Reason])),

--
Best Regards,
- Ahmed Omar
http://nl.linkedin.com/in/adiaa
Follow me on twitter
@spawn_think <http://twitter.com/#!/spawn_think>

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »