SourceForge has been redesigned. Learn more.
Close

#106 np-distd crashes when run in background

np-distd
closed-invalid
Michael
None
5
2014-08-15
2003-06-12
No

Scenario:

np-distd is started with "service net-policy start".
GUI is used to create a host that is the same as the
server.
np-distd crashes whether it is run as root or nobody.

np-distd runs normally if it is run in the foreground.

What follows is a stack trace of the crash:

---Type <return> to continue, or q <return> to quit---
0x420b4c81 in nanosleep () from /lib/i686/libc.so.6
(gdb) c
Continuing.
[New Thread 4101 (LWP 4616)]

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread 1024 (LWP 4542)]
0x4207fb98 in strcmp () from /lib/i686/libc.so.6
(gdb) where
#0 0x4207fb98 in strcmp () from /lib/i686/libc.so.6
#1 0x401322be in type_info::operator==
(this=0x40145e58, arg=@0x400824e4)
from /usr/local/BerkeleyDB.4.1/lib/libdb_cxx-4.1.so
#2 0x40066f4a in mysql_type_info::escape_q
(this=0xbfffdca4)
at type_info1.hh:149
#3 0x4005aa78 in operator<< (o=@0xbfffe2cc,
in=@0xbfffdca0) at coldata1.hh:59
#4 0x08061dc5 in ApplyChangePolicy ()
#5 0x08064100 in main ()
#6 0x42017589 in __libc_start_main () from
/lib/i686/libc.so.6
(gdb)

Discussion

  • Roger Hartmuller

    Logged In: YES
    user_id=92372

    Repeated experiment after updating net-policy. Got a
    different stack trace:

    continuing.
    [New Thread 4101 (LWP 11562)]

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 11499)]
    0x401322b6 in type_info::operator== (this=0x0,
    arg=@0x400824e4) from
    /usr/local/BerkeleyDB.4.1/lib/libdb_cxx-4.1.so
    Current language: auto; currently c++
    (gdb) where
    #0 0x401322b6 in type_info::operator== (this=0x0,
    arg=@0x400824e4) from
    /usr/local/BerkeleyDB.4.1/lib/libdb_cxx-4.1.so
    #1 0x40066f4a in mysql_type_info::escape_q
    (this=0xbfffdba4) at type_info1.hh:149
    #2 0x4005aa78 in operator<< (o=@0xbfffe1cc, in=@0xbfffdba0)
    at coldata1.hh:59
    #3 0x08061d31 in ApplyChangePolicy ()
    #4 0x08063ee4 in main ()
    #5 0x42017589 in __libc_start_main () from /lib/i686/libc.so.6
    (gdb)

     
  • Roger Hartmuller

    Logged In: YES
    user_id=92372

    Repeated experiment on a different machine with updated
    net-policy, and got yet another stack trace:

    ---Type <return> to continue, or q <return> to quit---
    0x420b4c81 in nanosleep () from /lib/i686/libc.so.6
    (gdb) c
    Continuing.
    [New Thread 4101 (LWP 7210)]

    Program received signal SIGSEGV, Segmentation fault.
    [Switching to Thread 1024 (LWP 7189)]
    0x4012f2b6 in type_info::operator== (this=0x0, arg=@0x4007f4e4)
    from /usr/local/BerkeleyDB.4.1/lib/libdb_cxx-4.1.so
    Current language: auto; currently c++
    (gdb)

     
  • Wes Hardaker

    Wes Hardaker - 2003-06-16

    Logged In: YES
    user_id=76242

    fixed by recompiling mysql++

     
  • Wes Hardaker

    Wes Hardaker - 2003-06-16
    • assigned_to: nobody --> baerm
    • status: open --> closed-invalid