threads/137323: core dumped on "bad system call: 12" from ksem_init() in libc.so.7

Vedant Kumar vminch at gmail.com
Sat Aug 1 06:40:07 UTC 2009


>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 at 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:


More information about the freebsd-threads mailing list