[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #55475] Segmentation fault in relocatep - groff 1.22.3

From: Danny Milosavljevic
Subject: [bug #55475] Segmentation fault in relocatep - groff 1.22.3
Date: Mon, 14 Jan 2019 16:49:52 -0500 (EST)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0


                 Summary: Segmentation fault in relocatep - groff 1.22.3
                 Project: GNU troff
            Submitted by: dannym
            Submitted on: Mon 14 Jan 2019 09:49:51 PM UTC
                Category: Preprocessor preconv
                Severity: 3 - Normal
              Item Group: Crash/Not responding
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None



relocatep segfaults when libpipeline invokes preconv in a way that preconv
can't find itself in $PATH (and argv[0] not being an absolute path either).


libs/libgroff/relocate.cpp relocatep uses curr_prefix as a source for memcpy,
even though set_current_prefix could end up setting it to 0 (for example when
searchpath failed to find a file whose basename is equal to argv[0] in

That causes preconv to segfault in the case above.


Add a "configure" option to disable -DENABLE_RELOCATABLE .

It's not customary to have relocatable things like that in UNIX--and with the
advent of namespaces, I suggest not to do it in the case of UNIX at all (what


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]