Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Aug 2009 06:33:59 GMT
From:      Vedant Kumar <vminch@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   threads/137323: core dumped on "bad system call: 12" from ksem_init() in libc.so.7
Message-ID:  <200908010633.n716XxSB073397@www.freebsd.org>
Resent-Message-ID: <200908010640.n716e5Fg026103@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         137323
>Category:       threads
>Synopsis:       core dumped on "bad system call: 12" from ksem_init() in libc.so.7
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-threads
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 01 06:40:05 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Vedant Kumar
>Release:        7.2-RELEASE
>Organization:
none
>Environment:
FreeBSD kserv 7.2-RELEASE #0 ...
root@walker.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
>Description:
When running programs linked with "-lrt", they crash after calling ksem_init().

Reproducing:
1. compile code with gcc and use the "-lrt" flag
2. run the executable
3. program crashes:
Bad system call: 12 (core dumped)

More information:
$ gdb test
..
(gdb) r
..
Program received signam SIGSYS, Bad system call.
0x280c716b in ksem_init() from /lib/libc.so.7
(gdb) bt
#0 <addr> in ksem_init () from /lib/libc.so.7
#1 <addr> in sem_init () from /lib/libc.so.7
#2 <addr> in mk_hmap(hash_fn=<addr>, eq_fn=<addr>, del_fn=<addr>) at hashmap.c:58
#3 <addr> in main () at hello_world_demo.c:10
>How-To-Repeat:
Reproducing:
1. compile code with gcc and use the "-lrt" flag
2. run the executable
3. program crashes:
Bad system call: 12 (core dumped)
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200908010633.n716XxSB073397>