forwarded 364738 http://bugzilla.abisource.com/show_bug.cgi?id=10207 thanks
On Tuesday 25 April 2006 06:15, Nick Lewycky wrote: > Package: link-grammar > Version: 4.2.2-1 > Severity: important > > I don't know why, but link-grammar segfaults: > > $ link-grammar > Segmentation fault > $ > > Running it through GDB isn't very revealing: > > Program received signal SIGSEGV, Segmentation fault. > 0x55684ca3 in strlen () from /lib/tls/i686/cmov/libc.so.6 > (gdb) bt > #0 0x55684ca3 in strlen () from /lib/tls/i686/cmov/libc.so.6 > #1 0x556849c5 in strdup () from /lib/tls/i686/cmov/libc.so.6 > #2 0x555c4589 in linkage_print_postscript () > from /usr/lib/liblink-grammar.so.4 > #3 0x555a7e8f in dictionary_create_default_lang () > from /usr/lib/liblink-grammar.so.4 > #4 0x0804a4f0 in ?? () > #5 0x0804d008 in ?? () > #6 0x0000000a in ?? () > #7 0x5556b6a4 in ?? () > #8 0x5556dbb0 in ?? () > #9 0x00000001 in ?? () > #10 0x00000000 in ?? () > (gdb) > > I'm not sure what else to include in the bug report. Any ideas? I suspect the problem is that you don't have the environment variable $LANG set. linkage_print_postscript() (actually get_default_locale()), calls getenv("LANG") which returns null, and then crashes trying to strdup the null pointer. I get this backtrace when using packages built with debugging symbols, and unsetting $LANG in my environment: (gdb) run Starting program: /usr/bin/link-grammar Program received signal SIGSEGV, Segmentation fault. 0xb7e28ca3 in strlen () from /lib/tls/i686/cmov/libc.so.6 (gdb) bt #0 0xb7e28ca3 in strlen () from /lib/tls/i686/cmov/libc.so.6 #1 0xb7e289c5 in strdup () from /lib/tls/i686/cmov/libc.so.6 #2 0xb7f17589 in get_default_locale () at utilities.c:1737 #3 0xb7efae8f in dictionary_create_default_lang () at api.c:453 #4 0x0804a4f0 in main (argc=1, argv=0xbfa96bb4) at parse.c:361 Please send me the output of the env command so that I can confirm this, and then I will look at the proper way to fix it. --Ken Bloom -- I usually have a GPG digital signature included as an attachment. See http://www.gnupg.org/ for info about these digital signatures.
pgptON2cOyJCw.pgp
Description: PGP signature