Project

General

Profile

Bug #84

Updated by Nitesh Mor almost 4 years ago

The GDP should not crash programs that use the GDP.

Here's an assertion in gdp_gcl_create().

Is there a way to turn these off?

Here's the log:

```

~~~
JavaScriptGDPLogName: JavaScriptGDPLogName: ptolemy.actor.lib.jjs.modules.gdp.test.auto.GDPLogSubscribeJS.0.5884172563617972 (Thread[GDPLogSubscribeJS,1,main])
GDPLogCreate: GDPLogCreate.js: create() Start. (Thread[GDPLogSubscribeJS,1,main])
GDPHelper.GDPHelper(ptolemy.actor.lib.jjs.modules.gdp.test.auto.GDPLogSubscribeJS.0.5884172563617972, 3, edu.berkeley.eecs.gdp-01.gdplogd):
GDPManager: Using configuration files in /Users/cxh/.ep_adm_params
GDPManager: gdp settings:
swarm.gdp.routers=gdp-03.eecs.berkeley.edu; gdp-02.eecs.berkeley.edu
GDP_GCL.java: newGCL(org.terraswarm.gdp.GDP_NAME@42a3cfbc, 3, org.terraswarm.gdp.GDP_NAME@6acf3338)
GDP_GCL.java: GDP_GCL(org.terraswarm.gdp.GDP_NAME@42a3cfbc(gEwMhqmS_9hcQEX9-U05nsYdwUCmnsRWcsd-H9wYhtU^@), RA, org.terraswarm.gdp.GDP_NAME@6acf3338(m5FiAV65ufV8Oe3SinfrOZPcbzXtlNOG-lmD-KSsE1U^@)
_gdp_lib_init(NULL)
@(#)libgdp 0.7.2 (2016-10-22 21:40) ae1cebb1a5135c3ec22f4a3222e12a60cc76bb3b
My GDP routing name = uWkPiA1k94Pujw10-A4YDx4pHjbafUPYozGvvEszG9E
gdp_lib_init: OK
Trying Zeroconf:
create_new_simple_poll_client: avahi_simple_poll_get: Daemon not running
Failed to create client object: Daemon not running
gdp_zc_scan: create_new_simple_poll_client failed: No such file or directory
gdp_zc_scan failed
_gdp_chan_open(gdp-03.eecs.berkeley.edu; gdp-02.eecs.berkeley.edu)
Trying gdp-03.eecs.berkeley.edu
_gdp_chan_open: trying host gdp-03.eecs.berkeley.edu port 8007
Trying gdp-02.eecs.berkeley.edu
_gdp_chan_open: trying host gdp-02.eecs.berkeley.edu port 8007
_gdp_chan_open: could not open channel: ERROR: Network is unreachable [EPLIB:errno:51]
gdp_init: ERROR: Network is unreachable [EPLIB:errno:51]

>>> gdp_gcl_open(gEwMhqmS_9hcQEX9-U05nsYdwUCmnsRWcsd-H9wYhtU)

>>> _gdp_invoke(req=0x7ffab7719e40 rid=1): CMD_OPEN_RA (75), gcl@0x7ffab7735690
datum @ 0x7ffab7735850: recno -1, len 0, no timestamp
<<< _gdp_invoke(0x7ffab7719e40 rid=1) CMD_OPEN_RA: ABORT: lost connection to GDP [Berkeley:Swarm-GDP:20]
Couldn't open GCL gEwMhqmS_9hcQEX9-U05nsYdwUCmnsRWcsd-H9wYhtU:
ABORT: lost connection to GDP [Berkeley:Swarm-GDP:20]
_gdp_req_lock: req @ 0x7ffab7719e40 freed
2016-10-23 16:01:47.171041 -0700 java: _gdp_req_freeall: couldn't acquire req lock: ERROR: request freed while in use [Berkeley:Swarm-GDP:31]

<<< _gdp_req_freeall(0x7ffab77356e8): ERROR: request freed while in use [Berkeley:Swarm-GDP:31]
<<< gdp_gcl_open(gEwMhqmS_9hcQEX9-U05nsYdwUCmnsRWcsd-H9wYhtU): ABORT: lost connection to GDP [Berkele\
y:Swarm-GDP:20]
GDP_GCL: gdp_gcl_open() failed, trying to create the log and call gdp_gcl_open() again.
GDP_GCL.java: create(org.terraswarm.gdp.GDP_NAME@42a3cfbc, , org.terraswarm.gdp.GDP_NAME@6acf3338, {}\
)
gdp_lib_init: OK
Trying Zeroconf:
create_new_simple_poll_client: avahi_simple_poll_get: Daemon not running
Failed to create client object: Daemon not running
gdp_zc_scan: create_new_simple_poll_client failed: No such file or directory
gdp_zc_scan failed
_gdp_chan_open(gdp-03.eecs.berkeley.edu; gdp-02.eecs.berkeley.edu)
Trying gdp-03.eecs.berkeley.edu
_gdp_chan_open: trying host gdp-03.eecs.berkeley.edu port 8007
Trying gdp-02.eecs.berkeley.edu
_gdp_chan_open: trying host gdp-02.eecs.berkeley.edu port 8007
_gdp_chan_open: could not open channel: ERROR: Network is unreachable [EPLIB:errno:51]
gdp_init: ERROR: Network is unreachable [EPLIB:errno:51]

>>> gdp_gcl_create
_gdp_gcl_create: gcl=gEwMhqmS_9hcQEX9-U05nsYdwUCmnsRWcsd-H9wYhtU
logd=m5FiAV65ufV8Oe3SinfrOZPcbzXtlNOG-lmD-KSsE1U
Assertion failed at gdp_req.c:150: assert:
!EP_UT_BITSET(GDP_REQ_ON_GCL_LIST, req->flags)
Abort trap: 6
bash-3.2$
``` ~~~

Here's the important part of the Java stack trace:

``` ~~~
Thread 30 Crashed:: Java: GDPLogSubscribeJS
0 libsystem_kernel.dylib 0x00007fff96037f06 __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff83c0f4ec pthread_kill + 90
2 libsystem_c.dylib 0x00007fff8af666df abort + 129
3 jna2395229788052593588.tmp 0x000000017a8c7ac1 ep_assert_failure + 273
4 jna2395229788052593588.tmp 0x000000017a8c32f8 _gdp_req_new + 984
5 jna2395229788052593588.tmp 0x000000017a8bc7e1 _gdp_gcl_create + 273 (gdp_gcl_ops.c:261)
6 jna2395229788052593588.tmp 0x000000017a8b78c5 gdp_gcl_create + 245 (gdp_api.c:319)
7 jna1907739429753297179.tmp 0x000000011c4af514 ffi_call_unix64 + 76
8 jna1907739429753297179.tmp 0x000000011c4af42d ffi_call + 781
9 jna1907739429753297179.tmp 0x000000011c4a6565 0x11c4a2000 + 17765
10 ??? 0x00000001053b49d4 0 + 4382738900
11 ??? 0x00000001053a52bd 0 + 4382675645
12 ??? 0x00000001053a5040 0 + 4382675008
``` ~~~

Back