Bug 532481 - included hunspell copy has disallowed constructs with gcc -D_FORTIFY_SOURCE=2. Best to just use the system library
Summary: included hunspell copy has disallowed constructs with gcc -D_FORTIFY_SOURCE=...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: texmaker
Version: rawhide
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Deji Akingunola
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 507829
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-11-02 15:11 UTC by Caolan McNamara
Modified: 2009-11-10 17:56 UTC (History)
3 users (show)

Fixed In Version:
Clone Of: 507829
Environment:
Last Closed: 2009-11-02 15:39:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
here's a replacement texmaker-tools.patch which does the right thing (3.19 KB, patch)
2009-11-02 15:21 UTC, Caolan McNamara
no flags Details | Diff

Description Caolan McNamara 2009-11-02 15:11:48 UTC
+++ This bug was initially created as a clone of Bug #507829 +++
--- Additional comment from dakingun on 2009-11-02 09:37:36 EDT ---

I'm re-opening this bug because similar problem is preventing texmaker from starting. Here is what I get when I tried to run texmaker in gdb;
... 
(gdb) bt
#0  0x00000031da433575 in raise (sig=<value optimized out>)
    at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
#1  0x00000031da434d55 in abort () at abort.c:92
#2  0x00000031da470393 in __libc_message (do_abort=<value optimized out>, 
    fmt=<value optimized out>) at ../sysdeps/unix/sysv/linux/libc_fatal.c:186
#3  0x00000031da4faae7 in __fortify_fail (msg=
    0x31da540fb5 "buffer overflow detected") at fortify_fail.c:32
#4  0x00000031da4f8a50 in __chk_fail () at chk_fail.c:29
#5  0x00000000004ff3fb in strcpy (__src=<value optimized out>, 
    __dest=<value optimized out>) at /usr/include/bits/string3.h:106
#6  HashMgr::add_word (__src=<value optimized out>, 
    __dest=<value optimized out>) at hunspell/hashmgr.cxx:138
#7  0x00000000004ffc5e in HashMgr::load_tables (this=0xb76dc0, 
    tpath=<value optimized out>, key=<value optimized out>)
    at hunspell/hashmgr.cxx:474
#8  0x00000000004ffe32 in HashMgr::HashMgr (this=0xb76dc0, tpath=
    0xbaabd8 "/usr/share/myspell/en_US.dic", apath=<value optimized out>, key=
    0x0) at hunspell/hashmgr.cxx:52
#9  0x000000000050535a in Hunspell::Hunspell (this=0xb8a2b0, affpath=
    0xb74e58 "/usr/share/myspell/en_US.aff", dpath=
    0xbaabd8 "/usr/share/myspell/en_US.dic", key=0x0)
    at hunspell/hunspell.cxx:35
#10 0x0000000000470e1e in Texmaker::Texmaker (this=0xb82810,

Comment 1 Caolan McNamara 2009-11-02 15:12:58 UTC
texmaker has a copy of hunspell inside it, its that copy which is crashing. texmaker should try and use the system library, not just the system dictionaries

Comment 2 Caolan McNamara 2009-11-02 15:21:26 UTC
Created attachment 367152 [details]
here's a replacement texmaker-tools.patch which does the right thing

Replacing texmaker-tools.patch with this one will get it link against the (working) system hunspell instead of including in its own copy of the (broken) sources

Comment 3 Caolan McNamara 2009-11-02 15:24:45 UTC
You'll need an additional BuildRequires: hunspell-devel and then the Requires: hunspell can be removed as it will get an appropiate autorequire after it links with libhunspell

Comment 4 Deji Akingunola 2009-11-02 15:39:41 UTC
(In reply to comment #3)
> You'll need an additional BuildRequires: hunspell-devel and then the Requires:
> hunspell can be removed as it will get an appropiate autorequire after it links
> with libhunspell  

Yea. I've done that already, thank you. And thanks for the patch too.

Comment 5 Fedora Update System 2009-11-02 20:27:43 UTC
texmaker-1.9.2-2.fc11 has been submitted as an update for Fedora 11.
http://admin.fedoraproject.org/updates/texmaker-1.9.2-2.fc11

Comment 6 Fedora Update System 2009-11-02 20:27:48 UTC
texmaker-1.9.2-2.fc10 has been submitted as an update for Fedora 10.
http://admin.fedoraproject.org/updates/texmaker-1.9.2-2.fc10

Comment 7 Fedora Update System 2009-11-10 17:45:09 UTC
texmaker-1.9.2-2.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 8 Fedora Update System 2009-11-10 17:56:44 UTC
texmaker-1.9.2-2.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.