Bug 1089073 - [abrt] gawk: r_format_val(): gawk killed by SIGABRT
Summary: [abrt] gawk: r_format_val(): gawk killed by SIGABRT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: gawk
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ondrej Vasik
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:62f10714efd1aafa53e00b91782...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-04-17 20:26 UTC by Bob Doolittle
Modified: 2014-05-16 10:09 UTC (History)
3 users (show)

Fixed In Version: gawk-4.1.0-3.fc20
Clone Of:
Environment:
Last Closed: 2014-05-16 10:09:55 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (15.92 KB, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: cgroup (173 bytes, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: core_backtrace (5.50 KB, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: dso_list (473 bytes, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: environ (4.48 KB, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: limits (1.29 KB, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: maps (2.74 KB, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: open_fds (307 bytes, text/plain)
2014-04-17 20:26 UTC, Bob Doolittle
no flags Details
File: proc_pid_status (932 bytes, text/plain)
2014-04-17 20:27 UTC, Bob Doolittle
no flags Details
File: var_log_messages (194 bytes, text/plain)
2014-04-17 20:27 UTC, Bob Doolittle
no flags Details

Description Bob Doolittle 2014-04-17 20:26:42 UTC
Description of problem:
I used the --debug flag. At the debug prompt I issued the following command:

eval "print \"foo\""

It printed 'foo' as expected, but then awk crashed with a bad memory free().


Version-Release number of selected component:
gawk-4.1.0-2.fc20

Additional info:
reporter:       libreport-2.2.1
backtrace_rating: 4
cmdline:        awk -f /tmp/mycmake.8205 --debug -v CMAKE_PREFX=./pcoip_server/test/unittest ./pcoip_server/test/unittest/CMakeLists.txt
crash_function: r_format_val
executable:     /usr/bin/gawk
kernel:         3.13.9-200.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            26770

Truncated backtrace:
Thread no. 1 (10 frames)
 #5 r_format_val at node.c:254
 #6 force_string at awk.h:1278
 #7 str_exists at str_array.c:195
 #8 in_array at awk.h:1771
 #9 remove_symbol at symbol.c:211
 #10 destroy_symbol at symbol.c:231
 #11 do_eval at debug.c:5554
 #12 zzparse at command.y:170
 #13 next_command at debug.c:3502
 #14 debug_pre_execute at debug.c:3639

Comment 1 Bob Doolittle 2014-04-17 20:26:46 UTC
Created attachment 887281 [details]
File: backtrace

Comment 2 Bob Doolittle 2014-04-17 20:26:48 UTC
Created attachment 887282 [details]
File: cgroup

Comment 3 Bob Doolittle 2014-04-17 20:26:50 UTC
Created attachment 887283 [details]
File: core_backtrace

Comment 4 Bob Doolittle 2014-04-17 20:26:51 UTC
Created attachment 887284 [details]
File: dso_list

Comment 5 Bob Doolittle 2014-04-17 20:26:53 UTC
Created attachment 887285 [details]
File: environ

Comment 6 Bob Doolittle 2014-04-17 20:26:55 UTC
Created attachment 887286 [details]
File: limits

Comment 7 Bob Doolittle 2014-04-17 20:26:57 UTC
Created attachment 887287 [details]
File: maps

Comment 8 Bob Doolittle 2014-04-17 20:26:58 UTC
Created attachment 887288 [details]
File: open_fds

Comment 9 Bob Doolittle 2014-04-17 20:27:00 UTC
Created attachment 887289 [details]
File: proc_pid_status

Comment 10 Bob Doolittle 2014-04-17 20:27:02 UTC
Created attachment 887290 [details]
File: var_log_messages

Comment 11 Jan Chaloupka 2014-05-05 13:19:12 UTC
Hi, Bob,

is it possible to supply /tmp/mycmake.8205 file?

Thanks

Jan

Comment 12 Bob Doolittle 2014-05-05 13:47:08 UTC
(In reply to Jan Chaloupka from comment #11)
> Hi, Bob,
> 
> is it possible to supply /tmp/mycmake.8205 file?
> 
> Thanks
> 
> Jan

This is trivial to reproduce using the 1 line print statement in the description. I no longer have that file however.

Comment 13 Jan Chaloupka 2014-05-05 13:51:35 UTC
Thanks, will take a look at it.

Comment 15 Jan Chaloupka 2014-05-13 08:32:53 UTC
resolved in upstream: http://lists.gnu.org/archive/html/bug-gawk/2014-05/msg00005.html

commit 32de6f03014d1a67ed24775770d7c7b6b073ef8c
Author: jchaloup <jchaloup>
Date:   Tue May 13 10:16:45 2014 +0200

    eval fixed, caused invalid free


package: gawk-4.1.0-3.fc20

Comment 16 Fedora Update System 2014-05-13 08:34:39 UTC
gawk-4.1.0-3.fc20 has been submitted as an update for Fedora 20.
https://admin.fedoraproject.org/updates/gawk-4.1.0-3.fc20

Comment 17 Fedora Update System 2014-05-13 19:21:37 UTC
Package gawk-4.1.0-3.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing gawk-4.1.0-3.fc20'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2014-6333/gawk-4.1.0-3.fc20
then log in and leave karma (feedback).

Comment 18 Bob Doolittle 2014-05-14 14:36:48 UTC
Working for me - thanks.

Comment 19 Fedora Update System 2014-05-16 10:09:55 UTC
gawk-4.1.0-3.fc20 has been pushed to the Fedora 20 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.