Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1290742 - tn5250 Segmentation fault (core dumped)
Summary: tn5250 Segmentation fault (core dumped)
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: tn5250
Version: 23
Hardware: x86_64
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Dan Horák
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: harden-failure
TreeView+ depends on / blocked
 
Reported: 2015-12-11 10:07 UTC by andrea
Modified: 2016-07-27 12:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-27 12:26:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description andrea 2015-12-11 10:07:59 UTC
Description of problem:

on my fedora 23 ( 4.2.6-301.fc23.x86_64) tn5250 cause a segmentation fault

Version-Release number of selected component (if applicable): tn5250-0.17.4-13.fc23.x86_64


How reproducible:

always, simply running: tn5250 <ip address>


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

gdb --args tn5250 10.123.16.5
GNU gdb (GDB) Fedora 7.10.1-30.fc23
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from tn5250...Reading symbols from /usr/lib/debug/usr/bin/tn5250.debug...done.
done.
(gdb) run
Starting program: /usr/bin/tn5250 10.123.16.5
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
tn5250_terminal_config (This=0x55760400, conf=0x55555575c030) at terminal.c:109
109	  return ((This)->config == NULL ? 0 : (*((This)->config)) ((This), (conf)));
(gdb) bt
#0  tn5250_terminal_config (This=0x55760400, conf=0x55555575c030) at terminal.c:109
#1  0x0000555555556424 in main (argc=<optimized out>, argv=0x7fffffffde08)
    at tn5250.c:121

Comment 1 Philip Schneider 2015-12-14 18:04:40 UTC
Also getting segmentation fault whenever I run tn5250 [host].

Distribution Version:
Fedora 23 4.2.3-300.fc23.x86_64

Software Version:
tn5250.x86_64.0.17.4-13.fc23 

Starting program: /usr/bin/tn5250 192.9.200.24
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff77789e0 in tn5250_terminal_config () from /lib64/lib5250.so.0

Comment 2 Roman Stahl 2016-01-19 16:04:21 UTC
I got the same segmentation fault with xt5250 from tn5250-0.17.4-13.fc23.x86_64 package.

As a hotfix solution i replaced the F23 repo package by tn5250-0.17.4-10.el7.x86_64 from CentOS7 repo without any dependancy problems, which works as expected.

Comment 3 Dan Horák 2016-01-19 16:16:17 UTC
We don't have access to a host where tn5250 could actually connect to debug the issue, but likely it's a toolchain change that makes tn5250 crash, because the code itself hasn't changed for ages. But just got an idea, wait for a scratch build ...

Comment 4 Dan Horák 2016-01-19 16:33:46 UTC
could you try http://koji.fedoraproject.org/koji/taskinfo?taskID=12608284 ?

Comment 5 Roman Stahl 2016-01-20 13:09:19 UTC
Hi Dan,
thank you for your support.

I'm sorry but your latest build tn5250-0.17.4-13.fc23.1.x86_64 throws the same segmentation fault like the repo version.

Comment 6 Dan Horák 2016-01-20 17:31:17 UTC
Then please try this one - http://koji.fedoraproject.org/koji/taskinfo?taskID=12621707

The previous was with -fno-strict-aliasing, this is with hardening disabled.

Comment 7 Philip Schneider 2016-01-20 21:08:18 UTC
'tn5250-0.17.4-13.fc23.1.x86_64' did not work but the latest build 'tn5250-0.17.4-13.fc23.2.x86_64.rpm' works for me.

Comment 8 Dan Horák 2016-01-20 21:51:54 UTC
Thanks for the info, I'll build an update with hardening disabled until there is a chance to properly debug the real cause.

Comment 9 Fedora Update System 2016-01-20 22:29:54 UTC
tn5250-0.17.4-14.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1d2f64c4ac

Comment 10 Fedora Update System 2016-01-22 04:57:00 UTC
tn5250-0.17.4-14.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-1d2f64c4ac

Comment 11 Fedora Update System 2016-02-21 16:31:44 UTC
tn5250-0.17.4-14.fc23 has been pushed to the Fedora 23 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.