Bug #36686 comp_err crashes installation
Submitted: 13 May 2008 11:25 Modified: 14 May 2008 16:15
Reporter: Susanne Ebrecht Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Server: Installing Severity:S3 (Non-critical)
Version:5.1-bk, 6.0-bk OS:FreeBSD (7.0)
Assigned to: CPU Architecture:Any

[13 May 2008 11:25] Susanne Ebrecht
Description:
gmake[2]: Leaving directory `/usr/home/miracee/mysql51bksrc/extra'
../extra/comp_err \
        --charset=../sql/share/charsets \
        --out-dir=../sql/share/ \
        --header_file=../include/mysqld_error.h \
        --name_file=../include/mysqld_ername.h \
        --state_file=../include/sql_state.h \
        --in_file=../sql/share/errmsg.txt
gmake[1]: *** [../include/mysqld_error.h] Segmentation fault: 11 (Speicherauszug erstellt)
gmake[1]: Leaving directory `/usr/home/miracee/mysql51bksrc/extra'
gmake: *** [all-recursive] Fehler 1

Try to get more informations by using 'make':

make  comp_err
`comp_err' is up to date.
../extra/comp_err  --charset=../sql/share/charsets  --out-dir=../sql/share/  --header_file=../include/mysqld_error.h  --name_file=../include/mysqld_ername.h  --state_file=../include/sql_state.h  --in_file=../sql/share/errmsg.txt
Segmentation fault (core dumped)
*** Error code 139

Stop in /usr/home/miracee/mysql51bksrc/extra.
*** Error code 1

$ gdb comp_err comp_err.core 
(gdb) bt
#0  0x0000000800a7fee7 in pthread_mutex_getprioceiling () from /lib/libthr.so.3
#1  0x000000000040cab3 in safe_mutex_global_init () at thr_mutex.c:50
#2  0x0000000000404a72 in my_init () at my_init.c:82
#3  0x0000000000403b99 in main (argc=7, argv=0x7fffffffe7d0) at comp_err.c:162

That's 5.1 output, but 6.0 is similar

How to repeat:
$ ./BUILD/compile-amd64-debug-max --prefix=/usr/home/myhome/my_51_dir -c
$ gmake

you also can use: $ make
[14 May 2008 16:15] Susanne Ebrecht
This is a duplicate of bug #36428