TIP: Click on subject to list as thread! ANSI
echo: mbse
to: Robert Wolfe
from: Scott Street
date: 2010-06-18 16:29:12
subject: Re: Ubunto 10.04 Issues

Robert Wolfe wrote to All:

RW> Saving message to disk *** buffer overflow detected ***: -mbsebbs 
RW> terminated
RW>                                                                            
RW> ====== Backtrace: =========
RW> /lib/tls/i686/cmov/libc.so.6(__snprintf_chk+0x34)[0x77ead]
RW>     -mbsebbs[0x807838a]

Hi Rob,

This is the error I have been chasing for about two weeks now.  Please remove
the -O (or -O2 if you enabled optimize during configure stage).

You'll need to "make clean" then "configure".

I also remove "examples" from the build chain in Makefile.global,
as well as
change the CFLAGS slightly.  In your case, removing the -O (-O2) will resolve
the buffer overflow error.  

From my experimentation, it appears this is a side-effect of GCC inlineing
snprintf which with "-Wall" shows up as a compile time warning
that snprintf
will always overflow the buffer.

Good luck.

 Scott



--- MBSE BBS v0.95.6 (GNU/Linux-i386)
* Origin: -=[ Space Station Alpha ]=- (1:266/420)
SEEN-BY: 3/0 633/267 640/954 712/0 313 550 848
@PATH: 266/420 512 140/1 261/38 712/848 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.