Bug 692590 - abrt-action-bugzilla segfault: "Reporting finished with exit code 139"
Summary: abrt-action-bugzilla segfault: "Reporting finished with exit code 139"
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: abrt
Version: 15
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nikola Pajkovsky
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 692286 694081 694791 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-03-31 15:59 UTC by Steve Tyler
Modified: 2014-02-02 22:15 UTC (History)
11 users (show)

Fixed In Version: abrt-2.0.1-2.fc15
Clone Of:
Environment:
Last Closed: 2011-04-26 16:21:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
screenshot showing error message when abrt-action-bugzilla segfaults (277.78 KB, image/jpeg)
2011-03-31 20:52 UTC, Steve Tyler
no flags Details
screenshot showing successful completion of duplicate detection (111.27 KB, image/png)
2011-04-04 18:47 UTC, Steve Tyler
no flags Details

Description Steve Tyler 2011-03-31 15:59:56 UTC
Description of problem:
Snippet from /var/log/messages:

Mar 30 15:37:25 fir kernel: [ 5252.123918] abrt-action-bug[2400]: segfault at
48 ip 0000003227a3e1f3 sp 00007fffd0707f68 error 4 in
libglib-2.0.so.0.2800.4[3227a00000+115000]
Mar 30 15:37:25 fir abrt[2403]: saved core dump of pid 2400
(/usr/bin/abrt-action-bugzilla) to
/var/spool/abrt/abrt-action-bugzilla-coredump (12550144 bytes)

Snippet from gdb:

[joeblow@fir abrt]$ gdb abrt-action-bugzilla abrt-action-bugzilla-coredump
...
Core was generated by `abrt-action-bugzilla -c /etc/abrt/plugins/Bugzilla.conf'.
Program terminated with signal 11, Segmentation fault.
#0  0x0000003227a3e1f3 in g_list_last (list=0x40) at glist.c:857
857	      while (list->next)
...
(gdb) bt
#0  0x0000003227a3e1f3 in g_list_last (list=0x40) at glist.c:857
#1  0x0000003227a3e28e in g_list_append (list=0x40, data=0x1df9460) at glist.c:268
#2  0x00000000004034e9 in get_bug_cc (bz=0x7fffd0708180, result_xml=0x1e9d380, this=0x7fffd07081e0) at abrt-action-bugzilla.cpp:291
#3  (anonymous namespace)::ctx::get_bug_info (this=0x7fffd07081e0, bz=0x7fffd0708180, bug_id=<optimized out>) at abrt-action-bugzilla.cpp:591
#4  0x0000000000401ed1 in report_to_bugzilla (settings=0x1d8c000, dump_dir_name=0x403e7f ".") at abrt-action-bugzilla.cpp:715
#5  main (argc=<optimized out>, argv=<optimized out>) at abrt-action-bugzilla.cpp:961

Version-Release number of selected component (if applicable):
Core file is from abrt-2.0.0-2.fc15.x86_64.
Symbols are for abrt-2.0.0-3.fc15.x86_64.

How reproducible:
Once.

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


Expected results:


Additional info:
Bug 692286 - Reporting finished with exit code 139

Comment 1 Steve Tyler 2011-03-31 16:10:34 UTC
Not sure if this matters, but bug_cc = 0x40.

(gdb) bt
#0  0x0000003227a3e1f3 in g_list_last (list=0x40) at glist.c:857
#1  0x0000003227a3e28e in g_list_append (list=0x40, data=0x1df9460) at glist.c:268
#2  0x00000000004034e9 in get_bug_cc (bz=0x7fffd0708180, result_xml=0x1e9d380, this=0x7fffd07081e0) at abrt-action-bugzilla.cpp:291
#3  (anonymous namespace)::ctx::get_bug_info (this=0x7fffd07081e0, bz=0x7fffd0708180, bug_id=<optimized out>) at abrt-action-bugzilla.cpp:591
#4  0x0000000000401ed1 in report_to_bugzilla (settings=0x1d8c000, dump_dir_name=0x403e7f ".") at abrt-action-bugzilla.cpp:715
#5  main (argc=<optimized out>, argv=<optimized out>) at abrt-action-bugzilla.cpp:961
(gdb) frame 2
#2  0x00000000004034e9 in get_bug_cc (bz=0x7fffd0708180, result_xml=0x1e9d380, this=0x7fffd07081e0) at abrt-action-bugzilla.cpp:291
291	                bz->bug_cc = g_list_append(bz->bug_cc, (char*)cc);
(gdb) print *bz
$1 = {bug_status = 0x1df9560 "NEW", bug_resolution = 0x0, bug_reporter = 0x1df94e0 "me", bug_product = 0x1dfd1f0 "Fedora", 
  bug_dup_id = -1, bug_cc = 0x40}
(gdb) frame 3
#3  (anonymous namespace)::ctx::get_bug_info (this=0x7fffd07081e0, bz=0x7fffd0708180, bug_id=<optimized out>) at abrt-action-bugzilla.cpp:591
591	    get_bug_cc(result, bz);
(gdb) print *bz
$2 = {bug_status = 0x1df9560 "NEW", bug_resolution = 0x0, bug_reporter = 0x1df94e0 "me", bug_product = 0x1dfd1f0 "Fedora", 
  bug_dup_id = -1, bug_cc = 0x40}

Comment 2 Steve Tyler 2011-03-31 20:52:55 UTC
Created attachment 489231 [details]
screenshot showing error message when abrt-action-bugzilla segfaults

FWIW, I am reproducing this segfault with
abrt-plugin-bugzilla-2.0.0-3.fc15.x86_64.

Comment 3 Nikola Pajkovsky 2011-04-01 08:34:22 UTC
Thanks for really good details. I can give you one simple oneliner patch which set cc_bug to NULL (must be set!), but the bug your are reporting is like nightmare. I can't reproduce it and of course f15 doesn't boot.

(In reply to comment #0)
> [joeblow@fir abrt]$ gdb abrt-action-bugzilla abrt-action-bugzilla-coredump
> ...
> Core was generated by `abrt-action-bugzilla -c
> /etc/abrt/plugins/Bugzilla.conf'.
> Program terminated with signal 11, Segmentation fault.
> #0  0x0000003227a3e1f3 in g_list_last (list=0x40) at glist.c:857
> 857       while (list->next)
> ...

Looks to me as bug in glibc. I did call that.

> (gdb) bt
> #0  0x0000003227a3e1f3 in g_list_last (list=0x40) at glist.c:857
> #1  0x0000003227a3e28e in g_list_append (list=0x40, data=0x1df9460) at
> glist.c:268

I think its reproducible every time, did you see 0x40 always? This could be problem that list is not set to NULL and 0x40 is garbage from memory, because it's not initialized to NULL if not bug in glibc

Comment 4 Nikola Pajkovsky 2011-04-01 09:36:11 UTC
*** Bug 692286 has been marked as a duplicate of this bug. ***

Comment 5 Steve Tyler 2011-04-01 11:05:17 UTC
(In reply to comment #3)
> ... of course f15 doesn't boot.

Setting selinux to "permissive" might help:
/etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=permissive
#SELINUX=enforcing
# SELINUXTYPE= can take one of these two values:
#     targeted - Targeted processes are protected,
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Comment 6 Steve Tyler 2011-04-01 11:33:42 UTC
(In reply to comment #3)
...
> I think its reproducible every time, did you see 0x40 always? This could be
> problem that list is not set to NULL and 0x40 is garbage from memory, because
> it's not initialized to NULL if not bug in glibc

Yes, bug_cc always seems to be 0x40. Frame 4 (below) shows that bz.bug_cc is 0x40 in report_to_bugzilla().

I reproduced the segfault by attempting to resubmit a bug I had already submitted, so that the bug would be detected as a duplicate.

(gdb) bt
#0  0x0000003227a3e1f3 in g_list_last (list=0x40) at glist.c:857
#1  0x0000003227a3e28e in g_list_append (list=0x40, data=0x146e610) at glist.c:268
#2  0x00000000004034e9 in get_bug_cc (bz=0x7fff30add7e0, result_xml=0x13b14e0, this=0x7fff30add840)
    at abrt-action-bugzilla.cpp:291
#3  (anonymous namespace)::ctx::get_bug_info (this=0x7fff30add840, bz=0x7fff30add7e0, bug_id=<optimized out>)
    at abrt-action-bugzilla.cpp:591
#4  0x0000000000401ed1 in report_to_bugzilla (settings=0x1365000, dump_dir_name=0x403e7f ".")
    at abrt-action-bugzilla.cpp:715
#5  main (argc=<optimized out>, argv=<optimized out>) at abrt-action-bugzilla.cpp:961
(gdb) frame 4
#4  0x0000000000401ed1 in report_to_bugzilla (settings=0x1365000, dump_dir_name=0x403e7f ".")
    at abrt-action-bugzilla.cpp:715
715	        if (bz_server.get_bug_info(&bz, bug_id) == -1)
(gdb) print bz
$1 = {bug_status = 0x146e710 "NEW", bug_resolution = 0x0, bug_reporter = 0x146e690 "stephent98", 
  bug_product = 0x145ccc0 "Fedora", bug_dup_id = -1, bug_cc = 0x40}

Comment 7 Steve Tyler 2011-04-01 11:41:24 UTC
*** Bug 692286 has been marked as a duplicate of this bug. ***

Comment 8 Nikola Pajkovsky 2011-04-01 11:50:04 UTC
(In reply to comment #5)
> (In reply to comment #3)
> > ... of course f15 doesn't boot.
> 
> Setting selinux to "permissive" might help:
> /etc/selinux/config
> 
> # This file controls the state of SELinux on the system.
> # SELINUX= can take one of these three values:
> #     enforcing - SELinux security policy is enforced.
> #     permissive - SELinux prints warnings instead of enforcing.
> #     disabled - No SELinux policy is loaded.
> SELINUX=permissive
> #SELINUX=enforcing
> # SELINUXTYPE= can take one of these two values:
> #     targeted - Targeted processes are protected,
> #     mls - Multi Level Security protection.
> SELINUXTYPE=targeted

thanks god that guestfish exists, I'm going to test a simple patch. It will be extraordinary good if I had your crash dump. If you don't have to attach here, just send me crash dump via mail

Comment 9 Nikola Pajkovsky 2011-04-04 07:44:35 UTC
Could you try this build? http://koji.fedoraproject.org/koji/taskinfo?taskID=2971231

Comment 10 Steve Tyler 2011-04-04 18:44:40 UTC
(In reply to comment #9)
> Could you try this build?
> http://koji.fedoraproject.org/koji/taskinfo?taskID=2971231

Sorry for the delay in replying.[1]

The scratch build appears to have eliminated the crash when submitting a duplicate bug.

I verified the crash occurred with abrt-2.0.0-3.fc15.x86_64,
updated to abrt-2.0.0.32.gf8a7-1.fc15.x86_64, rebooted,
and abrt reported the duplicate without crashing.

[1] abrt has so many packages, I thought it would good to use koji to download them. Instead, there is:
Bug 675140 - koji should be able to download a scratch build

Comment 11 Steve Tyler 2011-04-04 18:47:44 UTC
Created attachment 489836 [details]
screenshot showing successful completion of duplicate detection

http://koji.fedoraproject.org/koji/taskinfo?taskID=2971231

abrt-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-addon-ccpp-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-addon-kerneloops-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-addon-python-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-debuginfo-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-desktop-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-gui-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-libs-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-plugin-bugzilla-2.0.0.32.gf8a7-1.fc15.x86_64
abrt-plugin-logger-2.0.0.32.gf8a7-1.fc15.x86_64

Comment 12 Nikola Pajkovsky 2011-04-05 08:31:52 UTC
> [1] abrt has so many packages, I thought it would good to use koji to download
> them. Instead, there is:
> Bug 675140 - koji should be able to download a scratch build

Agree! pretty annoying



commit 9e97b993b215f06c0aa3afb0e54cc51344922317
Author: Nikola Pajkovsky <npajkovs>
Date:   Fri Apr 1 10:54:05 2011 +0200

    GList was not set to NULL, possibly sigsegv on f15
    
    Signed-off-by: Nikola Pajkovsky <npajkovs>

Comment 13 Jiri Moskovcak 2011-04-05 08:54:14 UTC
(In reply to comment #10)
> 
> [1] abrt has so many packages, I thought it would good to use koji to download
> them. Instead, there is:
> Bug 675140 - koji should be able to download a scratch build

- I wrote a scratch downloader, you can download it here: http://jmoskovc.fedorapeople.org/scratchdown.zip

the usage is: 
./koji_downloader -u <user who owns the build> -t <task_id>

so in this case:

./koji_downloader -u npajkovs -t 2971231

Comment 14 Steve Tyler 2011-04-05 09:33:50 UTC
Thanks, Nikola.
https://fedorahosted.org/abrt/changeset/9e97b993b215f06c0aa3afb0e54cc51344922317

Jiri, thanks for the scratch downloader.
I've made note of it in Bug 675140, Comment 2.

Comment 15 Nikola Pajkovsky 2011-04-06 13:16:12 UTC
*** Bug 694081 has been marked as a duplicate of this bug. ***

Comment 16 Nikola Pajkovsky 2011-04-08 13:20:25 UTC
*** Bug 694791 has been marked as a duplicate of this bug. ***

Comment 17 Fedora Update System 2011-04-20 13:39:45 UTC
abrt-2.0.1-1.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/abrt-2.0.1-1.fc15

Comment 18 Fedora Update System 2011-04-21 03:06:29 UTC
Package abrt-2.0.1-1.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing abrt-2.0.1-1.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/abrt-2.0.1-1.fc15
then log in and leave karma (feedback).

Comment 19 Fedora Update System 2011-04-21 16:46:30 UTC
abrt-2.0.1-2.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/abrt-2.0.1-2.fc15

Comment 20 Fedora Update System 2011-04-26 16:13:46 UTC
abrt-2.0.1-2.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.


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