segmentation fault importing calendar entries

Jan Schneider janmailing@gmx.de
Sat, 9 Jun 2001 19:45:46 +0200


Hi,

I'm just writing a module for importing Outlook/vCalendar entries into 
kronolith.

But when I try to insert more than one entry at once I get a segmentation 
fault. This is the backtrace:

Program received signal SIGSEGV, Segmentation fault.
0x4010be15 in strcasecmp () at ../sysdeps/generic/strcasecmp.c:72
72      ../sysdeps/generic/strcasecmp.c: No such file or directory.
(gdb) bt
#0  0x4010be15 in strcasecmp () at ../sysdeps/generic/strcasecmp.c:72
#1  0x4042fcfa in calevent_setattr () at mcal.c:753
#2  0x4035dd28 in php_if_mcal_event_add_attribute () at php_mcal.c:205
#3  0x402fdba9 in execute () at ./zend_execute.c:853
#4  0x402fddfc in execute () at ./zend_execute.c:853
#5  0x4030c766 in zend_execute_scripts () at zend.c:259
#6  0x4031f774 in php_execute_script () at main.c:1141
#7  0x4031b9c0 in apache_php_module_main () at sapi_apache.c:98
#8  0x4031c421 in send_php () at mod_php4.c:437
#9  0x4031c463 in send_parsed_php () at mod_php4.c:437
#10 0x8055250 in ap_invoke_handler ()
#11 0x80677bc in ap_some_auth_required ()
#12 0x8067833 in ap_process_request ()
#13 0x805fd27 in ap_child_terminate ()
#14 0x805fed5 in ap_child_terminate ()
#15 0x8060016 in ap_child_terminate ()
#16 0x8060628 in ap_child_terminate ()
#17 0x8060e95 in main ()
#18 0x400cca8e in __libc_start_main () at ../sysdeps/generic/libc-start.c:93

What I do is basically a foreach loop with this code:

$event = array();
$event['title'] = ...
$event['description'] = ...
$event['location'] = ...
.
.
.
$eventobj = $calendar->getEventObject();
$eventobj->readFormData($event);
$eventobj->save();

The crash occurs when readFormData is calling mcal_event_add_attribute to set 
the location. The locations are "Deutschland" and "" (empty string).

Any idea?

Jan.

::::::::::::::::::::::::::::::::::::::::
AMMMa AG - discover your knowledge
:::::::::::::::::::::::::::
Detmolder Str. 25-33 :: D-33604 Bielefeld
fon +49.521.96878-0 :: fax  +49.521.96878-20
http://www.ammma.de
::::::::::::::::::::::::::::::::::::::::::::::