h2paswizard: SIGSEGV when converting C header file to pascal unit.
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
See summary and following call stack/backtrace:
#0 DOREPLACELINE(0xbfffe3cc) at searchfrm.pas:464
#1 SEARCHINTEXT(0x0, 0xaa4217cc #10'unit gammu-statemachine;'#10'interface'#10#10'{'#10' Automatically converted by H2Pas 1.0.0 from /home/john/new_source2/ubuntu/gammu/pascal/gammu-statemachine.tmp.h'#10' The following command line parameters were used:'#10' -e'#10' -p'#10' -t'#10' -D'#10' -l'#10' libgammu'#10' -o'#10' /home/john/new_source2/ubuntu/gammu/pascal/gammu-statemachine.pas'#10' /home/john/new_source2/ubuntu/gammu/pascal/gammu-statemachine.tmp.h'#10'}'#10#10' const'#10' External_library=''libgammu''; {Setup as you need}'#10#10' { Pointers to basic pascal types, inserted by h2pas conversion program.}'#10' Type'#10' PLongint = ^Longint;'#10' PSmallInt = ^SmallInt;'#10' PByte = ^Byte;'#10' PWord = ^Word;'#10' PDWord = ^DWord;'#10' PDouble = ^Double;'#10#10' Type'#10' Pchar = ^char;'#10' PGSM_Config = ^GSM_Config;'#10' PGSM_ConnectionType = ^GSM_ConnectionType;'#10' PGSM_StateMachine = ^GSM_StateMachine;'#10' PINI_Section = ^INI_Section;'#10'{$IFDEF FPC}'#10'{$PACKRECORDS C}'#10'{$ENDIF}'#10#10#10' {*'#10' * \file gammu-statemachine.h'#10' * \author Michal '#196#140'iha'#197#153#10' *'#10' * State machine data.'#10' }'#10'{$ifndef __gammu_statemachine_h}'#10'{$define __gammu_statemachine_h} '#10' {*'#10' * \defgroup StateMachine State machine'#10' * Generic state machine layer.'#10' }'#10'{$include <gammu-types.h>}'#10'{$include <gammu-error.h>}'#10'{$include <gammu-inifile.h>}'#10' {*'#10' * Callback function for logging.'#10' *'#10' * \param text Text to be printed, \n will be also sent (as a separate'#10' * message).'#10' }'#10'(* Const before type ignored *)'#10#10' type'#10#10' TGSM_Log_Function = procedure (text:Pchar; data:pointer);cdecl;'#10' {*'#10' * Private structure holding information about phone connection. Should'#10' * be allocated by \ref GSM_AllocStateMachine and freed by'#10' * \ref GSM_FreeStateMachine.'#10' *'#10' * \ingroup StateMachine'#10' }'#10' T_GSM_StateMachine = TGSM_StateMachine;'#10'{$include <gammu-info.h>}'#10' {*'#10' * Configuration of state machine.'#10' *'#10' * \ingroup StateMachine'#10' }'#10' {*'#10' '#9' * Model from config file'#10' '#9' }'#10' {*'#10' '#9' * Debug level'#10' '#9' }'#10' {*'#10' '#9' * Device name from config file'#10' '#9' }'#10' {*'#10' '#9' * Connection type as string'#10' '#9' }'#10' {*'#10' '#9' * Synchronize time on startup?'#10' '#9' }'#10' {*'#10' '#9' * Lock device ? (Unix)'#10' '#9' }'#10' {*'#10' '#9' * Name of debug file'#10' '#9' }'#10' {*'#10' '#9' * Display something during start ?'#10' '#9' }'#10' {*'#10' '#9' * Should we use global debug file?'#10' '#9' }'#10' {*'#10' '#9' * Text for reminder calendar entry category in local language'#10' '#9' }'#10' {*'#10' '#9' * Text for meeting calendar entry category in local language'#10' '#9' }'#10' {*'#10' '#9' * Text for call calendar entry category in local language'#10' '#9' }'#10' {*'#10' '#9' * Text for bir'..., 0x8c2e2d0 '\{\$(include|i)\b.*\}', 0x0, [SESOREPLACE..SESOREPLACEALL, SESOREGEXPR], false, 0x0) at searchfrm.pas:609
#2 EXECUTE(0xaa349530, 0xaa32f550) at idetextconverter.pas:856
#3 RUN(PHREMOVEINCLUDEDIRECTIVES, <incomplete type>, 1, 0xbfffe678) at h2pasconvert.pas:3845
#4 TPOSTH2PASTOOLS__EXECUTE(0xaa32f550, <error reading variable>) at h2pasconvert.pas:3970
#5 EXECUTE(0xaa32f550, 0xaa513920, 0x0) at idetextconverter.pas:661
#6 EXECUTETOOLS(0xaa513920, 0xaa5a402c '/home/john/new_source2/ubuntu/gammu/pascal/gammu-statemachine.pas', 0xbfffe810) at h2pasconvert.pas:1948
#7 TH2PASCONVERTER__CONVERTFILE(0xaa32bcc0, <error reading variable>) at h2pasconvert.pas:2057
#8 TH2PASCONVERTER__EXECUTE(<error reading variable>) at h2pasconvert.pas:1913
#9 TH2PASDIALOG__CONVERT(<error reading variable>) at h2pasdlg.pas:1116
#10 TH2PASDIALOG__CONVERTBUTTONCLICK(0xaa30b0d0, <error reading variable>) at h2pasdlg.pas:368
#11 CLICK(0xaa30b0d0) at include/control.inc:2711
#12 CLICK(0xaa30b0d0) at include/buttoncontrol.inc:54
#13 CLICK(0xaa30b0d0) at include/buttons.inc:169
#14 WMDEFAULTCLICKED(0xaa30b0d0, {MSG = 66567, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}) at include/buttoncontrol.inc:20
#15 DISPATCH(0xaa30b0d0, 0) at ../inc/objpas.inc:602
#16 WNDPROC(0xaa30b0d0, {MSG = 66567, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}) at include/control.inc:2099
#17 WNDPROC(0xaa30b0d0, {MSG = 66567, WPARAM = 0, LPARAM = 0, RESULT = 0, WPARAMLO = 0, WPARAMHI = 0, LPARAMLO = 0, LPARAMHI = 0, RESULTLO = 0, RESULTHI = 0}) at include/wincontrol.inc:5327
#18 DELIVERMESSAGE(0xab60b810, 0, false) at qt/qtwidgets.pas:5177
#19 SLOTCLICKED(0xab60b810) at qt/qtwidgets.pas:5555
#20 ?? at :0
#21 QMetaObject::activate(QObject*, QMetaObject const*, int, void**) at :0
#22 QAbstractButton::clicked(bool) at :0
#23 ?? at :0
#24 ?? at :0
#25 QAbstractButton::mouseReleaseEvent(QMouseEvent*) at :0
#26 QWidget::event(QEvent*) at :0
#27 QAbstractButton::event(QEvent*) at :0
#28 QPushButton::event(QEvent*) at :0
#29 QApplicationPrivate::notify_helper(QObject*, QEvent*) at :0
#30 QApplication::notify(QObject*, QEvent*) at :0
#31 QCoreApplication::notifyInternal(QObject*, QEvent*) at :0
#32 QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) at :0
#33 ?? at :0
#34 QApplication::x11ProcessEvent(_XEvent*) at :0
#35 ?? at :0
#36 g_main_context_dispatch at :0
#37 ?? at :0
#38 g_main_context_iteration at :0
#39 QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) at :0
#40 ?? at :0
#41 QCoreApplication::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) at :0
#42 QCoreApplication_processEvents at :0
#43 APPWAITMESSAGE(0xb3bfd020) at qt/qtobject.inc:287
#44 IDLE(0xb3c05030, true) at include/application.inc:405
#45 HANDLEMESSAGE(0xb3c05030) at include/application.inc:1258
#46 RUNLOOP(0xb3c05030) at include/application.inc:1390
#47 APPRUN(0xb3bfd020, {Proc = {procedure (POINTER)} 0xbffff63c, Self = 0xb3c05030}) at qt/qtobject.inc:270
#48 RUN(0xb3c05030) at include/application.inc:1378
#49 main at lazarus.pp:128
Mantis conversion info:
- Mantis ID: 25886
- Version: 1.3 (SVN)
- Fixed in revision: 44474 (#bc7b175f)