Bug 517887 - /usr/sbin/abrt segfaults on startup
Summary: /usr/sbin/abrt segfaults on startup
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: rawhide
Hardware: x86_64
OS: Linux
low
medium
Target Milestone: ---
Assignee: Jiri Moskovcak
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-17 17:28 UTC by Tom London
Modified: 2015-02-01 22:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-08-17 18:30:08 UTC


Attachments (Terms of Use)

Description Tom London 2009-08-17 17:28:27 UTC
Description of problem:
Installed all the abrt packages (after removing kerneloops), but starting the daemon produces segfaults:
abrt[2573]: segfault at 7fa9fa393000 ip 00007faa0718493d sp 00007fff94f69240 error 4 in libc-2.10.90.so[7faa070ff000+176000]
abrt[2900]: segfault at 7fffe8db2000 ip 00007ffff5ba393d sp 00007fffffffe070 error 4 in libc-2.10.90.so[7ffff5b1e000+176000]
abrt[2955]: segfault at 7fffe8db2000 ip 00007ffff5ba393d sp 00007fffffffe070 error 4 in libc-2.10.90.so[7ffff5b1e000+176000]
abrt[2986]: segfault at 7fffe8db2000 ip 00007ffff5ba393d sp 00007fffffffe070 error 4 in libc-2.10.90.so[7ffff5b1e000+176000]

Happens both starting with "service abrt start" and running with "gdb /usr/sbin/abrt".

I downloaded debuginfo packages and ran with gdb.  

Got this:

Debug: Plugin Bugzilla (0.0.1) succesfully loaded.
Debug: Plugin Mailx (0.0.2) succesfully loaded.
Debug: Plugin CCpp (0.0.1) succesfully loaded.
Debug: Plugin SQLite3 (0.0.1) succesfully loaded.
Debug: Plugin KerneloopsScanner (0.0.1) succesfully loaded.
Debug: Plugin FileTransfer (0.0.6) succesfully loaded.
Debug: Plugin RunApp (0.0.1) succesfully loaded.
Debug: Plugin Logger (0.0.1) succesfully loaded.
Debug: Plugin KerneloopsReporter (0.0.1) succesfully loaded.
Debug: Plugin Kerneloops (0.0.2) succesfully loaded.
Debug: Plugin Python (0.0.1) succesfully loaded.
Debug: Registred plugin CCpp(Analyzer)
Debug: Registred plugin Kerneloops(Analyzer)
Debug: Registred plugin KerneloopsReporter(Reporter)
Debug: Registred plugin KerneloopsScanner(Action)
Debug: Registred plugin Logger(Reporter)
Debug: Registred plugin SQLite3(Database)
Debug: Scanning for unsaved entries...
Debug: Locking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Debug: UnLocking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Debug: Locking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Debug: UnLocking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Update: Getting local universal unique identification...
Debug: Locking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Detaching after fork from child process 3032.
Debug: UnLocking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Debug: Locking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Debug: UnLocking '/var/cache/abrt/ccpp-1250529643-2986.lock'...
Debug: Saving into database (/var/cache/abrt/ccpp-1250529643-2986).
Debug: Locking '/var/cache/abrt/ccpp-1250528226-2573.lock'...
Debug: UnLocking '/var/cache/abrt/ccpp-1250528226-2573.lock'...
Debug: Already saved in database (/var/cache/abrt/ccpp-1250528226-2573).
Debug: Runnig...
Debug: Activating plugin: KerneloopsScanner
Debug: Scanning dmesg...
Debug: Scanning syslog...

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff5ba393d in two_way_short_needle (needle_len=<value optimized out>, 
    needle=<value optimized out>, haystack_len=<value optimized out>, 
    haystack=<value optimized out>) at str-two-way.h:273
273		  while (i < needle_len && (CANON_ELEMENT (needle[i])
Current language:  auto; currently c
Missing separate debuginfos, use: debuginfo-install cyrus-sasl-lib-2.1.23-1.fc12.x86_64 file-libs-5.03-8.fc12.x86_64 libcurl-7.19.6-1.fc12.x86_64 nss-3.12.3.99.3-7.1.fc12.x86_64 nss-softokn-freebl-3.12.3.99.3-7.1.fc12.x86_64 rpm-libs-4.7.1-4.fc12.x86_64 xz-libs-4.999.8-0.10.beta.20090817git.fc12.x86_64
(gdb) where
#0  0x00007ffff5ba393d in two_way_short_needle (
    needle_len=<value optimized out>, needle=<value optimized out>, 
    haystack_len=<value optimized out>, haystack=<value optimized out>)
    at str-two-way.h:273
#1  memmem (needle_len=<value optimized out>, needle=<value optimized out>, 
    haystack_len=<value optimized out>, haystack=<value optimized out>)
    at memmem.c:72
#2  0x00007fffe99d8df4 in CSysLog::FillLinePointers (
    this=<value optimized out>, buffer=<value optimized out>, 
    buflen=<value optimized out>, remove_syslog=<value optimized out>)
    at KerneloopsSysLog.cpp:168
#3  0x00007fffe99d900e in CSysLog::ExtractOops (this=0x61, 
    buffer=0x7fffe99d9743 "t", buflen=3, remove_syslog=116)
    at KerneloopsSysLog.cpp:227
#4  0x00007fffe99d6b53 in CKerneloopsScanner::ScanSysLogFile (this=0x65ae40, 
    filename=<value optimized out>, issyslog=1) at KerneloopsScanner.cpp:141
#5  0x00007fffe99d6c09 in CKerneloopsScanner::Run (this=0x65ae40, 
    pActionDir=<value optimized out>, pArgs=<value optimized out>)
    at KerneloopsScanner.cpp:33
#6  0x00007ffff7bc9f93 in CMiddleWare::RunAction (this=<value optimized out>, 
    pActionDir=..., pPluginName=..., pPluginArgs=...) at MiddleWare.cpp:198
#7  0x00000000004049a1 in CCrashWatcher::cron_activation_periodic_cb (
    data=<value optimized out>) at CrashWatcher.cpp:142
---Type <return> to continue, or q <return> to quit---
#8  0x00007ffff58718cb in g_timeout_dispatch (source=0x65b110, 
    callback=0x7fffe99d9743, user_data=0x3) at gmain.c:3396
#9  0x00007ffff58711be in g_main_dispatch (context=<value optimized out>)
    at gmain.c:1960
#10 IA__g_main_context_dispatch (context=<value optimized out>) at gmain.c:2513
#11 0x00007ffff5874ba8 in g_main_context_iterate (context=0x615960, 
    block=<value optimized out>, dispatch=<value optimized out>, 
    self=<value optimized out>) at gmain.c:2591
#12 0x00007ffff5874ff5 in IA__g_main_loop_run (loop=0x615710) at gmain.c:2799
#13 0x0000000000404e58 in CCrashWatcher::Run (this=0x615060)
    at CrashWatcher.cpp:579
#14 0x000000000040b5ed in main (argc=<value optimized out>, 
    argv=<value optimized out>) at Daemon.cpp:76
(gdb) bt full
#0  0x00007ffff5ba393d in two_way_short_needle (
    needle_len=<value optimized out>, needle=<value optimized out>, 
    haystack_len=<value optimized out>, haystack=<value optimized out>)
    at str-two-way.h:273
        i = 3
        j = 3082109
        period = 140737100061402
#1  memmem (needle_len=<value optimized out>, needle=<value optimized out>, 
    haystack_len=<value optimized out>, haystack=<value optimized out>)
    at memmem.c:72
        needle = <value optimized out>
#2  0x00007fffe99d8df4 in CSysLog::FillLinePointers (
    this=<value optimized out>, buffer=<value optimized out>, 
    buflen=<value optimized out>, remove_syslog=<value optimized out>)
    at KerneloopsSysLog.cpp:168
        len = <value optimized out>
        c = 0x7fffe8ac1880 "Aug 14 08:32:19 tlondon kernel: cpu#1, 2393.730 MHz\nAug 14 08:32:19 tlondon kernel:  .nr_running", ' ' <repeats 20 times>, ": 0\nAug 14 08:32:19 tlondon kernel:  .load", ' ' <repeats 26 times>, ": 0\nAug 14 08:32"...
        linelevel = 0 '\000'
        __PRETTY_FUNCTION__ = "int CSysLog::FillLinePointers(char*, size_t, int)"
---Type <return> to continue, or q <return> to quit---
#3  0x00007fffe99d900e in CSysLog::ExtractOops (this=0x61, 
    buffer=0x7fffe99d9743 "t", buflen=3, remove_syslog=116)
    at KerneloopsSysLog.cpp:227
No locals.
#4  0x00007fffe99d6b53 in CKerneloopsScanner::ScanSysLogFile (this=0x65ae40, 
    filename=<value optimized out>, issyslog=1) at KerneloopsScanner.cpp:141
        file = 0x65d2e0
        ret = <value optimized out>
        buflen = <value optimized out>
        __PRETTY_FUNCTION__ = "void CKerneloopsScanner::ScanSysLogFile(const char*, int)"
        statb = {st_dev = 64768, st_ino = 1987, st_nlink = 1, st_mode = 33152, 
          st_uid = 0, st_gid = 0, __pad0 = 0, st_rdev = 0, 
          st_size = 102805799, st_blksize = 4096, st_blocks = 200808, 
          st_atim = {tv_sec = 1250529712, tv_nsec = 211638695}, st_mtim = {
            tv_sec = 1250529678, tv_nsec = 425511883}, st_ctim = {
            tv_sec = 1250529678, tv_nsec = 425511883}, __unused = {0, 0, 0}}
        m_nFoundOopses = <value optimized out>
        nread = 33554432
#5  0x00007fffe99d6c09 in CKerneloopsScanner::Run (this=0x65ae40, 
    pActionDir=<value optimized out>, pArgs=<value optimized out>)
    at KerneloopsScanner.cpp:33
No locals.
---Type <return> to continue, or q <return> to quit---
#6  0x00007ffff7bc9f93 in CMiddleWare::RunAction (this=<value optimized out>, 
    pActionDir=..., pPluginName=..., pPluginArgs=...) at MiddleWare.cpp:198
        action = 0x3
#7  0x00000000004049a1 in CCrashWatcher::cron_activation_periodic_cb (
    data=<value optimized out>) at CrashWatcher.cpp:142
        cronPeriodicCallbackData = 0x672b50
#8  0x00007ffff58718cb in g_timeout_dispatch (source=0x65b110, 
    callback=0x7fffe99d9743, user_data=0x3) at gmain.c:3396
No locals.
#9  0x00007ffff58711be in g_main_dispatch (context=<value optimized out>)
    at gmain.c:1960
        dispatch = 0x7ffff58718b0 <g_timeout_dispatch>
        user_data = can't compute CFA for this frame
(gdb) 



Version-Release number of selected component (if applicable):
abrt-applet-0.0.4-4.fc12.x86_64
abrt-plugin-kerneloopsreporter-0.0.4-4.fc12.x86_64
abrt-addon-ccpp-0.0.4-4.fc12.x86_64
abrt-libs-0.0.4-4.fc12.x86_64
abrt-addon-python-0.0.4-4.fc12.x86_64
abrt-plugin-sqlite3-0.0.4-4.fc12.x86_64
abrt-plugin-logger-0.0.4-4.fc12.x86_64
abrt-devel-0.0.4-4.fc12.x86_64
abrt-0.0.4-4.fc12.x86_64
abrt-cli-0.0.4-4.fc12.x86_64
abrt-gui-0.0.4-4.fc12.x86_64
abrt-plugin-mailx-0.0.4-4.fc12.x86_64
abrt-debuginfo-0.0.4-4.fc12.x86_64
abrt-plugin-filetransfer-0.0.4-4.fc12.x86_64
abrt-plugin-runapp-0.0.4-4.fc12.x86_64
abrt-plugin-bugzilla-0.0.4-4.fc12.x86_64
abrt-addon-kerneloops-0.0.4-4.fc12.x86_64


How reproducible:
Every time daemon starts....

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Tom London 2009-08-17 18:30:08 UTC
Installed latest koji packages and seems to work now:

abrt-addon-kerneloops-0.0.6-1.fc12.x86_64
abrt-cli-0.0.6-1.fc12.x86_64
abrt-plugin-mailx-0.0.6-1.fc12.x86_64
abrt-addon-ccpp-0.0.6-1.fc12.x86_64
abrt-devel-0.0.6-1.fc12.x86_64
abrt-plugin-kerneloopsreporter-0.0.6-1.fc12.x86_64
abrt-plugin-sqlite3-0.0.6-1.fc12.x86_64
abrt-0.0.6-1.fc12.x86_64
abrt-plugin-logger-0.0.6-1.fc12.x86_64
abrt-debuginfo-0.0.4-4.fc12.x86_64
abrt-plugin-bugzilla-0.0.6-1.fc12.x86_64
abrt-plugin-filetransfer-0.0.6-1.fc12.x86_64
abrt-gui-0.0.6-1.fc12.x86_64
abrt-addon-python-0.0.6-1.fc12.x86_64
abrt-plugin-runapp-0.0.6-1.fc12.x86_64
abrt-libs-0.0.6-1.fc12.x86_64


Closing.....


Note You need to log in before you can comment on or make changes to this bug.