bugGNU dico - Bugs: bug #414, dictd crash with no config file

 
 
Show feedback again

You are not allowed to post comments on this tracker with your current authentification level.

bug #414: dictd crash with no config file

Submitted by:  Anthony J. Bentley <bentley>
Submitted on:  Sat Feb 16 08:30:06 2019  
 
Category: NonePriority: 5 - Normal
Severity: 5 - NormalStatus: Fixed
Privacy: PublicAssigned to: Sergey Poznyakoff <gray>
Open/Closed: Closed

(Jump to the original submission Jump to the original submission)

Tue Feb 19 16:28:20 2019, comment #10:

Thank you. I'm closing the case, then.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Tue Feb 19 15:43:48 2019, comment #9:

With 2.7.90 I can build successfully. Thanks!

Anthony J. Bentley <bentley>
Tue Feb 19 15:22:52 2019, comment #8:

Sure. You can download it from: https://alpha.gnu.org/gnu/dico/dico-2.7.90.tar.gz

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Tue Feb 19 01:17:37 2019, comment #7:

Can you provide a tarball? OpenBSD uses a wrapper around autoconf and automake (to allow multiple installed versions) and the bootstrap script doesn't seem to like it.

Anthony J. Bentley <bentley>
Mon Feb 18 19:11:04 2019, comment #6:

Hi Anthony,

Please disregard my last comment. In fact, the problem should be solved in dico tree. I have pushed the patch
bff3ef0e753bca9d01a25f9165ae2bf897ff0b52, intended to do so. Unfortunately, the source tree will need bootstrapping
after applying this patch. For this to succeed. you should have the necessary development tools, as outlined in
the README-hacking file. If these prerequisites are satisfied, then apply the patch, and run

./bootstrap

then reconfigure and rebuild the package. If not, let me know and I will provide a new tarball for you to test.

Best regards,
Sergey

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Mon Feb 18 15:34:26 2019, comment #5:

Ah, I see. Can you please send me your config.log file? I'm going to report this to gnulib guys.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Mon Feb 18 09:31:46 2019, comment #4:

This was partly self-inflicted. I don't know the proper fix though.

dico doesn't build on OpenBSD due to some sort of gnulib problem:

Making all in tests
depbase=`echo distck.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`; cc -DHAVE_CONFIG_H -I. -I../.. -I../../grecs/include -I../../grecs/include -I../../gnu -I../../gnu -I/usr/local/include -O2 -pipe -g -MT distck.o -MD -MP -MF $depbase.Tpo -c -o distck.o distck.c && mv -f $depbase.Tpo $depbase.Po
/usr/bin/libtool --tag=CC --mode=link cc -O2 -pipe -g -L/usr/local/lib -o distck distck.o ../../grecs/src/libgrecs.la /usr/local/lib/libintl.so.6.0 /usr/local/lib/libiconv.so.6.0 -lc -Wl,-rpath,/usr/local/lib -lz
libtool: link: cc -o distck -O2 -pipe -g -Wl,-rpath -Wl,/usr/local/lib distck.o /ptmp/pobj/dico-2.7/dico-2.7/grecs/src/.libs/libgrecs.a -L.libs -lz -lintl -liconv
ld: error: undefined symbol: rpl_strerror

>>> referenced by diag.c:40
>>> diag.o:(default_print_diag) in archive /ptmp/pobj/dico-2.7/dico-2.7/grecs/src/.libs/libgrecs.a


ld: error: undefined symbol: rpl_strerror

>>> referenced by symtab.c:0
>>> symtab.o:(grecs_symtab_strerror) in archive /ptmp/pobj/dico-2.7/dico-2.7/grecs/src/.libs/libgrecs.a


ld: error: undefined symbol: rpl_strerror

>>> referenced by sockaddr.c:177
>>> sockaddr.o:(parse_inet) in archive /ptmp/pobj/dico-2.7/dico-2.7/grecs/src/.libs/libgrecs.a

cc: error: linker command failed with exit code 1 (use -v to see invocation)
Error while executing cc -o distck -O2 -pipe -g -Wl,-rpath -Wl,/usr/local/lib distck.o /ptmp/pobj/dico-2.7/dico-2.7/grecs/src/.libs/libgrecs.a -L.libs -lz -lintl -liconv

      • Error 2 in grecs/tests (Makefile:1323 'distck')
      • Error 1 in grecs (Makefile:1248 'all-recursive')
      • Error 1 in grecs (Makefile:1177 'all')
      • Error 1 in . (Makefile:1321 'all-recursive')
      • Error 1 in /ptmp/pobj/dico-2.7/dico-2.7 (Makefile:1226 'all')

Blindly trying to come up with a fix, I made the mistake of doing this (and promptly forgetting I'd done it):

Index: gnu/string.in.h
--- gnu/string.in.h.orig
+++ gnu/string.in.h
@@ -939,8 +939,6 @@ _GL_EXTERN_C char * mbstok_r (char *string, const char
#if @GNULIB_STRERROR@
# if @REPLACE_STRERROR@
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
-# undef strerror
-# define strerror rpl_strerror
# endif
_GL_FUNCDECL_RPL (strerror, char *, (int));
_GL_CXXALIAS_RPL (strerror, char *, (int));

This let it build but resulted in a recursive strerror call at runtime.

Anthony J. Bentley <bentley>
Mon Feb 18 08:42:12 2019, comment #3:

Thanks. Unfortunately, this didn't shed any light on it. I'm still unable to reproduce it.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Sun Feb 17 23:53:33 2019, comment #2:

Attached configure output.

(file #308)

Anthony J. Bentley <bentley>
Sun Feb 17 19:57:28 2019, comment #1:

Cannot reproduce this.

Sergey Poznyakoff <gray>
Project AdministratorIn charge of this item.
Sat Feb 16 08:30:06 2019, original submission:

dico-2.7 on OpenBSD -current:

$ dicod -t
Cannot open `/etc/dicod.conf'Segmentation fault (core dumped)
$ doas touch /etc/dicod.conf
$ dicod -t
$

Not providing a backtrace, as gdb just prints this line nonstop:

#1 0x00000432168df4af in strerror (n=2) at strerror.c:48

Anthony J. Bentley <bentley>

 

Attached Files
file #308:  dico-configure.txt added by bentley (38kB - text/plain)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by gray (Posted a comment)
  • -unavailable- added by bentley (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    6 latest changes follow.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue Feb 19 16:28:19 2019grayStatusIn Progress=>Fixed
      Open/ClosedOpen=>Closed
    Mon Feb 18 19:11:04 2019grayStatusWorks For Me=>In Progress
    Sun Feb 17 23:53:33 2019bentleyAttached File-=>Added dico-configure.txt, #308
    Sun Feb 17 19:57:28 2019grayStatusNone=>Works For Me
      Assigned toNone=>gray
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup+gray