Bug 117458

Summary: Bad system call (core dumped) when compiling www/w3m
Product: Ports & Packages Reporter: Xiao-Yong Jin <xj2106>
Component: Individual Port(s)Assignee: MANTANI Nobutaka <nobutaka>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Xiao-Yong Jin 2007-10-24 18:30:02 UTC
When doing make install clean under www/w3m, it fails with the following message

cc  -I. -I. -O2 -fno-strict-aliasing -pipe -fomit-frame-pointer -march=pent
ium4m   -I/usr/include/openssl -I/usr/local/include -I/usr/local/include -D
HAVE_CONFIG_H -DAUXBIN_DIR=\"/usr/local/libexec/w3m\"  -DCGIBIN_DIR=\"/usr/
local/libexec/w3m/cgi-bin\" -DHELP_DIR=\"/usr/local/share/w3m\"  -DETC_DIR=
\"/usr/local/etc\" -DCONF_DIR=\"/usr/local/etc/w3m\"  -DRC_DIR=\"~/.w3m\"  
-DLOCALEDIR=\"/usr/local/share/locale\" -o mktable mktable.o dummy.o -L/usr
/local/lib -lm -L. -lindep  -L/usr/local/lib -lgc
sort funcname.tab | nawk -f ./functable.awk > functable.tab
./mktable 100 functable.tab > functable.c
Bad system call (core dumped)
*** Error code 140

Stop in /usr/ports/www/w3m/work/w3m-0.5.2.
*** Error code 1

Stop in /usr/ports/www/w3m.


The core file gives out backtrace using gdb as follows

#0  0x28102adb in ksem_init () from /lib/libc.so.7
#1  0x280f8489 in sem_init () from /lib/libc.so.7
#2  0x280ab019 in GC_stop_init () from /usr/local/lib/libgc.so.1
#3  0x280aa6df in GC_thr_init () from /usr/local/lib/libgc.so.1
#4  0x280a6ed6 in GC_init_inner () from /usr/local/lib/libgc.so.1
#5  0x280a2c36 in GC_generic_malloc_inner ()
   from /usr/local/lib/libgc.so.1
#6  0x280a2d96 in GC_generic_malloc () from /usr/local/lib/libgc.so.1
#7  0x280a30f2 in GC_malloc () from /usr/local/lib/libgc.so.1
#8  0x08049aa8 in Strnew_charp ()
#9  0x00000064 in ?? ()
#10 0x00000000 in ?? ()
#11 0x281bb200 in __tsd_lock () from /lib/libc.so.7
#12 0x08048a52 in main ()


FYI, here is the /etc/make.conf

# cat /etc/make.conf
CPUTYPE?=pentium4m
CFLAGS= -O2 -fno-strict-aliasing -pipe -fomit-frame-pointer
COPTFLAGS= -O -pipe -fomit-frame-pointer
# added by use.perl 2007-10-23 03:00:23
PERL_VER=5.8.8
PERL_VERSION=5.8.8

How-To-Repeat: Probably using the same make.conf as stated above, and do make install clean under ports/www/w3m.
Comment 1 Xiao-Yong Jin 2007-10-24 18:38:38 UTC
Now, it's weired.  I should have save the core and the build
environment.  After I did a `make clean' and followed with
`make install clean' again.  It compiled and installed without
any problem.

Xiao-Yong
-- 
    c/*    __o/*
    <\     * (__
    */\      <
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2007-10-25 00:00:38 UTC
Responsible Changed
From-To: freebsd-ports-bugs->nobutaka

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 3 MANTANI Nobutaka freebsd_committer freebsd_triage 2007-12-23 03:17:23 UTC
State Changed
From-To: open->closed

I couldn't reproduce the problem. Thanks anyway.