Microsoft MVP성태의 닷넷 이야기
글쓴 사람
정성태 (seongtaejeong at gmail.com)
홈페이지
첨부 파일
 
(연관된 글이 1개 있습니다.)

docker - sybase ase 컨테이너 실행 시 Current process (0x30002) infected with signal 11 (SIGSEGV)

오랜만에 컨테이너를 실행했더니,

$ docker run --name ase16 -it nguoianphu/docker-sybase
00:0000:00000:00000:2025/11/11 01:28:07.78 kernel  SySAM: Using licenses from: /opt/sybase/SYSAM-2_0/licenses/SYBASE_ASE_DE.lic:/opt/sybase/SYSAM-2_0/licenses/SYBASE_ASE_XE.lic
00:0000:00000:00000:2025/11/11 01:28:07.79 kernel  SySAM: Checked out license for 20 ASE_CORE (2018.1231/permanent/0534 6FD0 8CE5 427C).
00:0000:00000:00000:2025/11/11 01:28:07.79 kernel  This product is licensed to: ASE Developer Edition - For Development and Test use only
00:0000:00000:00000:2025/11/11 01:28:07.79 kernel  Checked out license ASE_CORE
00:0000:00000:00000:2025/11/11 01:28:07.79 kernel  Adaptive Server Enterprise (Developer Edition)
00:0000:00000:00000:2025/11/11 01:28:07.80 kernel  Using config area from primary master device.
00:0000:00000:00000:2025/11/11 01:28:07.81 kernel  Could not allocate memory using Huge Pages. Allocated using regular pages. For better performance, reboot the server after configuring enough Huge Pages.
00:0000:00000:00000:2025/11/11 01:28:07.81 kernel  Internal run-time model set for Linux  - Native
00:0000:00000:00000:2025/11/11 01:28:07.81 kernel  Adaptive Server is using the threaded kernel mode.
00:0000:00000:00000:2025/11/11 01:28:07.81 kernel  Using 40000 file descriptors.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Adaptive Server Enterprise/16.0 SP02 PL02/EBF 25320 SMP/P/x86_64/Enterprise Linux/ase160sp02plx/2492/64-bit/FBO/Sat Nov 21 04:05:39 2015
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Confidential property of SAP AG or an SAP affiliate company.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Copyright 2015
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  SAP AG or an SAP affiliate company.  All rights reserved.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Unpublished rights reserved under U.S. copyright laws.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  This software contains confidential and trade secret information of SAP AG or
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  an SAP affiliate company.  Use,  duplication or disclosure of the software and
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  documentation by the  U.S.  Government is subject to restrictions set forth
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  in a license agreement between the Government and SAP AG or an SAP affiliate
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  company,  or other written agreement specifying the Government's rights to
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  use the software and any applicable FAR provisions, for example, FAR 52.227-19.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  SAP AG or an SAP affiliate company
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Using /opt/sybase as the 'SYBASE' environment variable, found during startup.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Using OCS-16_0 as the 'SYBASE_OCS' environment variable, found during startup.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Using ASE-16_0 as the 'SYBASE_ASE' environment variable, found during startup.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  ASE booted on host 'd7434f8ff0b2' running Linux release 6.8.0-85-generic version #85-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 18 15:26:59 UTC 2025. 
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Using '/opt/sybase/ASE-16_0/MYSYBASE.cfg' for configuration information.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Logging ASE messages in file '/opt/sybase/ASE-16_0/install/MYSYBASE.log'.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Disk Controller Manager is online.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Network Controller Manager is online.
00:0000:00000:00000:2025/11/11 01:28:07.82 kernel  Ct-Lib Controller Manager is online.
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  Platform TCP network support seems IPv6-aware, IPv4/IPv6 are both enabled.
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  ASE booted with TCP_NODELAY enabled.
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  ASE - Dynamic Pluggable Component Interface is enabled
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M0): PCI Memory not available, initializing now....
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M0):   64.0 Mb. allocated for the PCI Memory pool ....
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  ASE_PCI: 4 slot(s) available
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M0): PCI Bridge initializing the PLB for 4 slots
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M0): PCI Bridge escapes large memory allocation requests to the run-time
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M1): Slot 1 has been bound to engine 0
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M1): Slot 2 has been bound to engine 0
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M1): PCI Bridge Slot# 1, Module "JVM Adaptor", Vendor "Sybase an SAP Company", Logical name "PCA/JVM"
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  PCI(M1): PCI Bridge Slot# 2, Module "ODBC Adaptor", Vendor "Sybase an SAP Company", Logical name "PCA/ODBC"
00:0000:00000:00000:2025/11/11 01:28:07.83 kernel  Network and device connection limit is 39985.
00:0000:00000:00000:2025/11/11 01:28:07.84 kernel  Adaptive Server is running as process id 8.
00:0000:00000:00000:2025/11/11 01:28:08.06 server  Number of blocks left for proc headers: 13976.
00:0000:00000:00000:2025/11/11 01:28:08.06 server  Proc header memory allocated 6950 pages for each per engine cache.
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Create Thread Pool 2, "syb_system_pool", type="Run To Completion", with 1 threads
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Warning: Operating System stack size is greater than 2MB. If it is too large, ASE may run out of memory during thread creation. You can reconfigure it using 'limit' (csh) or 'ulimit' (bash)
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Create Thread Pool 1, "syb_default_pool", type="Engine (Multiplexed)", with 1 threads
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Aggressive task stealing enabled
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Create Thread Pool 3, "syb_blocking_pool", type="Run To Completion", with 4 threads
00:0007:00000:00000:2025/11/11 01:28:08.08 kernel  I/O controller 2 (NetController) is running as task 786438 on thread 7 (LWP 21).
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Enabling Linux Native Kernel asynchronous disk I/O strategy.
00:0008:00000:00000:2025/11/11 01:28:08.08 kernel  I/O controller 3 (DiskController) is running as task 917511 on thread 8 (LWP 22).
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Initializing virtual device 0, '/opt/sybase/data/master.dat' with dsync 'off'.
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Virtual device 0 started using asynchronous (with DIRECTIO) i/o.
00:0000:00000:00000:2025/11/11 01:28:08.08 server  Loaded default Unilib conversion handle.
00:0000:00000:00000:2025/11/11 01:28:08.08 kernel  Worker Thread Manager is not enabled for use in ASE.
00:0000:00000:00000:2025/11/11 01:28:08.09 kernel  Either the config parameter 'use security services' is set to 0, or ASE does not support use of external security mechanisms on this platform. The Security Control Layer will not be initialized. No external security mechanisms will be supported.
00:0000:00000:00000:2025/11/11 01:28:08.09 kernel  libsybibmmq - Sybase IBM MQ interface/16.0 SP02 PL02/EBF 25320 SMP/P/x86_64/Enterprise Linux/ase160sp02plx/2492/64-bit/OPT/Sat Nov 21 02:29:37 2015
00:0000:00000:00000:2025/11/11 01:28:08.09 kernel  Loaded encryption provider CSI-2.9M18-linuxamd64-2015/07/13 21:00:24 PDT-sybcsi_openssl-OpenSSL 1.0.1p-fips 9 Jul 2015.
00:0000:00000:00000:2025/11/11 01:28:08.09 kernel  Begin processing to generate RSA keypair.
00:0000:00000:00000:2025/11/11 01:28:08.15 kernel  Completed processing to generate RSA keypair.
00:0000:00000:00000:2025/11/11 01:28:08.15 kernel  Begin processing to generate RSA keypair.
00:0000:00000:00000:2025/11/11 01:28:08.22 kernel  Completed processing to generate RSA keypair.
00:0002:00000:00000:2025/11/11 01:28:08.22 kernel  ASE - Dynamic Pluggable Component Interface is enabled
00:0002:00000:00000:2025/11/11 01:28:08.22 kernel  Thread 2 (LWP 11) of Threadpool syb_default_pool online as engine 0
00:0002:00000:00000:2025/11/11 01:28:08.22 kernel  bucket manager consolidator online
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  Current process (0x30002) infected with signal 11 (SIGSEGV)
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  Address 0x0x00007b9d70031190 (), siginfo (code, address) = (2, 0x0x00007b9d70031190)
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  **** Saved signal context (0x0x000000014ae674c0): ****
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  uc_flags: 0x7, uc_link: 0x(nil)
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  uc_sigmask: 0x416000 0xb 0x2 0x70031190
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  uc_stack: ss_sp: 0x(nil), ss_size: 0x0, ss_flags: 0x2
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  General Registers (uc_mcontext.gregs):
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       PC : 0x00007b9d70031190 ()
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel          RAX : 0x00007b9d70031190  RBX : 0x000000014ae67dc0
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel          RCX : 0x00007b9d700439a0  RDX : 0x00007b9d70000078
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       RBP : 0x000000014ae67f00  RSP : 0x000000014ae67a58
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       R8  : 0x0000000000000001  R9  : 0x00007b9d7000dce0
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       R10 : 0x0000000000000001  R11 : 0x00007b9d86455620
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       R12 : 0x00007b9d70031190  R13 : 0x00007b9d70004970
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       R14 : 0x00007b9d70031080  R15 : 0x00007b9d70030fe8
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       RDI : (nil)  RSI : (nil)
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       RIP : 0x00007b9d70031190  CSGSFS : 0x002b000000000033
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       TRAPNO : 0x000000000000000e  ERR : 0x0000000000000015
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel       EFL : 0x0000000000010206
00:0002:00000:00000:2025/11/11 01:28:08.23 kernel  **** end of signal context ****
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x00000000012deabc pcstkwalk+0x46e()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x00000000012de48f ucstkgentrace+0x20f()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x00000000012db382 ucbacktrace+0x54()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x0000000001587225 terminate_process+0xe95()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x0000000001310144 kisignal+0x31b()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x00007b9d70031190 ()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x00000000011fc075 Snap::Validate()+0x35()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x00000000008ae3d0 SnapValidation+0x82()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  pc: 0x000000000158331c dsinit+0x25c()
00:0002:00000:00000:2025/11/11 01:28:08.24 kernel  end of stack trace, kernel service process: kpid 196610

프로세스 종료가 안 된 상태로 컨테이너는 동작 중으로 나옵니다. 그래서 문제가 있다는 것을 저 로그를 보고 알게 되었는데요, 실제로 이 상태에서는 DB 서비스가 안 되므로 isql 테스트에도 오류가 발생합니다.

# isql -U sa -P myPassword -S MYSYBASE

The context allocation routine failed when it tried to load localization files!!
One or more following problems may caused the failure

Your sybase home directory is /opt/sybase. Check the environment variable SYBASE if it is not the one you want!
Using locale name "C.UTF-8" defined in environment variable LC_ALL
Locale name "C.UTF-8" doesn't exist in your /opt/sybase/locales/locales.dat file
An error occurred when attempting to allocate localization-related structures.

이에 대해 질문하신 분이 있었는데,

docker - SAP Adaptive Server Enterprise 컨테이너 실행
; https://www.sysnet.pe.kr/2/0/12193#15853

다행히 ^^ 그분이 링크한 이슈를 보면,

Sybase 16.0 DB is not getting setup properly on Docker Desktop for Mac #13
; https://github.com/DataGrip/docker-env/issues/13

이후 2022년 8월에 달린 덧글에 우회방법이 나옵니다. 정리하면, RUN_MYBASE 파일을 편집해야 하는데요,

$ cd /opt/sybase/ASE-16_0/install

$ cat RUN_MYSYBASE
#!/bin/sh
#
# SAP ASE page size (KB):       16k
# Master device path:   /opt/sybase/data/master.dat
# Error log path:       /opt/sybase/ASE-16_0/install/MYSYBASE.log
# Configuration file path:      /opt/sybase/ASE-16_0/MYSYBASE.cfg
# Directory for shared memory files:    /opt/sybase/ASE-16_0
# License properties file:      /opt/sybase/ASE-16_0/sysam/MYSYBASE.properties
# Interfaces file directory:    /opt/sybase
# SAP Adaptive Server Enterprise name:  MYSYBASE
#
/opt/sybase/ASE-16_0/bin/dataserver \
-d/opt/sybase/data/master.dat \
-e/opt/sybase/ASE-16_0/install/MYSYBASE.log \
-c/opt/sybase/ASE-16_0/MYSYBASE.cfg \
-M/opt/sybase/ASE-16_0 \
-N/opt/sybase/ASE-16_0/sysam/MYSYBASE.properties \
-i/opt/sybase \
-sMYSYBASE \
-T11889 \

위와 같이 -T11889 옵션을 추가해 주면 문제가 되는 SnapValidation 체크를 끈다고 합니다. 물론, 문제도 해결 되고. ^^




[이 글에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]

[연관 글]






[최초 등록일: ]
[최종 수정일: 11/11/2025]

Creative Commons License
이 저작물은 크리에이티브 커먼즈 코리아 저작자표시-비영리-변경금지 2.0 대한민국 라이센스에 따라 이용하실 수 있습니다.
by SeongTae Jeong, mailto:techsharer at outlook.com

비밀번호

댓글 작성자
 




... 31  32  33  34  35  36  37  38  39  40  41  [42]  43  44  45  ...
NoWriterDateCnt.TitleFile(s)
13011정성태3/21/202224750오류 유형: 802. 윈도우 운영체제에서 웹캠 카메라 인식이 안 되는 경우
13010정성태3/21/202219232오류 유형: 801. Oracle.ManagedDataAccess.Core - GetTypes 호출 시 "Could not load file or assembly 'System.DirectoryServices.Protocols...'" 오류
13009정성태3/20/202222003개발 환경 구성: 640. docker - ibmcom/db2 컨테이너 실행
13008정성태3/19/202222413VS.NET IDE: 176. 비주얼 스튜디오 - 솔루션 탐색기에서 프로젝트를 선택할 때 csproj 파일이 열리지 않도록 만드는 방법
13007정성태3/18/202220007.NET Framework: 1181. C# - Oracle.ManagedDataAccess의 Pool 및 그것의 연결 개체 수를 알아내는 방법파일 다운로드1
13006정성태3/17/202223410.NET Framework: 1180. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 remuxing.c 예제 포팅
13005정성태3/17/202220560오류 유형: 800. C# - System.InvalidOperationException: Late bound operations cannot be performed on fields with types for which Type.ContainsGenericParameters is true.
13004정성태3/16/202221356디버깅 기술: 182. windbg - 닷넷 메모리 덤프에서 AppDomain에 걸친 정적(static) 필드 값을 조사하는 방법
13003정성태3/15/202221094.NET Framework: 1179. C# - (.NET Framework를 위한) Oracle.ManagedDataAccess 패키지의 성능 카운터 설정 방법
13002정성태3/14/202223384.NET Framework: 1178. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 http_multiclient.c 예제 포팅
13001정성태3/13/202224856.NET Framework: 1177. C# - 닷넷에서 허용하는 메서드의 매개변수와 호출 인자의 최대 수
13000정성태3/12/202222701.NET Framework: 1176. C# - Oracle.ManagedDataAccess.Core의 성능 카운터 설정 방법
12999정성태3/10/202222664.NET Framework: 1175. Visual Studio - 프로젝트 또는 솔루션의 Clean 작업 시 응용 프로그램에서 생성한 파일을 함께 삭제파일 다운로드1
12998정성태3/10/202217726.NET Framework: 1174. C# - ELEMENT_TYPE_FNPTR 유형의 사용 예
12997정성태3/10/202229927오류 유형: 799. Oracle.ManagedDataAccess - "ORA-01882: timezone region not found" 오류가 발생하는 이유
12996정성태3/9/202230984VS.NET IDE: 175. Visual Studio - 인텔리센스에서 오버로드 메서드를 키보드로 선택하는 방법
12995정성태3/8/202222452.NET Framework: 1173. .NET에서 Producer/Consumer를 구현한 BlockingCollection<T>
12994정성태3/8/202222028오류 유형: 798. WinDbg - Failed to load data access module, 0x80004002
12993정성태3/4/202221857.NET Framework: 1172. .NET에서 Producer/Consumer를 구현하는 기초 인터페이스 - IProducerConsumerCollection<T>
12992정성태3/3/202225236.NET Framework: 1171. C# - BouncyCastle을 사용한 암호화/복호화 예제파일 다운로드1
12991정성태3/2/202222560.NET Framework: 1170. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 transcode_aac.c 예제 포팅
12990정성태3/2/202223638오류 유형: 797. msbuild - The BaseOutputPath/OutputPath property is not set for project '[...].vcxproj'
12989정성태3/2/202219476오류 유형: 796. mstest.exe - System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.VisualStudio.QualityTools.Tips.WebLoadTest.Tip
12988정성태3/2/202216649오류 유형: 795. CI 환경에서 Docker build 시 csproj의 Link 파일에 대한 빌드 오류
12987정성태3/1/202219304.NET Framework: 1169. C# - ffmpeg(FFmpeg.AutoGen)를 이용한 demuxing_decoding.c 예제 포팅
12986정성태2/28/202223162.NET Framework: 1168. C# -IIncrementalGenerator를 적용한 Version 2 Source Generator 실습 [1]
... 31  32  33  34  35  36  37  38  39  40  41  [42]  43  44  45  ...