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
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
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.
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 ...
could you try http://koji.fedoraproject.org/koji/taskinfo?taskID=12608284 ?
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.
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.
'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.
Thanks for the info, I'll build an update with hardening disabled until there is a chance to properly debug the real cause.
tn5250-0.17.4-14.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2016-1d2f64c4ac
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
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.