wiredtiger fails to build from source in noble due to the test coredump

Bug #2056102 reported by Vladimir Petko
This bug affects 1 person
Affects Status Importance Assigned to Milestone
wiredtiger (Ubuntu)
Fix Released

Bug Description

The package does not build in noble due to the following error:
make[4]: Entering directory '/<<PKGBUILDDIR>>/examples/c'
PASS: ex_config_parse
PASS: ex_file_system
PASS: ex_smoke
PASS: ex_event_handler
PASS: ex_pack
PASS: ex_data_source
PASS: ex_hello
PASS: ex_extending
PASS: ex_process
../../build_posix/gnu-support/test-driver: line 112: 659152 Aborted (core dumped) "$@" >> "$log_file" 2>&1
FAIL: ex_async
PASS: ex_thread
PASS: ex_access
PASS: ex_stat
PASS: ex_sync
PASS: ex_cursor
PASS: ex_extractor
PASS: ex_call_center
PASS: ex_schema
PASS: ex_encrypt
PASS: ex_log
PASS: ex_all


See [1]

[1] https://launchpadlibrarian.net/715418533/buildlog_ubuntu-noble-amd64.wiredtiger_3.2.1-1ubuntu1_BUILDING.txt.gz

Related branches

Vladimir Petko (vpa1977)
tags: added: ftbfs
Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote :

Seen in examples/c/test-suite.log:

FAIL: ex_async

*** buffer overflow detected ***: terminated
FAIL ex_async (exit status: 134)

Revision history for this message
Pushkar Kulkarni (pushkarnk) wrote (last edit ):

The problem lies in the snprintf() calls within the loop [1][2][3]:


(void)snprintf(k[i], sizeof(k), "key%d", i);


Variable k is defined as:


char k[15][16]


sizeof(k) is hence 15*16 = 240. This works for snprintf(k[0]...) only. For larger indices, a buffer overflow will result.

[1] https://git.launchpad.net/ubuntu/+source/wiredtiger/tree/examples/c/ex_async.c#n146
[2] https://git.launchpad.net/ubuntu/+source/wiredtiger/tree/examples/c/ex_async.c#n151
[3] https://git.launchpad.net/ubuntu/+source/wiredtiger/tree/examples/c/ex_async.c#n191

tags: added: update-excuse
Revision history for this message
Lukas Märdian (slyon) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package wiredtiger - 3.2.1-1ubuntu4

wiredtiger (3.2.1-1ubuntu4) oracular; urgency=medium

  * No-change rebuild, to fix version number (dropping "ppa1" suffix)

wiredtiger (3.2.1-1ubuntu3ppa1) oracular; urgency=medium

  * d/p/fix_buffer_overflow.patch: Fix buffer overflows
    in example/c/ex_async.c (LP: #2056102)

 -- Pushkar Kulkarni <email address hidden> Tue, 16 Jul 2024 16:31:41 +0200

Changed in wiredtiger (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.