bug-groff
[Top][All Lists]
Advanced

[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

URL:
  <https://savannah.gnu.org/bugs/?55475>

                 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

    _______________________________________________________

Details:

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).

Reason:

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
$PATH).

That causes preconv to segfault in the case above.

Fix:

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
for?).




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?55475>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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