Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9194581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:26:53+00:00 2026-06-17T21:26:53+00:00

If i write some erlang code to build a supervision tree and then launch

  • 0

If i write some erlang code to build a supervision tree and then launch the application at the boot whith the following command, it may be very hard to find out why it doesn’t work :

erl -s myapp -pa ebin ... ...

(myapp example module)

-module(myapp).
-export([start/0]).
start() -> application:start(myapp).

Let’s say that my app launches a supervisor, myapp_sup. myapp_sup launches at its turn several supervisors (let’s say server_sup, database_sup, another_sup).

Theese supervisors will launch some gen_servers.

At some point, if there is a mistake in my code, i cannot find it out !

I wrote a call to somemodule:functionthatdoesntexists() in the init callback of some gen_server.

All the vm says is “init terminating in do boot” and then display error location of a badmatch, precising file and line of my top module (myapp).

(Badmatch because ok = application:start(…) will not match).

I look in th erl_crash.dump file, and there is no information about this undefined function (yet i find it in the atoms list).

So, i wrote some log to see approximatively where is the error, but then i’ll have to launch my gen_servers by the hand to get back the correct error information.

What am i missing, how could i figure it out faster ?

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:26:54+00:00Added an answer on June 17, 2026 at 9:26 pm

    If your application makes a call to an unknown module, your erl_crash.dump file will contain a line like this one:

    41DABB8:t4:A8:nonexistent_module,A7:unknown,N,N
    

    where the “unknown” in the line indicates that the module nonexistent_module can’t be found. Searching your erl_crash.dump file for the string “unknown” can help in these cases.

    If you suspect a certain module makes a call to a function that doesn’t exist, you can find it using the xref tool in an interactive erl shell. Make sure you compile the module with debug information (typically via erlc +debug_info), then:

    1> xref:m(my_module).
    [{deprecated,[]},
     {undefined,[{{my_module,init,1},{another_module,unknown,0}}]},
     {unused,[]}]
    

    Here, xref shows us that the my_module:init/1 function makes a call to the another_module:unknown/0 function, but the unknown/0 function isn’t defined in another_module.

    You can also use xref to check entire applications; see the documentation for details

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to write some simple code which will read a text file
I am trying to write some code that will generate accurate .proto files from
I'm trying to write some C# code to do administration on IIS. I have
I am trying to write some of my first code in emacs lisp and
I write some code with PHP to backup database. Here my code: exec(mysqldump --opt
I write some code to learning F#. Here is a example: let nextPrime list=
Suppose I have to write some GUI code as follows: widget1.addListener(event1 => handle1(event1) widget2.addListener(event2
I want to write some code in my rails view page to define a
I'm trying to write some Erlang that would filter an array in the form:
I am trying to write some JSF code that centers an image in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.