Hi Martin,
on 28th of December 2009, Tobias Frost reported the occurrence of a
violated assertion in GWEN_Time_new() in Gwenhywfar 3.11.0 (see the
attached message). The affected code is (from src/os/gwentime_all.c
lines 335 to 373):
GWEN_TIME *GWEN_Time_new(int year,
int month,
int day,
int hour,
int min,
int sec,
int inUtc){
uint32_t s;
if (inUtc)
s=GWEN_Time__mktimeUtc(year, month, day, hour, min, sec);
else {
struct tm ti;
struct tm *tp;
time_t tt;
tt=time(0);
tp=localtime(&tt);
assert(tp);
memmove(&ti, tp, sizeof(ti));
ti.tm_sec=sec;
ti.tm_min=min;
ti.tm_hour=hour;
if (year<100) {
if (year<72)
year+=2000;
year+=1900;
}
ti.tm_year=year-1900;
ti.tm_mon=month;
ti.tm_mday=day;
ti.tm_yday=0;
ti.tm_wday=0;
tt=mktime(&ti);
assert(tt!=(time_t)-1);
s=(uint32_t)tt;
}
return GWEN_Time_fromSeconds(s);
}
Unfortunately I can't make any sense out of the last assertion within
this function. Can you please comment a bit about what is happening here
and why?
Regards
Micha
--- Begin Message ---
Package: qbankmanager
Version: 0.9.52beta-1
Severity: normal
A assertion is triggered when:
- opening qbankmanager
- selecting debug->transfinder
- on the date tab, select ragne "User defined"
- enter a date, e.g from 01/01/2008
- press apply --> assertion triggered
qbankmanager: gwentime_all.c:369: GWEN_Time_new: Assertion `tt!=(time_t)-1'
failed.
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-1-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages qbankmanager depends on:
ii libaqbanking29 4.2.0-1 library for online banking applica
ii libaqbanking29-plugins 4.2.0-1 plugins needed by libaqbanking29
ii libaudio2 1.9.2-3 Network Audio System - shared libr
ii libc6 2.10.1-6 GNU C Library: Shared libraries
ii libfontconfig1 2.6.0-4 generic font configuration library
ii libfreetype6 2.3.11-1 FreeType 2 font engine, shared lib
ii libgcc1 1:4.4.2-2 GCC support library
ii libgwenhywfar47 3.11.0-1 OS abstraction layer
ii libice6 2:1.0.5-1 X11 Inter-Client Exchange library
ii libjpeg62 6b-15 The Independent JPEG Group's JPEG
ii libpng12-0 1.2.40-1 PNG library - runtime
ii libqbanking8 4.2.0-1 Qt frontend library for AqBanking
ii libqt3-mt 3:3.3.8b-6 Qt GUI Library (Threaded runtime v
ii libsm6 2:1.1.1-1 X11 Session Management library
ii libstdc++6 4.4.2-2 The GNU Standard C++ Library v3
ii libx11-6 2:1.2.2-1 X11 client-side library
ii libxcursor1 1:1.1.9-1 X cursor management library
ii libxext6 2:1.0.4-1 X11 miscellaneous extension librar
ii libxft2 2.1.13-3 FreeType-based font drawing librar
ii libxi6 2:1.2.1-2 X11 Input extension library
ii libxinerama1 2:1.0.3-2 X11 Xinerama extension library
ii libxrandr2 2:1.3.0-2 X11 RandR extension library
ii libxrender1 1:0.9.4-2 X Rendering Extension client libra
ii libxt6 1:1.0.6-1 X11 toolkit intrinsics library
ii zlib1g 1:1.2.3.3.dfsg-15 compression library - runtime
qbankmanager recommends no packages.
qbankmanager suggests no packages.
-- no debconf information
--- End Message ---