[prev in list] [next in list] [prev in thread] [next in thread] 

List:       proftpd-committers
Subject:    [ProFTPD-committers] [Bug 2309] ProFTPD terminating (signal 11)
From:       bugzilla-daemon () horde ! net
Date:       2004-03-25 11:01:30
Message-ID: 20040325110130.BB6301402C () boost ! horde ! net
[Download RAW message or body]

http://bugs.proftpd.org/show_bug.cgi?id=2309





------- Additional Comments From ivo@palli.nl  2004-03-25 06:01 -------
It's really weird. I changed the line. 

This works:

printf("%s %3d %-8s %-8s %8" PR_LU " %s %2d %s bin\n", m, (int) st.st_nlink,
MAP_UID(st.st_uid), MAP_GID(st.st_gid), st.st_size, months[t->tm_mon],
t->tm_mday, timeline);


This SEGV's:

printf("%s %3d %-8s %-8s %8" PR_LU " %s %2d %s %s\n", m, (int) st.st_nlink,
MAP_UID(st.st_uid), MAP_GID(st.st_gid), st.st_size, months[t->tm_mon],
t->tm_mday, timeline, "bin");


As you can see if you put the word 'bin' in the formatting string itself, no
problem. However when you pass this as an argument it crashes. All the seperate
variables print out without a problem:

m                     = [drwxr-xr-x]
(int) st.st_nlink     = [2]
MAP_UID(st.st_uid)    = [269445248]
MAP_GID(st.st_gid)    = [     ftp]
st.st_size            = [0]
months[t->tm_mon]     = [Jan]
t->tm_mday            = [29]
timeline              = [16:02]
name                  = [bin]
nameline              = [0x7fffa3e0]
sizeof(nameline)      = [8320]

This makes me suspect uClibc 0.9.23 against which I compiled proftpd, or some
kind of stack problem... Can anybody make a suggestion on what to do?



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
ProFTPD Committers Mailing List
proftpd-committers@proftpd.org
https://lists.sourceforge.net/lists/listinfo/proftp-committers
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic