bugmake - Bugs: bug #43434, make 4.1 without /dev/pts mounted...

 
 

bug #43434: make 4.1 without /dev/pts mounted segfaults

Submitted by:  None
Submitted on:  Fri 17 Oct 2014 07:59:24 PM UTC  
 
Severity:  3 - Normal Item Group:  Bug
Status:  Fixed Privacy:  Public
Assigned to:  Paul D. Smith <psmith> Open/Closed:  Closed
Component Version:  4.1 Operating System:  None
Fixed Release:  4.2 Triage Status:  None

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Mon 20 Oct 2014 05:56:16 AM UTC, comment #1: 

Fixed with git SHA 292da6f6867b75a5af7ddbb639a1feae022f438f.  Thanks for the report!

Paul D. Smith <psmith>
Project AdministratorIn charge of this item.
Fri 17 Oct 2014 07:59:24 PM UTC, original submission:  

from https://bugs.gentoo.org/show_bug.cgi?id=525546

Running make without arguments produces a segfault when /dev/pts isn't mounted. This makes building in a chroot jail a bit of a pain if you don't mount /dev/pts. Sometimes I don't even bother mounting /dev/ and this only happens in 4.1

at ~ # make
make: *** No targets specified and no makefile found.  Stop.
at ~ # umount /dev/pts/
at ~ # make
Segmentation fault
at ~ #

Here is the stack trace (CFLAGS are -g -gdb)

(gdb) bt
#0  0x00007ffff769ab7a in strlen () from /lib64/libc.so.6
#1  0x00007ffff769a8be in strdup () from /lib64/libc.so.6
#2  0x000000000041e82b in xstrdup (ptr=0x0) at misc.c:259
#3  0x000000000042c922 in define_variable_in_set (name=0x434a53 "MAKE_TERMOUT", length=12, value=0x0,
    origin=o_default, recursive=0, set=0x440580 <global_variable_set>, flocp=0x0) at variable.c:243
#4  0x0000000000419cad in main (argc=1, argv=0x7fffffffe048, envp=0x7fffffffe058) at main.c:1404

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  •  

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

    Only logged-in users can vote.

     

     

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-10-20 psmith StatusNone => Fixed
        Assigned toNone => psmith
        Open/ClosedOpen => Closed
        Fixed ReleaseNone => 4.2

    Back to the top


    Powered by Savane 3.5