[Developers] buffer overflow
John Sibert
sibert at hawaii.edu
Mon Aug 8 11:22:09 PDT 2011
Not to panic. It was my fault - a problem with file names.
On 08/08/2011 07:56 AM, John Sibert wrote:
> Yeah, I suspect some sort of problem with global objects, too. I'm
> reverting my admb to r119 and will decrease the size of the buffers.
> There is some flaky behavior with respect to the program name, too.
>
> On 08/08/2011 07:49 AM, dave fournier wrote:
>> On 11-08-08 10:34 AM, John Sibert wrote:
>>
>> Hard to say without being able to run it to reproduce the result.
>> In the startup code a lot of global objects are initialized. offhand
>> I would suspect
>> something to do with that.
>>
>>
>>> Does any one understand this? The program appears to abort during
>>> startup. The problem developed overnight without me making any
>>> changes to the code. If I compile without optimization, the program
>>> does not abort, but still behaves strangely.
>>>
>>> I'm using ADMB revision 123.
>>>
>>> $ tagest
>>> *** buffer overflow detected ***: tagest terminated
>>> ======= Backtrace: =========
>>> /lib/libc.so.6(__fortify_fail+0x37)[0x7f53c8c18217]
>>> /lib/libc.so.6(+0xfe0d0)[0x7f53c8c170d0]
>>> tagest[0x4540fb]
>>> tagest[0x40fbce]
>>> /lib/libc.so.6(__libc_start_main+0xfd)[0x7f53c8b37c4d]
>>> tagest[0x404d79]
>>> ======= Memory map: ========
>>> 00400000-0063a000 r-xp 00000000 08:01
>>> 3375391 /home/jsibert/movemod/25/tpl/tagest
>>> 0083a000-0083c000 r--p 0023a000 08:01
>>> 3375391 /home/jsibert/movemod/25/tpl/tagest
>>> 0083c000-0083e000 rw-p 0023c000 08:01
>>> 3375391 /home/jsibert/movemod/25/tpl/tagest
>>> 0083e000-00843000 rw-p 00000000 00:00 0
>>> 00991000-009d6000 rw-p 00000000 00:00
>>> 0 [heap]
>>> 7f53c87f9000-7f53c8b19000 rw-p 00000000 00:00 0
>>> 7f53c8b19000-7f53c8c93000 r-xp 00000000 08:01
>>> 1106418 /lib/libc-2.11.1.so
>>> 7f53c8c93000-7f53c8e92000 ---p 0017a000 08:01
>>> 1106418 /lib/libc-2.11.1.so
>>> 7f53c8e92000-7f53c8e96000 r--p 00179000 08:01
>>> 1106418 /lib/libc-2.11.1.so
>>> 7f53c8e96000-7f53c8e97000 rw-p 0017d000 08:01
>>> 1106418 /lib/libc-2.11.1.so
>>> 7f53c8e97000-7f53c8e9c000 rw-p 00000000 00:00 0
>>> 7f53c8e9c000-7f53c8eb2000 r-xp 00000000 08:01
>>> 7807118 /lib/libgcc_s.so.1
>>> 7f53c8eb2000-7f53c90b1000 ---p 00016000 08:01
>>> 7807118 /lib/libgcc_s.so.1
>>> 7f53c90b1000-7f53c90b2000 r--p 00015000 08:01
>>> 7807118 /lib/libgcc_s.so.1
>>> 7f53c90b2000-7f53c90b3000 rw-p 00016000 08:01
>>> 7807118 /lib/libgcc_s.so.1
>>> 7f53c90b3000-7f53c9135000 r-xp 00000000 08:01
>>> 1106422 /lib/libm-2.11.1.so
>>> 7f53c9135000-7f53c9334000 ---p 00082000 08:01
>>> 1106422 /lib/libm-2.11.1.so
>>> 7f53c9334000-7f53c9335000 r--p 00081000 08:01
>>> 1106422 /lib/libm-2.11.1.so
>>> 7f53c9335000-7f53c9336000 rw-p 00082000 08:01
>>> 1106422 /lib/libm-2.11.1.so
>>> 7f53c9336000-7f53c942c000 r-xp 00000000 08:01
>>> 2886064 /usr/lib/libstdc++.so.6.0.13
>>> 7f53c942c000-7f53c962c000 ---p 000f6000 08:01
>>> 2886064 /usr/lib/libstdc++.so.6.0.13
>>> 7f53c962c000-7f53c9633000 r--p 000f6000 08:01
>>> 2886064 /usr/lib/libstdc++.so.6.0.13
>>> 7f53c9633000-7f53c9635000 rw-p 000fd000 08:01
>>> 2886064 /usr/lib/libstdc++.so.6.0.13
>>> 7f53c9635000-7f53c964a000 rw-p 00000000 00:00 0
>>> 7f53c964a000-7f53c966a000 r-xp 00000000 08:01
>>> 1105950 /lib/ld-2.11.1.so
>>> 7f53c983f000-7f53c9843000 rw-p 00000000 00:00 0
>>> 7f53c9867000-7f53c9869000 rw-p 00000000 00:00 0
>>> 7f53c9869000-7f53c986a000 r--p 0001f000 08:01
>>> 1105950 /lib/ld-2.11.1.so
>>> 7f53c986a000-7f53c986b000 rw-p 00020000 08:01
>>> 1105950 /lib/ld-2.11.1.so
>>> 7f53c986b000-7f53c986c000 rw-p 00000000 00:00 0
>>> 7fff2a471000-7fff2a486000 rw-p 00000000 00:00
>>> 0 [stack]
>>> 7fff2a5ff000-7fff2a600000 r-xp 00000000 00:00
>>> 0 [vdso]
>>> ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00
>>> 0 [vsyscall]
>>> Aborted
>>>
>>
>> _______________________________________________
>> Developers mailing list
>> Developers at admb-project.org
>> http://lists.admb-project.org/mailman/listinfo/developers
>>
>
--
John Sibert
Emeritus Researcher, SOEST
University of Hawaii at Manoa
Visit the ADMB project http://admb-project.org/
More information about the Developers
mailing list