You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@celix.apache.org by GitBox <gi...@apache.org> on 2023/01/13 09:59:50 UTC

[GitHub] [celix] pnoltes opened a new issue, #471: CI build issues on macOS

pnoltes opened a new issue, #471:
URL: https://github.com/apache/celix/issues/471

   # Intro
   Building and testing on MacOS gives issues when:
    - When Release or RelWithDebInfo cmake build type is used the web socket test are failing
    - syslog writer test are failing (for both Debug and Release)
    - Conan is used
   
   # Issues when using Release
   ```
   ...
   2023-01-13T06:34:43.6377660Z 39: Current msg count is 0, waiting for at least 100
   2023-01-13T06:34:43.6378350Z 39: *** 1673591683.635555000    300864000 123145303588864 accept_new_connection:18007: Accepted socket 6
   2023-01-13T06:34:43.6379030Z 39: *** 1673591683.635594000        39000 123145304125440 consume_socket:17706: grabbed socket 6, going busy
   2023-01-13T06:34:43.6380190Z 39: *** 1673591683.635604000        10000 123145304125440 worker_thread_run:17886: Start processing connection from 127.0.0.1
   2023-01-13T06:34:43.6380910Z 39: *** 1673591683.635607000         3000 123145304125440 process_new_connection:17479: Start processing connection from 127.0.0.1
   2023-01-13T06:34:43.6381640Z 39: *** 1673591683.635609000         2000 123145304125440 process_new_connection:17486: calling get_request (1 times for this connection)
   2023-01-13T06:34:43.6382310Z 39: *** 1673591683.635633000        24000 123145304125440 alloc_get_host:13116: HTTP Host: 127.0.0.1
   2023-01-13T06:34:43.6383250Z 39: *** 1673591683.635638000         5000 123145304125440 process_new_connection:17552: http: 1.1, error: none
   2023-01-13T06:34:43.6384030Z 39: *** 1673591683.635641000         3000 123145304125440 handle_request:13724: URL: /pubsub/default/ping
   2023-01-13T06:34:43.6384720Z 39: *** 1673591683.635664000        23000 123145304125440 open_auth_file:8111: fopen(/.htpasswd): No such file or directory
   2023-01-13T06:34:43.6385410Z 39: *** 1673591683.635674000        10000 123145304125440 send_websocket_handshake:12108: Send websocket handshake
   2023-01-13T06:34:43.6386140Z 39: *** 1673591683.635710000        36000 123145304125440 read_websocket:12195: Websocket connection 127.0.0.1:49354 start data processing loop
   2023-01-13T06:34:43.6386860Z 39: *** 1673591683.635803000        93000 123145306271744 read_websocket:12195: Websocket connection :0 start data processing loop
   2023-01-13T06:34:43.6493880Z 39/53 Test #39: pubsub_websocket_v2_tests ..............................Subprocess aborted***Exception:   0.58 sec
   ...
   2023-01-13T06:35:12.5440540Z 45: Got message in postReceive interceptor (null)/ping for type websocket and ser json with seq nr 3
   2023-01-13T06:35:12.5441270Z 45: {"seqNr":3}
   2023-01-13T06:35:12.5441980Z 45: Got message in postReceive interceptor (null)/ping for type websocket and ser json with seq nr 3
   2023-01-13T06:35:12.5443120Z 45: {"seqNr":3}
   2023-01-13T06:35:12.5443890Z 45: Got message in postReceive interceptor (null)/ping for type websocket and ser json with seq nr 3
   2023-01-13T06:35:12.5444850Z 45/53 Test #45: test_pubsub_interceptors_ws_and_wire_v1_integration ....Subprocess aborted***Exception:   0.58 sec
   ...
   2023-01-13T06:35:58.2172120Z The following tests FAILED:
   2023-01-13T06:35:58.2173750Z 	 21 - test_syslog_writer (SEGFAULT)
   2023-01-13T06:35:58.2174140Z 	 39 - pubsub_websocket_v2_tests (Subprocess aborted)
   2023-01-13T06:35:58.2174580Z 	 45 - test_pubsub_interceptors_ws_and_wire_v1_integration (Subprocess aborted)
   2023-01-13T06:35:58.2175470Z 	 46 - test_pubsub_interceptors_ws_and_wire_v2_integration (Subprocess aborted)
   ...
   ```
   
   # Syslog writer issue
   ```
   2023-01-12T20:21:25.2573330Z 21: AddressSanitizer:DEADLYSIGNAL
   2023-01-12T20:21:25.2574530Z 21: =================================================================
   2023-01-12T20:21:25.2575340Z 21: ==31509==ERROR: AddressSanitizer: SEGV on unknown address 0x000000000010 (pc 0x00010de5ceb0 bp 0x700007c7ba00 sp 0x700007c7ba00 T3)
   2023-01-12T20:21:25.2576030Z 21: ==31509==The signal is caused by a READ memory access.
   2023-01-12T20:21:25.2576900Z 21: ==31509==Hint: address points to the zero page.
   2023-01-12T20:21:27.5244270Z 21:     #0 0x10de5ceb0 in __sanitizer::internal_strlen(char const*)+0x10 (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x61eb0)
   2023-01-12T20:21:27.5244830Z 21:     #1 0x10de1fb8b in printf_common(void*, char const*, __va_list_tag*)+0x7bb (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x24b8b)
   2023-01-12T20:21:27.5245220Z 21:     #2 0x10de2044e in wrap_vasprintf+0x21e (libclang_rt.asan_osx_dynamic.dylib:x86_64+0x2544e)
   2023-01-12T20:21:27.5245570Z 21:     #3 0x10f909b74 in celix_syslogWriter_sinkLog celix_syslog_writer_activator.c:64
   2023-01-12T20:21:27.5245890Z 21:     #4 0x10f4cc9ae in celix_logAdmin_vlogDetails celix_log_admin.c:99
   2023-01-12T20:21:27.5246190Z 21:     #5 0x10f4cc6fa in celix_logAdmin_vlog celix_log_admin.c:111
   2023-01-12T20:21:27.5246490Z 21:     #6 0x10f4cc304 in celix_logAdmin_fatal celix_log_admin.c:166
   2023-01-12T20:21:27.5246880Z 21:     #7 0x10d56b92f in SyslogWriterTestSuite_LogToSysLog_Test::TestBody()::$_1::operator()(void*, void*) const SyslogWriterTestSuite.cc:94
   2023-01-12T20:21:27.5247350Z 21:     #8 0x10d56b66b in SyslogWriterTestSuite_LogToSysLog_Test::TestBody()::$_1::__invoke(void*, void*) SyslogWriterTestSuite.cc:80
   2023-01-12T20:21:27.5247790Z 21:     #9 0x10d9d8c61 in celix_serviceTracker_useHighestRankingService service_tracker.c:761
   2023-01-12T20:21:27.5248180Z 21:     #10 0x10d9b188d in celix_bundleContext_useServiceWithOptions_2_UseServiceTracker bundle_context.c:1185
   2023-01-12T20:21:27.5248880Z 21:     #11 0x10d9c4005 in fw_handleEventRequest framework.c:1531
   2023-01-12T20:21:27.5249160Z 21:     #12 0x10d9c3595 in fw_handleEvents framework.c:1579
   2023-01-12T20:21:27.5249440Z 21:     #13 0x10d9b81a7 in fw_eventDispatcher framework.c:1605
   2023-01-12T20:21:27.5249740Z 21:     #14 0x7ff81cab04e0 in _pthread_start+0x7c (libsystem_pthread.dylib:x86_64+0x64e0)
   2023-01-12T20:21:27.5250070Z 21:     #15 0x7ff81caabf6a in thread_start+0xe (libsystem_pthread.dylib:x86_64+0x1f6a)
   ```
   
   
   # Issues when building with conan
   ```
   2023-01-12T18:53:35.0421950Z The following tests FAILED:
   2023-01-12T18:53:35.0422500Z 	 18 - test_syslog_writer (SEGFAULT)
   2023-01-12T18:53:35.0422880Z 	 37 - pubsub_websocket_v2_tests (Subprocess aborted)
   2023-01-12T18:53:35.0423300Z 	 43 - test_pubsub_interceptors_ws_and_wire_v1_integration (Subprocess aborted)
   2023-01-12T18:53:35.0423760Z 	 44 - test_pubsub_interceptors_ws_and_wire_v2_integration (Subprocess aborted)
   ```
   Note the conan issue overlap when using brew with release
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [celix] PengZheng closed issue #471: CI build issues on macOS

Posted by "PengZheng (via GitHub)" <gi...@apache.org>.
PengZheng closed issue #471: CI build issues on macOS
URL: https://github.com/apache/celix/issues/471


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [celix] PengZheng commented on issue #471: CI build issues on macOS

Posted by GitBox <gi...@apache.org>.
PengZheng commented on issue #471:
URL: https://github.com/apache/celix/issues/471#issuecomment-1381758123

   Are those reproducible on real machine? 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [celix] PengZheng commented on issue #471: CI build issues on macOS

Posted by GitBox <gi...@apache.org>.
PengZheng commented on issue #471:
URL: https://github.com/apache/celix/issues/471#issuecomment-1396430144

   syslog writer test is also failing on Ubuntu:
   https://github.com/apache/celix/actions/runs/3955237372/jobs/6773345149


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [celix] PengZheng commented on issue #471: CI build issues on macOS

Posted by GitBox <gi...@apache.org>.
PengZheng commented on issue #471:
URL: https://github.com/apache/celix/issues/471#issuecomment-1396916768

   For MacOS, I found `va_list` something like this:
   
   ```C
   typedef struct {
     char gpr;			/* index into the array of 8 GPRs stored in the
   				   register save area gpr=0 corresponds to r3,
   				   gpr=1 to r4, etc. */
     char fpr;			/* index into the array of 8 FPRs stored in the
   				   register save area fpr=0 corresponds to f1,
   				   fpr=1 to f2, etc. */
     char *overflow_arg_area;	/* location on stack that holds the next
   				   overflow argument */
     char *reg_save_area;		/* where r3:r10 and f1:f8, if saved are stored */
   } __va_list[1];
   
   #elif	defined(_HIDDEN_VA_LIST) && defined(_VA_LIST)
   
   #undef _HIDDEN_VA_LIST
   typedef __va_list va_list;
   ``` 
   
   https://opensource.apple.com/source/xnu/xnu-201/osfmk/libsa/ppc/va_list.h.auto.html
   
   Then the following seems buggy:
   
   ```C
       char buffer[1024];
       size_t needed = vsnprintf(buffer, 1024, format, formatArgs); //formatArgs is modified HERE
       if (needed > 1024) {
           char *allocatedBuffer = NULL;
           vasprintf(&allocatedBuffer, format, formatArgs); //formatArgs is used again
           syslog(sysLogLvl, "[%s]: %s", logServiceName, allocatedBuffer);
           free(allocatedBuffer);
       } else {
           syslog(sysLogLvl, "[%s]: %s", logServiceName, buffer);
       }
   ```
   
   We may need a `va_copy` here. I'll give it a try.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [celix] pnoltes commented on issue #471: CI build issues on macOS

Posted by GitBox <gi...@apache.org>.
pnoltes commented on issue #471:
URL: https://github.com/apache/celix/issues/471#issuecomment-1381854503

   I have not checked this on my mac yet. I will do this and update this issue with the results. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@celix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org