pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/54698: www/kannel broken



>Number:         54698
>Category:       pkg
>Synopsis:       www/kannel crash with Segmentation fault
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Nov 15 21:45:01 +0000 2019
>Originator:     Dima Veselov
>Release:        NetBSD 8.1_STABLE
>Organization:
	ZAO LMA
>Environment:
	
	
System: NetBSD freon 8.1_STABLE NetBSD 8.1_STABLE (Blaze) #6: Mon Jun 10 10:45:28 MSK 2019 kab00m@almaz:/export/build/obj/amd64/sys/arch/amd64/compile/Blaze amd64
Architecture: x86_64
Machine: amd64
>Description:
	Current version 1.4.0 www/kannel is outdated and have va_list problem causing Segmentation fault in strlen libc function.
>How-To-Repeat:
	Install kannel via pkgsrc or pkgin. Run smsbox -v 1 /usr/pkg/etc/kannel.conf with any valid config file.

[root@freon kannel.new]$ smsbox -v 1 /usr/pkg/etc/kannel.conf 
2019-11-15 22:19:20 [25991] [0] ERROR: Error while gw_gethostbyname occurs.
2019-11-15 22:19:20 [25991] [0] ERROR: System error 32639: Unknown error: 32639
2019-11-15 22:19:20 [25991] [0] ERROR: Can't find out official hostname for this host, using `freon' instead.
2019-11-15 22:19:20 [25991] [0] INFO: Debug_lvl = 1, log_file = <none>, log_lvl = 0
Segmentation fault (core dumped)
[root@freon kannel.new]$ gdb /usr/pkg/sbin/smsbox smsbox.core 
GNU gdb (GDB) 7.12
Copyright (C) 2016 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--netbsd".
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 /usr/pkg/sbin/smsbox...(no debugging symbols found)...done.
[New process 1]
Core was generated by `smsbox'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x000074d8a44f10a1 in strlen () from /usr/lib/libc.so.12
(gdb) bt
#0  0x000074d8a44f10a1 in strlen () from /usr/lib/libc.so.12
#1  0x000000000042601d in convert ()
#2  0x00000000004270a7 in octstr_format_valist_real ()
#3  0x000000000042725c in octstr_format ()
#4  0x000000000042c1ca in version_report_string ()
#5  0x000000000042c1f2 in report_versions ()
#6  0x0000000000444312 in main ()
(gdb) quit

>Fix:
	Updated pkgsrc package can be found here: http://kab00m.ru/links/kannel-1.4.5.tgz
	Important notes: 
		Makefile reviewed to 1.4.5
		patch aa to ac were rebuilt for 1.4.5
		patch-ad, ae and af are taken from here https://redmine.kannel.org/issues/699
		patch-ag is about NetBSD strlen issue
		kannel do not support parralel make

>Unformatted:
 	
 	


Home | Main Index | Thread Index | Old Index