[Ace-users] [ace-users] svc.conf issue?

Mike Waters mister.programmer at gmail.com
Mon Mar 10 14:49:58 CDT 2008


    ACE VERSION: 5.6.3

    HOST MACHINE and OPERATING SYSTEM:
    RHEL 4

    TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
    COMPILER NAME AND VERSION (AND PATCHLEVEL):
    g++ 3.4.6

    THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
    specific file, simply state which one]:
    config-linux.h

    THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
    use a link to a platform-specific file, simply state which one
    (unless this isn't used in this case, e.g., with Microsoft Visual
    C++)]:
    platfrom_linux.GNU

    CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
    (used by MPC when you generate your own makefiles):
    Using delivered makefiles

    AREA/CLASS/EXAMPLE AFFECTED:
    Reading/processing of a svc.conf file

    DOES THE PROBLEM AFFECT:
    Compiles and links fine.
    At run-time, the program SIGSEGV's.

    SYNOPSIS:
    Few pieces of info:
        * We are upgrading from ACE 5.5.1
        * We dont use a lot of ace, but we do use the reactor and
service configurator
    Questions:
        * Did something change in the format of svc.conf files between
5.5.1 and 5.6.3?

    When creating the objects defined by this svc.conf file, the
program SIGSEGV's

    I can post other information, just not sure what would be helpful
at this point.  Perhaps someone can give me a few pointers or a
general direction on where to possibly look.

    Thanks in advance to all the give me a hand on this.


    ----svc.conf.pc----
    static ACE_Service_Manager "-p 20000"

    stream dynamic ProcessFramwork STREAM *commonlibrary:make_stream() active
    {
     dynamic Q_Writer Module *commonlibrary:make_q_writer()
     dynamic BL_Event_Producer Module *commonlibrary:make_bl()
     dynamic Control_Q_Reader Module *commonlibrary:make_cq_reader()
    }

    Here is the output from GDB of the core file
---- GDB OUTPUT ---
GNU gdb Red Hat Linux (6.3.0.0-1.153.el4_6.2rh)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i386-redhat-linux-gnu"...Using host
libthread_db library "/lib/tls/libthread_db.so.1".

Core was generated by `86:PC:1 -f ../configuration/svc.conf.pc -c
../configuration/pc.test.xml -r COMP'.
Program terminated with signal 11, Segmentation fault.

<snipped reading symbols stuff>

#0  0x00d08c50 in ACE_Service_Type::type (this=0x0)
    at /home/mwaters/svnwork2.0.0/external-tools/ACE/branches/2.0.0/5.6.3/ACE_wrappers/ace/Service_Object.inl:34
34      return this->type_;
(gdb) bt
#0  0x00d08c50 in ACE_Service_Type::type (this=0x0)
    at /home/mwaters/svnwork2.0.0/external-tools/ACE/branches/2.0.0/5.6.3/ACE_wrappers/ace/Service_Object.inl:34
#1  0x00d1b3d8 in ace_get_module (sr=0x0, sv=0x0, ace_yyerrno=@0xbff4fa18)
    at Svc_Conf_y.cpp:1710
#2  0x00d1a77f in ace_yyparse (ace_svc_conf_parameter=0xbff4fa10)
    at Svc_Conf_y.cpp:1265
#3  0x00d121f4 in ACE_Service_Gestalt::process_directives_i (this=0x9e0144c,
    param=0xbff4fa10) at Service_Gestalt.cpp:825
#4  0x00d123e8 in ACE_Service_Gestalt::process_file (this=0x9e0144c,
    file=0x9e27728 "../configuration/svc.conf.pc") at Service_Gestalt.cpp:924
#5  0x00d12f1c in ACE_Service_Gestalt::process_directives (this=0x9e0144c)
    at Service_Gestalt.cpp:1215
#6  0x00d12820 in ACE_Service_Gestalt::open_i (this=0x9e0144c,
    ignore_debug_flag=false) at Service_Gestalt.cpp:1065
#7  0x00d0d0b0 in ACE_Service_Config::open_i (this=0x9e0144c,
    program_name=0xbffa782a "86:PC:1", logger_key=0x7ea974 "localhost:20012",
    ignore_static_svcs=false, ignore_default_svc_conf_file=true,
    ignore_debug_flag=false) at Service_Config.cpp:309
#8  0x00703536 in ACE_Service_Gestalt::open (this=0x9e0144c, argc=7,
    argv=0xbff50274, logger_key=0x7ea974 "localhost:20012",
    ignore_static_svcs=false, ignore_default_svc_conf=false,
    ignore_debug_flag=false)
    at /home/mwaters/svnwork2.0.0/external-tools/dist/ace/Service_Gestalt.inl:44
#9  0x0070349f in ACE_Service_Config::open (argc=7, argv=0xbff50274,
    logger_key=0x7ea974 "localhost:20012", ignore_static_svcs=false,
    ignore_default_svc_conf=false, ignore_debug_flag=false)
    at /home/mwaters/svnwork2.0.0/external-tools/dist/ace/Service_Config.inl:37
#10 0x0070319f in osiris_common::ClerkInitializer::initialize (this=0x9e068e0)
    at clerks/ClerkInitializer.cpp:70
#11 0x0073554d in InitializerHandler::execute (this=0x9e04908)
    at initialization/InitializerHandler.cpp:63
#12 0x0073329a in AfterConfigurationInitializerImpl::initialize (
    this=0x9e04900) at initialization/AfterConfigurationInitializer.cpp:55
#13 0x0073554d in InitializerHandler::execute (this=0x9e06b6c)
    at initialization/InitializerHandler.cpp:63
#14 0x00734c86 in InitializationManagerImpl::initialize (this=0x9e06b68)
    at initialization/InitializationManager.cpp:98
#15 0x007cdc34 in osiris_common::OsirisProcess::run (source=0x809fb34 "PC",
    processLogEvent=@0xbff50180, argc=7, argv=0xbff50274)
    at startup/OsirisProcess.cpp:248
#16 0x080691fb in main (argc=7, argv=0xbff50274) at src/pc/PCMain.cpp:51
(gdb) q

----- END GDB ---

    DESCRIPTION:

    REPEAT BY:
    Every svc.conf file we have seems to fail



More information about the Ace-users mailing list