[
https://issues.apache.org/jira/browse/TRAFODION-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16347891#comment-16347891
]
ASF GitHub Bot commented on TRAFODION-2931:
-------------------------------------------
GitHub user kakaxi3019 opened a pull request:
https://github.com/apache/trafodion/pull/1431
fix TRAFODION-2931 call udf function on chinese character will cause…
select char_lentgh('中国人') from (values(1));
will cause sqlci core dump.
use ISO88591 will cause unicodeToChar failure and input will be null.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/kakaxi3019/trafodion trafodion-2931
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/trafodion/pull/1431.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #1431
----
commit f24da815b280f0bbf5c8db191ebb47fcb1baf9d9
Author: kakaxi3019 <jupiter3019@...>
Date: 2018-02-01T02:00:24Z
fix TRAFODION-2931 call udf function on chinese character will casuse core
dump
----
> call char_length on Chinese character will cause core dump.
> -----------------------------------------------------------
>
> Key: TRAFODION-2931
> URL: https://issues.apache.org/jira/browse/TRAFODION-2931
> Project: Apache Trafodion
> Issue Type: Bug
> Components: sql-general
> Affects Versions: 2.4
> Reporter: Yang, Yongfeng
> Assignee: chenyunren
> Priority: Major
>
> {color:#000000}>>set terminal_charset utf8;{color}
> {color:#000000}>>select char_lentgh('{color}{color:#000000}中国人') from
> (values(1));{color}
> {color:#000000}#{color}
> {color:#000000}# A fatal error has been detected by the Java Runtime
> Environment:{color}
> {color:#000000}#{color}
> {color:#000000}# SIGSEGV (0xb) at pc=0x00000000004024ea, pid=13636,
> tid=140591300516352{color}
> {color:#000000}#{color}
> {color:#000000}# JRE version: OpenJDK Runtime Environment (7.0_161) (build
> 1.7.0_161-mockbuild_2017_12_06_14_28-b00){color}
> {color:#000000}# Java VM: OpenJDK 64-Bit Server VM (24.161-b00 mixed mode
> linux-amd64 compressed oops){color}
> {color:#000000}# Derivative: IcedTea 2.6.12{color}
> {color:#000000}# Distribution: CentOS release 6.9 (Final), package
> rhel-2.6.12.0.el6_9-x86_64 u161-b00{color}
> {color:#000000}# Problematic frame:{color}
> {color:#000000}# C [sqlci+0x24ea] folly::fbstring_core<char>::category()
> const+0xc{color}
> {color:#000000}#{color}
> {color:#000000}# Core dump written. Default location:
> /home/centos/incubator-trafodion/core or core.13636{color}
> {color:#000000}#{color}
> {color:#000000}# An error report file with more information is saved
> as:{color}
> {color:#000000}# /tmp/jvm-13636/hs_error.log{color}
> {color:#000000}#{color}
> {color:#000000}# If you would like to submit a bug report, please
> include{color}
> {color:#000000}# instructions on how to reproduce the bug and visit:{color}
> {color:#000000}# {color} [http://icedtea.classpath.org/bugzilla]
> {color:#000000}# The crash happened outside the Java Virtual Machine in
> native code.{color}
> {color:#000000}# See problematic frame for where to report the bug.{color}
> {color:#000000}#{color}
> {color:#000000}Aborted (core dumped){color}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)