16.05 custom kernel call fails to get session capability.
Bob Stewart
robjsstewart at ...196...
Tue Jun 28 16:05:54 CEST 2016
Does not appear to be making a child call (this is without the platform
service being invoked in the run script)--
Starting kernel ...
kernel initialized
Genode 16.05 <local changes>
int main(): --- create local services ---
int main(): --- start init ---
int main(): transferred 503 MB to init
int main(): --- init created, waiting for exit condition ---
session request for Env::ram_session
session request for Env::cpu_session
session request for Env::pd_session
session request for ROM
session request for LOG
[init] Could not open ROM session for module "ld.lib.so"
session request for ROM
session request for PD
session request for RAM
session request for CPU
session request for ROM
session request for PD
session request for RAM
session request for CPU
session request for ROM
session request for PD
session request for RAM
session request for CPU
session request for ROM
session request for PD
session request for RAM
session request for CPU
session request for ROM
session request for PD
session request for RAM
session request for CPU
session request for ROM
session request for PD
session request for RAM
session request for CPU
session request for ROM
session request for PD
session request for RAM
session request for CPU
session request for ROM
[init] session request for Env::ram_session
[init] session request for Env::cpu_session
[init] session request for Env::pd_session
[init] session request for Env::ram_session
[init] session request for Env::cpu_session
[init] session request for Env::pd_session
[init] session request for Env::ram_session
[init] session request for Env::cpu_session
[init] session request for Env::pd_session
[init] session request for Env::ram_session
[init] session request for Env::cpu_session
[init] session request for Env::pd_session
[init] session request for Env::ram_session
[init] session request for Env::cpu_session
[init] session request for Env::pd_session
[init] session request for Env::ram_session
[init] session request for Env::cpu_session
[init] session request for Env::pd_session
[init] session request for Env::ram_session
[init] session request for Env::cpu_session
[init] session request for Env::pd_session
[init] session request for LOG
session request for LOG
[init -> ctrl_module] ---437x Control Module Server : Setting Pin Muxes---
[init] session request for CONTROL_MODULE
session request for CONTROL_MODULE
[init] session request for LOG
session request for LOG
[init -> timer] Maximum timeout 1717986000 us
[init] session request for Gpio
[init] session request for IO_MEM
session request for IO_MEM
[init -> timer] --- am437x timer driver ---
[init] session request for Timer
[init] session request for IO_MEM
session request for IO_MEM
[init] session request for IRQ
session request for IRQ
[init] session request for IO_MEM
session request for IO_MEM
[init] session request for IRQ
session request for IRQ
[init] session request for IO_MEM
session request for IO_MEM
[init] session request for IRQ
session request for IRQ
[init] session request for IO_MEM
session request for IO_MEM
[init] session request for IRQ
session request for IRQ
[init] session request for IO_MEM
session request for IO_MEM
[init] session request for IRQ
session request for IRQ
[init] session request for IO_MEM
session request for IO_MEM
[init] session request for IRQ
session request for IRQ
[init -> ctrl_module] Uncaught exception of type
'Genode::Parent::Service_denied'
[init -> ctrl_module] Warning: abort called - thread: ep
[init] virtual void Genode::Child_policy::exit(int): child "ctrl_module"
exited wi
th exit value 1
[init] session request for LOG
session request for LOG
I'll keep digging!
Bob
On 06/28/2016 09:23 AM, Norman Feske wrote:
> Hello Bob,
>
>> [init -> ctrl_module] Uncaught exception of type
>> 'Genode::Parent::Service_denied'
>> [init -> ctrl_module] Warning: abort called - thread:
>> ep
> ...
>> The uncaught exception is being generated in my "pinmux_session"
>> connection code when a capability for a session is requested, as shown
>> the following in the following code snippet from pinmux_connection.h
> I think you are observing a rather indirect symptom. The actual problem
> is that the 'ctrl_module' aborted for some reason. E.g., it requested a
> service for which no route is configured and got the 'Service_denied'
> exception you see in the log. After aborting, the 'ctrl_module' exits.
> Now, when the '437x_platform_client' tries open a session to this
> service, it is no longer there. So init responds to the session request
> with another 'Service_denied' exception. This is the one that you
> observed in the 'Pinmux_connection' constructor.
>
> You need to find out which kind of session 'ctrl_module' tried to open
> when it aborted. I would instrument the code at
> base/src/lib/base/child.cc like in the attached patch. With the patch
> applied, you will see a nice log of session requests. Look for the one
> that appears immediately before the 'ctrl_module' aborts. It might be
> helpful to also print the session 'args'.
>
> Cheers
> Norman
>
>
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
>
>
> _______________________________________________
> genode-main mailing list
> genode-main at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/genode-main
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.genode.org/pipermail/users/attachments/20160628/ec3be68e/attachment.html>
More information about the users
mailing list