Project

General

Profile

Actions

Bug #2422

closed

Getting double free or corruption (fasttop) error when running feature/dbo/tutorial1.cpp

Added by Anonymous about 11 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
Start date:
11/15/2013
Due date:
% Done:

0%

Estimated time:

Description

I am trying to run the tutorial1 program and am getting the error below.

* mode: compilation; default-directory: "/home/gcfweb-src/app/examples/feature/dbo/" *

Compilation started at Fri Nov 15 08:16:00

make -f tutorial1.mak platform=linux target=native run

/bin/sh -ec 'g -MM /home/gcfweb-src/app/examples/feature/dbo/tutorial1.cpp -DTARGET_NATIVE -DPLATFORM_LINUX -I/home/gcfweb-src/lib/inc/ -I./ | sed '\''s;\(tutorial1\)\.\(o\|obj\)[ :]*;/tmp/yates/home/gcfweb-src/app/examples/feature/dbo/nativelinux/\1.o /tmp/yates/home/gcfweb-src/app/examples/feature/dbo/nativelinux/tutorial1.dpp : ;g'\'' | tr -d '\''\015'\'' > /tmp/yates/home/gcfweb-src/app/examples/feature/dbo/nativelinux/tutorial1.dpp; [ -s /tmp/yates/home/gcfweb-src/app/examples/feature/dbo/nativelinux/tutorial1.dpp ] || rm -f /tmp/yates/home/gcfweb-src/app/examples/feature/dbo/nativelinux/tutorial1.dpp'

g -c -DTARGET_NATIVE -DPLATFORM_LINUX -I`cyg2dos /home/gcfweb-src/lib/inc/` -I`cyg2dos ./` -g -o /tmp/yates/home/gcfweb-src/app/examples/feature/dbo/nativelinux/tutorial1.o /home/gcfweb-src/app/examples/feature/dbo/tutorial1.cpp

g -L/home/gcfweb-src/lib/lib/ -L/usr/lib64/ -lm -lwthttp -lwt -lwtdbo -lwtdbosqlite3 -lboost_random -lboost_regex -lboost_signals -lboost_system -lboost_thread -lboost_filesystem -lboost_program_options -lboost_date_time `cyg2dos /tmp/yates/home/gcfweb-src/app/examples/feature/dbo/nativelinux/tutorial1.o` -o `cyg2dos /home/gcfweb-src/app/examples/feature/dbo/tutorial1`

/home/gcfweb-src/app/examples/feature/dbo/tutorial1 ---docroot . ---http-address 0.0.0.0 ---http-port 9090

begin transaction

create table "user" (

"id" integer primary key autoincrement,

"version" integer not null,

"name" text not null,

"password" text not null,

"role" integer not null,

"karma" integer not null

)

commit transaction

begin transaction

insert into "user" ("version", "name", "password", "role", "karma") values (?, ?, ?, ?, ?)

commit transaction

begin transaction

select "id", "version", "name", "password", "role", "karma" from "user" where (name = ?)

Joe has karma: 13

select u."id", u."version", u."name", u."password", u."role", u."karma" from user u where (name = ?)

commit transaction

begin transaction

select count(1) from "user"

We have 1 users:

select "id", "version", "name", "password", "role", "karma" from "user"

user Joe with karma of 13

commit transaction

begin transaction

select "id", "version", "name", "password", "role", "karma" from "user" where (name = ?)

update "user" set "version" = ?, "name" = ?, "password" = ?, "role" = ?, "karma" = ? where "id" = ? and "version" = ?

commit transaction

begin transaction

select "id", "version", "name", "password", "role", "karma" from "user" where (name = ?)

delete from "user" where "id" = ? and "version" = ?

commit transaction

* glibc detected* /home/gcfweb-src/app/examples/feature/dbo/tutorial1: double free or corruption (fasttop): 0x0000000001ba61c0 *

= Backtrace: =
/lib64/libc.so.6[0x3c4b27cb3e]
/lib64/libstdc++.so.6(_ZNSsD1Ev+0x20)[0x3c4debc4c0]
/lib64/libc.so.6(__cxa_finalize+0x9a)[0x3c4b23928a]
/lib64/libboost_program_options-mt.so.1.50.0[0x3c50229393]
= Memory map:

00400000-00429000 r-xp 00000000 fd:02 28443055 /home/gcfweb-src/app/examples/feature/dbo/tutorial1

00628000-00629000 r---p 00028000 fd:02 28443055 /home/gcfweb-src/app/examples/feature/dbo/tutorial1

00629000-0062a000 rw-p 00029000 fd:02 28443055 /home/gcfweb-src/app/examples/feature/dbo/tutorial1

01ba6000-01be8000 rw-p 00000000 00:00 0 [heap]

3217200000-32173b5000 r-xp 00000000 fd:01 3151119 /usr/lib64/libcrypto.so.1.0.1e

32173b5000-32175b4000 ----p 001b5000 fd:01 3151119 /usr/lib64/libcrypto.so.1.0.1e

32175b4000-32175cf000 r---p 001b4000 fd:01 3151119 /usr/lib64/libcrypto.so.1.0.1e

32175cf000-32175db000 rw-p 001cf000 fd:01 3151119 /usr/lib64/libcrypto.so.1.0.1e

32175db000-32175df000 rw-p 00000000 00:00 0

3217600000-3217661000 r-xp 00000000 fd:01 3151960 /usr/lib64/libssl.so.1.0.1e

3217661000-3217860000 ----p 00061000 fd:01 3151960 /usr/lib64/libssl.so.1.0.1e

3217860000-3217864000 r---p 00060000 fd:01 3151960 /usr/lib64/libssl.so.1.0.1e

3217864000-321786b000 rw-p 00064000 fd:01 3151960 /usr/lib64/libssl.so.1.0.1e

3494e00000-3494f63000 r-xp 00000000 fd:01 3155461 /usr/lib64/libicuuc.so.49.1.1

3494f63000-3495162000 ----p 00163000 fd:01 3155461 /usr/lib64/libicuuc.so.49.1.1

3495162000-3495173000 r---p 00162000 fd:01 3155461 /usr/lib64/libicuuc.so.49.1.1

3495173000-3495174000 rw-p 00173000 fd:01 3155461 /usr/lib64/libicuuc.so.49.1.1

3495174000-3495178000 rw-p 00000000 00:00 0

3495200000-3496320000 r-xp 00000000 fd:01 3150014 /usr/lib64/libicudata.so.49.1.1

3496320000-349651f000 ----p 01120000 fd:01 3150014 /usr/lib64/libicudata.so.49.1.1

349651f000-3496520000 r---p 0111f000 fd:01 3150014 /usr/lib64/libicudata.so.49.1.1

3496520000-3496521000 rw-p 01120000 fd:01 3150014 /usr/lib64/libicudata.so.49.1.1

3496a00000-3496b15000 r-xp 00000000 fd:01 3155516 /usr/lib64/libboost_regex-mt.so.1.50.0

3496b15000-3496d14000 ----p 00115000 fd:01 3155516 /usr/lib64/libboost_regex-mt.so.1.50.0

3496d14000-3496d19000 r---p 00114000 fd:01 3155516 /usr/lib64/libboost_regex-mt.so.1.50.0

3496d19000-3496d1c000 rw-p 00119000 fd:01 3155516 /usr/lib64/libboost_regex-mt.so.1.50.0

3497200000-34973ed000 r-xp 00000000 fd:01 3155513 /usr/lib64/libicui18n.so.49.1.1

34973ed000-34975ed000 ----p 001ed000 fd:01 3155513 /usr/lib64/libicui18n.so.49.1.1

34975ed000-34975f9000 r---p 001ed000 fd:01 3155513 /usr/lib64/libicui18n.so.49.1.1

34975f9000-34975fb000 rw-p 001f9000 fd:01 3155513 /usr/lib64/libicui18n.so.49.1.1

367ea00000-367ea41000 r-xp 00000000 fd:01 3153328 /usr/lib64/libgssapi_krb5.so.2.2

367ea41000-367ec40000 ----p 00041000 fd:01 3153328 /usr/lib64/libgssapi_krb5.so.2.2

367ec40000-367ec41000 r---p 00040000 fd:01 3153328 /usr/lib64/libgssapi_krb5.so.2.2

367ec41000-367ec43000 rw-p 00041000 fd:01 3153328 /usr/lib64/libgssapi_krb5.so.2.2

367ee00000-367eed9000 r-xp 00000000 fd:01 3152852 /usr/lib64/libkrb5.so.3.3

367eed9000-367f0d9000 ----p 000d9000 fd:01 3152852 /usr/lib64/libkrb5.so.3.3

367f0d9000-367f0e3000 r---p 000d9000 fd:01 3152852 /usr/lib64/libkrb5.so.3.3

367f0e3000-367f0e5000 rw-p 000e3000 fd:01 3152852 /usr/lib64/libkrb5.so.3.3

367f200000-367f203000 r-xp 00000000 fd:01 3149940 /usr/lib64/libkeyutils.so.1.4

367f203000-367f402000 ----p 00003000 fd:01 3149940 /usr/lib64/libkeyutils.so.1.4

367f402000-367f403000 r---p 00002000 fd:01 3149940 /usr/lib64/libkeyutils.so.1.4

367f403000-367f404000 rw-p 00003000 fd:01 3149940 /usr/lib64/libkeyutils.so.1.4

367f600000-367f628000 r-xp 00000000 fd:01 3152838 /usr/lib64/libk5crypto.so.3.1

367f628000-367f828000 ----p 00028000 fd:01 3152838 /usr/lib64/libk5crypto.so.3.1

367f828000-367f829000 r---p 00028000 fd:01 3152838 /usr/lib64/libk5crypto.so.3.1

367f829000-367f82a000 rw-p 00029000 fd:01 3152838 /usr/lib64/libk5crypto.so.3.1

367f82a000-367f82b000 rw-p 00000000 00:00 0

367fa00000-367fa0a000 r-xp 00000000 fd:01 3152497 /usr/lib64/libkrb5support.so.0.1

367fa0a000-367fc09000 ----p 0000a000 fd:01 3152497 /usr/lib64/libkrb5support.so.0.1

367fc09000-367fc0a000 r---p 00009000 fd:01 3152497 /usr/lib64/libkrb5support.so.0.1

367fc0a000-367fc0b000 rw-p 0000a000 fd:01 3152497 /usr/lib64/libkrb5support.so.0.1

3c4ae00000-3c4ae20000 r-xp 00000000 fd:01 3145804 /usr/lib64/ld-2.16.so

3c4b020000-3c4b021000 r---p 00020000 fd:01 3145804 /usr/lib64/ld-2.16.so

3c4b021000-3c4b022000 rw-p 00021000 fd:01 3145804 /usr/lib64/ld-2.16.so

3c4b022000-3c4b023000 rw-p 00000000 00:00 0

3c4b200000-3c4b3ad000 r-xp 00000000 fd:01 3145852 /usr/lib64/libc-2.16.so

3c4b3ad000-3c4b5ad000 ----p 001ad000 fd:01 3145852 /usr/lib64/libc-2.16.so

3c4b5ad000-3c4b5b1000 r---p 001ad000 fd:01 3145852 /usr/lib64/libc-2.16.so

3c4b5b1000-3c4b5b3000 rw-p 001b1000 fd:01 3145852 /usr/lib64/libc-2.16.so

3c4b5b3000-3c4b5b8000 rw-p 00000000 00:00 0

3c4b600000-3c4b603000 r-xp 00000000 fd:01 3146855 /usr/lib64/libdl-2.16.so

3c4b603000-3c4b802000 ----p 00003000 fd:01 3146855 /usr/lib64/libdl-2.16.so

3c4b802000-3c4b803000 r---p 00002000 fd:01 3146855 /usr/lib64/libdl-2.16.so

3c4b803000-3c4b804000 rw-p 00003000 fd:01 3146855 /usr/lib64/libdl-2.16.so

3c4ba00000-3c4ba16000 r-xp 00000000 fd:01 3145887 /usr/lib64/libpthread-2.16.so

3c4ba16000-3c4bc16000 ----p 00016000 fd:01 3145887 /usr/lib64/libpthread-2.16.so

3c4bc16000-3c4bc17000 r---p 00016000 fd:01 3145887 /usr/lib64/libpthread-2.16.so

3c4bc17000-3c4bc18000 rw-p 00017000 fd:01 3145887 /usr/lib64/libpthread-2.16.so

3c4bc18000-3c4bc1c000 rw-p 00000000 00:00 0

3c4be00000-3c4bf00000 r-xp 00000000 fd:01 3152030 /usr/lib64/libm-2.16.so

3c4bf00000-3c4c0ff000 ----p 00100000 fd:01 3152030 /usr/lib64/libm-2.16.so

3c4c0ff000-3c4c100000 r---p 000ff000 fd:01 3152030 /usr/lib64/libm-2.16.so

3c4c100000-3c4c101000 rw-p 00100000 fd:01 3152030 /usr/lib64/libm-2.16.so

3c4c200000-3c4c203000 r-xp 00000000 fd:01 3156952 /usr/lib64/libboost_system.so.1.50.0

3c4c203000-3c4c402000 ----p 00003000 fd:01 3156952 /usr/lib64/libboost_system.so.1.50.0

3c4c402000-3c4c403000 r---p 00002000 fd:01 3156952 /usr/lib64/libboost_system.so.1.50.0

3c4c403000-3c4c404000 rw-p 00003000 fd:01 3156952 /usr/lib64/libboost_system.so.1.50.0

3c4c600000-3c4c615000 r-xp 00000000 fd:01 3146939 /usr/lib64/libz.so.1.2.7

3c4c615000-3c4c814000 ----p 00015000 fd:01 3146939 /usr/lib64/libz.so.1.2.7

3c4c814000-3c4c815000 r---p 00014000 fd:01 3146939 /usr/lib64/libz.so.1.2.7

3c4c815000-3c4c816000 rw-p 00015000 fd:01 3146939 /usr/lib64/libz.so.1.2.7

3c4ca00000-3c4ca15000 r-xp 00000000 fd:01 3156657 /usr/lib64/libgcc_s-4.7.2-20121109.so.1

3c4ca15000-3c4cc14000 ----p 00015000 fd:01 3156657 /usr/lib64/libgcc_s-4.7.2-20121109.so.1

3c4cc14000-3c4cc15000 r---p 00014000 fd:01 3156657 /usr/lib64/libgcc_s-4.7.2-20121109.so.1

3c4cc15000-3c4cc16000 rw-p 00015000 fd:01 3156657 /usr/lib64/libgcc_s-4.7.2-20121109.so.1

3c4ce00000-3c4ce5c000 r-xp 00000000 fd:01 3146954 /usr/lib64/libpcre.so.1.0.1

3c4ce5c000-3c4d05c000 ----p 0005c000 fd:01 3146954 /usr/lib64/libpcre.so.1.0.1

3c4d05c000-3c4d05d000 r---p 0005c000 fd:01 3146954 /usr/lib64/libpcre.so.1.0.1

3c4d05d000-3c4d05e000 rw-p 0005d000 fd:01 3146954 /usr/lib64/libpcre.so.1.0.1

3c4d200000-3c4d21f000 r-xp 00000000 fd:01 3149998 /usr/lib64/libselinux.so.1

3c4d21f000-3c4d41e000 ----p 0001f000 fd:01 3149998 /usr/lib64/libselinux.so.1

3c4d41e000-3c4d41f000 r---p 0001e000 fd:01 3149998 /usr/lib64/libselinux.so.1

3c4d41f000-3c4d420000 rw-p 0001f000 fd:01 3149998 /usr/lib64/libselinux.so.1

3c4d420000-3c4d422000 rw-p 00000000 00:00 0

3c4d600000-3c4d616000 r-xp 00000000 fd:01 3150031 /usr/lib64/libresolv-2.16.so

3c4d616000-3c4d815000 ----p 00016000 fd:01 3150031 /usr/lib64/libresolv-2.16.so

3c4d815000-3c4d816000 r---p 00015000 fd:01 3150031 /usr/lib64/libresolv-2.16.so

3c4d816000-3c4d817000 rw-p 00016000 fd:01 3150031 /usr/lib64/libresolv-2.16.so

3c4d817000-3c4d819000 rw-p 00000000 00:00 0

3c4de00000-3c4dee5000 r-xp 00000000 fd:01 3156678 /usr/lib64/libstdc.so.6.0.17

3c4dee5000-3c4e0e4000 ----p 000e5000 fd:01 3156678 /usr/lib64/libstdc.so.6.0.17

3c4e0e4000-3c4e0ec000 r---p 000e4000 fd:01 3156678 /usr/lib64/libstdc.so.6.0.17

3c4e0ec000-3c4e0ee000 rw-p 000ec000 fd:01 3156678 /usr/lib64/libstdc.so.6.0.17

3c4e0ee000-3c4e103000 rw-p 00000000 00:00 0

3c4ea00000-3c4emake: * [run] Aborted (core dumped)

Compilation exited abnormally with code 2 at Fri Nov 15 08:16:13


Files

tutorial1.cpp (3 KB) tutorial1.cpp source file Randy Yates, 11/15/2013 07:13 PM
tutorial1.mak (4.49 KB) tutorial1.mak make file Randy Yates, 11/15/2013 07:13 PM
make.cnf (7.08 KB) make.cnf make configuration file Randy Yates, 11/15/2013 07:13 PM

Updated by Randy Yates about 11 years ago

I'm the one who submitted this. Sorry - hadn't yet register so there was no user associated with it. You can email me directly at yates@digitalsignallabs.com

I'm also attaching the .cpp file I used, which is from version 3.3.1 of the examples included with the tar zip file.

Actions #2

Updated by Randy Yates about 11 years ago

I found out more information. This has nothing to do with Wt. I stripped down nothing but main(){return;} and it was still happening. Turns out that linking with boost_program_options causes this for some unknown reason. I thought both the compile-time (static) linker and run-time (dynamic) linker would only pull in stuff that was used by the program, so I'm not sure why this is happening.

As far as I'm concerned, this can be closed.

Actions #3

Updated by Wim Dumon about 11 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF