Bug 129677

Summary: /usr/ports/sysutils/aaccli Bad system call: 12 (core dumped) on FreeBSD-7.1-PRE amd64
Product: Ports & Packages Reporter: Oleg <olevole>
Component: Individual Port(s)Assignee: freebsd-ports-bugs (Nobody) <ports-bugs>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Oleg 2008-12-16 12:50:05 UTC
Execution aaccli got core dumped file:
% aaccli
Bad system call: 12 (core dumped)

truss aaccli is not finishing (Ctrl+C is pressed):
----
getpid(0x81d1e88,0x0,0xffffddf8,0x0,0x0,0x0)     = 50379 (0xc4cb)
fcntl(0,F_GETFL,)                                = 2 (0x2)
fcntl(1,F_GETFL,)                                = 2 (0x2)
fcntl(2,F_GETFL,)                                = 2 (0x2)
pipe(0x81d1fb8,0x3,0x0,0x815ea9e,0x81d1e88,0x0)  = 4 (0x4)
fcntl(4,F_GETFL,)                                = 2 (0x2)
fcntl(4,F_SETFL,O_NONBLOCK|0x2)                  = 0 (0x0)
fcntl(5,F_GETFL,)                                = 2 (0x2)
fcntl(5,F_SETFL,O_NONBLOCK|0x2)                  = 0 (0x0)
readlink("/etc/malloc.conf",0xffffdc34,63)       ERR#2 'No such file or directory'
compat6.freebsd32_mmap(0x0,0x1000,0x3,0x1002,0xffffffff,0x0) = 672964608 (0x281ca000)
break(0x81e5000)                                 = 0 (0x0)
break(0x81e6000)                                 = 0 (0x0)
break(0x81e7000)                                 = 0 (0x0)
break(0x81e8000)                                 = 0 (0x0)
freebsd32_sysctl(0xffffdd10,0x2,0x81d1fa0,0xffffdd0c,0x0,0x0) = 0 (0x0)
compat6.freebsd32_mmap(0xffefe000,0x1000,0x0,0x1000,0xffffffff,0x0) = 4293910528 (0xffefe000)
freebsd32_gettimeofday(0x81d1fcc,0x0,0x0,0x815ea9e,0x81d1e88,0x0) = 0 (0x0)
break(0x81f2000)                                 = 0 (0x0)
freebsd32_sigaltstack(0x81e2e00,0x0,0x0,0x815ea9e,0x81d1e88,0x0) = 0 (0x0)
compat4.freebsd32_sigaction(0x1,0x0,0x81df680,0x815ea9e,0x81d1e88,0x0)
---

backtrace info from gdb:
--
gdb -c aaccli.core /usr/local/bin/aaccli
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "amd64-marcel-freebsd"...(no debugging symbols found)...
Core was generated by `aaccli'.
Program terminated with signal 12, Bad system call.
#0  0x0815f454 in _thread_sys_sigaction ()
(gdb) bt
#0  0x0815f454 in _thread_sys_sigaction ()
#1  0x0815f0e0 in _thread_init ()
#2  0x0815c06b in pthread_mutex_lock ()
#3  0x0815498c in __register_frame_info ()
#4  0x080481b9 in frame_dummy ()
#5  0x080480b1 in _init ()
#6  0x08048127 in _start ()
#7  0x00000001 in ?? ()
(gdb)
--

How-To-Repeat: cd /usr/ports/sysutils/aaccli && make install; aaccli
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2009-06-21 16:35:21 UTC
State Changed
From-To: open->feedback

I can't reproduce this with 7.2-STABLE, can you confirm, that thisissue has been fixed?
Comment 2 Martin Wilke freebsd_committer freebsd_triage 2009-07-18 10:31:21 UTC
State Changed
From-To: feedback->closed

Feedback timeout. If you want to fix this port, please feel free to 
follow-up this PR so that we can re-open it.