Bug 1049302 - [abrt] grep: Pexecute(): grep killed by SIGABRT
Summary: [abrt] grep: Pexecute(): grep killed by SIGABRT
Keywords:
Status: CLOSED DUPLICATE of bug 1044654
Alias: None
Product: Fedora
Classification: Fedora
Component: grep
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:313f290524a5cf06e6e494f8f93...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-01-07 11:39 UTC by Francesco Frassinelli (frafra)
Modified: 2014-01-07 12:36 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-01-07 12:36:29 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (9.00 KB, text/plain)
2014-01-07 11:39 UTC, Francesco Frassinelli (frafra)
no flags Details
File: cgroup (172 bytes, text/plain)
2014-01-07 11:39 UTC, Francesco Frassinelli (frafra)
no flags Details
File: core_backtrace (2.89 KB, text/plain)
2014-01-07 11:39 UTC, Francesco Frassinelli (frafra)
no flags Details
File: dso_list (662 bytes, text/plain)
2014-01-07 11:39 UTC, Francesco Frassinelli (frafra)
no flags Details
File: environ (3.62 KB, text/plain)
2014-01-07 11:39 UTC, Francesco Frassinelli (frafra)
no flags Details
File: limits (1.29 KB, text/plain)
2014-01-07 11:39 UTC, Francesco Frassinelli (frafra)
no flags Details
File: maps (2.81 KB, text/plain)
2014-01-07 11:39 UTC, Francesco Frassinelli (frafra)
no flags Details
File: open_fds (103 bytes, text/plain)
2014-01-07 11:40 UTC, Francesco Frassinelli (frafra)
no flags Details
File: proc_pid_status (930 bytes, text/plain)
2014-01-07 11:40 UTC, Francesco Frassinelli (frafra)
no flags Details
File: var_log_messages (4.44 KB, text/plain)
2014-01-07 11:40 UTC, Francesco Frassinelli (frafra)
no flags Details

Description Francesco Frassinelli (frafra) 2014-01-07 11:39:40 UTC
Description of problem:
grep doesn't seems to like special charachers when using Perl regex if the enviroment uses UTF-8.

$ echo $LANG
it_IT.UTF-8
$ if [ -z $LC_ALL ]; then echo Variable \$LC_ALL not set; fi
Variable $LC_ALL not set
$ echo à | grep -P "[0-9]*"
Annullato (core dumped)
$ export LC_ALL=$LANG; echo à | grep -P "[0-9]*"; unset LC_ALL
Annullato (core dumped)
$ export LC_ALL=it_IT.UTF-8; echo à | grep -P "[0-9]*"; unset LC_ALL
Annullato (core dumped)
$ export LC_ALL=it_IT; echo à | grep -P "[0-9]*"; unset LC_ALL
à
$ export LC_ALL=en_US.UTF-8; echo à | grep -P "[0-9]*"; unset LC_ALL
Aborted (core dumped)
$ export LC_ALL=en_US; echo à | grep -P "[0-9]*"; unset LC_ALL
à
$ export LC_ALL=C; echo à | grep -P "[0-9]*"; unset LC_ALL
à

Version-Release number of selected component:
grep-2.15-1.fc20

Additional info:
reporter:       libreport-2.1.10
backtrace_rating: 4
cmdline:        grep --color=auto -P [0-9]*
crash_function: Pexecute
executable:     /usr/bin/grep
kernel:         3.12.5-302.fc20.x86_64
runlevel:       N 5
type:           CCpp
uid:            1000

Truncated backtrace:
Thread no. 1 (7 frames)
 #2 Pexecute at pcresearch.c:189
 #3 print_line_middle at main.c:835
 #4 prline at main.c:937
 #5 prtext at main.c:1043
 #6 grepbuf at main.c:1113
 #7 grep at main.c:1214
 #8 grepdesc at main.c:1467

Comment 1 Francesco Frassinelli (frafra) 2014-01-07 11:39:45 UTC
Created attachment 846605 [details]
File: backtrace

Comment 2 Francesco Frassinelli (frafra) 2014-01-07 11:39:47 UTC
Created attachment 846606 [details]
File: cgroup

Comment 3 Francesco Frassinelli (frafra) 2014-01-07 11:39:49 UTC
Created attachment 846607 [details]
File: core_backtrace

Comment 4 Francesco Frassinelli (frafra) 2014-01-07 11:39:51 UTC
Created attachment 846608 [details]
File: dso_list

Comment 5 Francesco Frassinelli (frafra) 2014-01-07 11:39:53 UTC
Created attachment 846609 [details]
File: environ

Comment 6 Francesco Frassinelli (frafra) 2014-01-07 11:39:56 UTC
Created attachment 846610 [details]
File: limits

Comment 7 Francesco Frassinelli (frafra) 2014-01-07 11:39:58 UTC
Created attachment 846611 [details]
File: maps

Comment 8 Francesco Frassinelli (frafra) 2014-01-07 11:40:00 UTC
Created attachment 846612 [details]
File: open_fds

Comment 9 Francesco Frassinelli (frafra) 2014-01-07 11:40:02 UTC
Created attachment 846613 [details]
File: proc_pid_status

Comment 10 Francesco Frassinelli (frafra) 2014-01-07 11:40:04 UTC
Created attachment 846614 [details]
File: var_log_messages

Comment 11 Francesco Frassinelli (frafra) 2014-01-07 11:48:49 UTC
More information about this strange behavior: it seems to happen only when "*" or "?" operators are involved.

$ echo à | grep -P "[0-9]*"
Annullato (core dumped)
$ echo à | grep -P "[0-9]?"
Annullato (core dumped)
$ echo à | grep -P "[0-9]"
$ echo à | grep -P "[0-9]{1}"
$ echo à | grep -P "[0-9]{2}"
$ echo à | grep -P "[0-9]{1,}"

Comment 12 Jaroslav Škarvada 2014-01-07 12:36:29 UTC
I guess this is dupe of bug 1044654. I am unable to reproduce with grep-2.16. If the problem persists, feel free to reopen.

*** This bug has been marked as a duplicate of bug 1044654 ***


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