Opened 9 years ago

Last modified 9 years ago

#49410 new defect

gearmand @1.1.12: Segmentation fault

Reported by: zoonman (Philipp) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.3.4
Keywords: Cc: nick.lavrik@…
Port: gearmand

Description

# port info gearmand
gearmand @1.1.12 (sysutils, net, devel)
Variants:             drizzle, dtrace, memcached, postgres, [+]sqlite, tokyocabinet, universal

Description:          Gearman provides a generic application framework to farm out work to other machines or processes that are better suited to do the work. It allows you to do work in parallel, to load
                      balance processing, and to call functions between languages. It can be used in a variety of applications, from high-availability web sites to the transport of database replication
                      events. In other words, it is the nervous system for how distributed processing communicates.
Homepage:             http://gearman.org/

Library Dependencies: boost, libevent, sqlite3
Platforms:            darwin
License:              BSD
Maintainers:          nomaintainer@macports.org

# uname -a
Darwin zmMac.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep  1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64

# gearmand
Segmentation fault: 11


Tried to reinstall, tried to install libevent & reinstall port. I suspect something inside gearmand code.

Attachments (1)

gearmand_2015-10-23-190817_zmMac.crash (10.2 KB) - added by zoonman (Philipp) 9 years ago.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 9 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: segfault removed
Port: @1.1.12 removed
Summary: Segmentation fault in gearmandgearmand @1.1.12: Segmentation fault

Could you attach the crash log, please?

comment:2 Changed 9 years ago by zoonman (Philipp)

Process:               gearmand [10813]
Path:                  /opt/local/sbin/gearmand
Identifier:            gearmand
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        bash [10477]
Responsible:           Terminal [383]
User ID:               501

Date/Time:             2015-10-23 19:08:17.715 -0400
OS Version:            Mac OS X 10.10.5 (14F1021)
Report Version:        11
Anonymous UUID:        ED0FBF6C-DE38-359A-8E16-99C57BAB1A7D

Sleep/Wake UUID:       49402FC6-C122-4D61-97C5-F1D5C9D71F8E

Time Awake Since Boot: 140000 seconds
Time Since Wake:       40000 seconds

Crashed Thread:        0  Dispatch queue: com.apple.main-thread

Exception Type:        EXC_BAD_ACCESS (SIGSEGV)
Exception Codes:       KERN_INVALID_ADDRESS at 0x00000000000f8630

VM Regions Near 0xf8630:
--> 
    __TEXT                 0000000109c2f000-0000000109c66000 [  220K] r-x/rwx SM=COW  /opt/local/sbin/gearmand

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
0   gearmand                      	0x0000000109c3a35c boost::program_options::typed_value<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, char>::xparse(boost::any&, std::__1::vector<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::allocator<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > > > const&) const + 12
1   libboost_program_options-mt.dylib	0x0000000109da9ab8 boost::program_options::option_description::~option_description() + 56
2   libboost_program_options-mt.dylib	0x0000000109da9b5f boost::program_options::option_description::~option_description() + 15
3   gearmand                      	0x0000000109c4101c std::__1::__vector_base<boost::shared_ptr<boost::program_options::option_description>, std::__1::allocator<boost::shared_ptr<boost::program_options::option_description> > >::~__vector_base() + 76
4   gearmand                      	0x0000000109c33a8c main + 11036
5   libdyld.dylib                 	0x00007fff943c05c9 start + 1

Thread 0 crashed with X86 Thread State (64-bit):
  rax: 0x00000000000f8630  rbx: 0x0000000109e36e00  rcx: 0x00007feedb0001f0  rdx: 0x00000000000f8630
  rdi: 0x00007feeda503950  rsi: 0x0000000109e36e00  rbp: 0x00007fff55fcf9d0  rsp: 0x00007fff55fcf9c0
   r8: 0x000000000000002b   r9: 0x00007feeda500000  r10: 0x0000000000000060  r11: 0x00007feeda500000
  r12: 0x0000000109c67830  r13: 0x0000000109c68240  r14: 0x00007feeda5039f0  r15: 0x00007fff55fd0370
  rip: 0x0000000109c3a35c  rfl: 0x0000000000010206  cr2: 0x00000000000f8630
  
Logical CPU:     2
Error Code:      0x00000004
Trap Number:     14


Binary Images:
       0x109c2f000 -        0x109c65fff +gearmand (0) <55187D2E-BD23-39F2-90DA-0A7302892F4A> /opt/local/sbin/gearmand
       0x109ca2000 -        0x109d41ff7 +libsqlite3.0.dylib (0) <D50980A3-08FC-3492-A801-298E8DC65121> /opt/local/lib/libsqlite3.0.dylib
       0x109d5e000 -        0x109d87fff +libevent-2.0.5.dylib (0) <63F21906-3B05-3C58-9A90-CDBA4DF9F687> /opt/local/lib/libevent-2.0.5.dylib
       0x109d99000 -        0x109dd5fff +libboost_program_options-mt.dylib (0) <28A822E1-EBAC-3936-A9B5-39427E27CE48> /opt/local/lib/libboost_program_options-mt.dylib
    0x7fff6e8c1000 -     0x7fff6e8f7887  dyld (353.2.3) <B1B370A5-479F-3533-8AD7-97B687D4F989> /usr/lib/dyld
    0x7fff84dca000 -     0x7fff84dcaff7  libkeymgr.dylib (28) <77845842-DE70-3CC5-BD01-C3D14227CED5> /usr/lib/system/libkeymgr.dylib
    0x7fff84f57000 -     0x7fff84f5fffb  libcopyfile.dylib (118.1.2) <0C68D3A6-ACDD-3EF3-991A-CC82C32AB836> /usr/lib/system/libcopyfile.dylib
    0x7fff85759000 -     0x7fff8575bfff  libquarantine.dylib (76.20.1) <7AF90041-2768-378A-925A-D83161863642> /usr/lib/system/libquarantine.dylib
    0x7fff85a95000 -     0x7fff85ac5fff  libsystem_m.dylib (3086.1) <1E12AB45-6D96-36D0-A226-F24D9FB0D9D6> /usr/lib/system/libsystem_m.dylib
    0x7fff85d75000 -     0x7fff85d7aff7  libunwind.dylib (35.3) <BE7E51A0-B6EA-3A54-9CCA-9D88F683A6D6> /usr/lib/system/libunwind.dylib
    0x7fff8630a000 -     0x7fff86315fff  libcommonCrypto.dylib (60061.30.1) <E789748D-F9A7-3CFF-B317-90DF348B1E95> /usr/lib/system/libcommonCrypto.dylib
    0x7fff8742e000 -     0x7fff87432fff  libcache.dylib (69) <45E9A2E7-99C4-36B2-BEE3-0C4E11614AD1> /usr/lib/system/libcache.dylib
    0x7fff8776a000 -     0x7fff8776aff7  liblaunch.dylib (559.40.1) <4F81CA3A-D2CE-3030-A89D-42F3DAD7BA8F> /usr/lib/system/liblaunch.dylib
    0x7fff87884000 -     0x7fff87a7e46f  libobjc.A.dylib (647) <759E155D-BC42-3D4E-869B-6F57D477177C> /usr/lib/libobjc.A.dylib
    0x7fff87ada000 -     0x7fff87adcfff  libsystem_configuration.dylib (699.40.2) <56F94DCE-DBDE-3615-8F07-DE6270D9F8BE> /usr/lib/system/libsystem_configuration.dylib
    0x7fff87c02000 -     0x7fff87c03ffb  libremovefile.dylib (35) <3485B5F4-6CE8-3C62-8DFD-8736ED6E8531> /usr/lib/system/libremovefile.dylib
    0x7fff88f53000 -     0x7fff88f59fff  libsystem_trace.dylib (72.20.1) <840F5301-B55A-3078-90B9-FEFFD6CD741A> /usr/lib/system/libsystem_trace.dylib
    0x7fff88f8a000 -     0x7fff89003fe7  libcorecrypto.dylib (233.30.1) <5779FFA0-4D9A-3AD4-B7F2-618227621DC8> /usr/lib/system/libcorecrypto.dylib
    0x7fff89a29000 -     0x7fff89a30ff7  libcompiler_rt.dylib (35) <BF8FC133-EE10-3DA6-9B90-92039E28678F> /usr/lib/system/libcompiler_rt.dylib
    0x7fff8a5b1000 -     0x7fff8a5b6fff  libsystem_stats.dylib (163.30.2) <D0E96837-3CF6-323D-B711-6DF6F660E530> /usr/lib/system/libsystem_stats.dylib
    0x7fff8a724000 -     0x7fff8a778fff  libc++.1.dylib (120) <1B9530FD-989B-3174-BB1C-BDC159501710> /usr/lib/libc++.1.dylib
    0x7fff8ab58000 -     0x7fff8ab5eff7  libsystem_networkextension.dylib (167.40.3) <BA58B30B-8377-3B0A-8AE3-4F84021D9D4E> /usr/lib/system/libsystem_networkextension.dylib
    0x7fff8ab6b000 -     0x7fff8ab93fff  libxpc.dylib (559.40.1) <5C829202-962E-3744-8B50-00D38CC88E84> /usr/lib/system/libxpc.dylib
    0x7fff8ab94000 -     0x7fff8aba5ff3  libsystem_coretls.dylib (35.40.1) <155DA0A9-2046-332E-BFA3-D7974A51F731> /usr/lib/system/libsystem_coretls.dylib
    0x7fff8bd89000 -     0x7fff8bdb4fff  libc++abi.dylib (125) <88A22A0F-87C6-3002-BFBA-AC0F2808B8B9> /usr/lib/libc++abi.dylib
    0x7fff8bf7f000 -     0x7fff8bf87fff  libsystem_dnssd.dylib (576.50.2) <9EC5AF92-D0D2-3BDE-92B6-D3730D3865C8> /usr/lib/system/libsystem_dnssd.dylib
    0x7fff8bf88000 -     0x7fff8bf9eff7  libsystem_asl.dylib (267) <F153AC5B-0542-356E-88C8-20A62CA704E2> /usr/lib/system/libsystem_asl.dylib
    0x7fff8cbe5000 -     0x7fff8cbe5ff7  libunc.dylib (29) <5676F7EA-C1DF-329F-B006-D2C3022B7D70> /usr/lib/system/libunc.dylib
    0x7fff8d0d1000 -     0x7fff8d0edff7  libsystem_malloc.dylib (53.30.1) <DDA8928B-CC0D-3255-BD8A-3FEA0982B890> /usr/lib/system/libsystem_malloc.dylib
    0x7fff8d0ee000 -     0x7fff8d0f0fff  libsystem_sandbox.dylib (358.20.5) <3F5E973F-C702-31AC-97BC-05F5C195683C> /usr/lib/system/libsystem_sandbox.dylib
    0x7fff8d133000 -     0x7fff8d15dff7  libdispatch.dylib (442.50.1) <A61E703C-784A-3698-B513-75DD12AAD6DC> /usr/lib/system/libdispatch.dylib
    0x7fff8dfef000 -     0x7fff8dff4ff7  libmacho.dylib (862) <126CA2ED-DE91-308F-8881-B9DAEC3C63B6> /usr/lib/system/libmacho.dylib
    0x7fff8e045000 -     0x7fff8e046fff  libsystem_secinit.dylib (18) <581DAD0F-6B63-3A48-B63B-917AF799ABAA> /usr/lib/system/libsystem_secinit.dylib
    0x7fff8e2d5000 -     0x7fff8e2d6ff3  libSystem.B.dylib (1213) <1866C519-C5F3-3D09-8C17-A8F703664521> /usr/lib/libSystem.B.dylib
    0x7fff8e31e000 -     0x7fff8e346fff  libsystem_info.dylib (459.40.1) <2E16C4B3-A327-3957-9C41-143911979A1E> /usr/lib/system/libsystem_info.dylib
    0x7fff8f58d000 -     0x7fff8f595fff  libsystem_platform.dylib (63) <64E34079-D712-3D66-9CE2-418624A5C040> /usr/lib/system/libsystem_platform.dylib
    0x7fff8faeb000 -     0x7fff8faecff7  libsystem_blocks.dylib (65) <9615D10A-FCA7-3BE4-AA1A-1B195DACE1A1> /usr/lib/system/libsystem_blocks.dylib
    0x7fff901a6000 -     0x7fff901affff  libsystem_pthread.dylib (105.40.1) <ACE90967-ECD0-3251-AEEB-461E3C6414F7> /usr/lib/system/libsystem_pthread.dylib
    0x7fff90295000 -     0x7fff9029eff7  libsystem_notify.dylib (133.1.1) <61147800-F320-3DAA-850C-BADF33855F29> /usr/lib/system/libsystem_notify.dylib
    0x7fff90dbe000 -     0x7fff90ddbfff  libsystem_kernel.dylib (2782.50.1) <1EE815DA-FF1B-3A53-AE9B-C98BD8177A9D> /usr/lib/system/libsystem_kernel.dylib
    0x7fff90ea6000 -     0x7fff90edefff  libsystem_network.dylib (412.20.3) <6105C134-6722-3C0A-A4CE-5E1261E2E1CC> /usr/lib/system/libsystem_network.dylib
    0x7fff90f12000 -     0x7fff90f13fff  libDiagnosticMessagesClient.dylib (100) <2EE8E436-5CDC-34C5-9959-5BA218D507FB> /usr/lib/libDiagnosticMessagesClient.dylib
    0x7fff90ff7000 -     0x7fff91083fe7  libsystem_c.dylib (1044.40.1) <F0635E0F-FE4B-34DB-ACF9-A58C1E9070E9> /usr/lib/system/libsystem_c.dylib
    0x7fff91288000 -     0x7fff912ceff7  libauto.dylib (186) <A260789B-D4D8-316A-9490-254767B8A5F1> /usr/lib/libauto.dylib
    0x7fff922f4000 -     0x7fff922f6ff7  libsystem_coreservices.dylib (9) <41B7C578-5A53-31C8-A96F-C73E030B0938> /usr/lib/system/libsystem_coreservices.dylib
    0x7fff943bd000 -     0x7fff943c0ff7  libdyld.dylib (353.2.3) <CFBBE540-D503-3AFC-B5D6-644F1E69949B> /usr/lib/system/libdyld.dylib

External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 24109915
    thread_create: 0
    thread_set_state: 0

VM Region Summary:
ReadOnly portion of Libraries: Total=78.7M resident=53.2M(68%) swapped_out_or_unallocated=25.4M(32%)
Writable regions: Total=26.5M written=188K(1%) resident=964K(4%) swapped_out=0K(0%) unallocated=25.5M(96%)
 
REGION TYPE                      VIRTUAL
===========                      =======
Kernel Alloc Once                     4K
MALLOC                             18.2M
MALLOC (admin)                       16K
STACK GUARD                        56.0M
Stack                              8192K
VM_ALLOCATE                           8K
__DATA                              736K
__LINKEDIT                         71.6M
__TEXT                             7228K
shared memory                         4K
===========                      =======
TOTAL                             161.6M

Changed 9 years ago by zoonman (Philipp)

comment:3 Changed 9 years ago by nick.lavrik@…

Cc: nick.lavrik@… added

Cc Me!

comment:4 Changed 9 years ago by zoonman (Philipp)

I finally found way to fix gearmand installation:

sudo port install gearmand +memcached

It looks like turning memcached on changed something.

Note: See TracTickets for help on using tickets.